On Fri 17/10 17:39, Raimo Niskanen wrote:
> 
> As I read the man page for su it is the target's login shell that is
> invoked, and it need not always be /bin/sh - it can be changed.
> 
> Therefore I suspect that you want "-s /bin/sh " between "su " and "root".

I'm confused:

just22@poseidon:[~]> sudo su -s /bin/sh root -c date
Sat Oct 18 07:21:40 CEST 2014

just22@poseidon:[~]> su -s /bin/sh root -c date
su: only the superuser may specify a login shell

(this is really weird).

Moreover, using the following:

#define SUCMD "-fn 7x14 -geometry 60x4 -e su root -c 'nohup xfe >/dev/null 2>&1 
& sleep 1'"

xfe correctly opens the password's window, but the echo is active during
typing... (the same doesn't happen when I use sudo).

It's just me?


-- 
Alessandro DE LAURENZIS
[mailto:just22....@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis

Reply via email to