On Sat, Apr 07, 2007 at 03:12:30PM +0200, Pierre Schmitz wrote: > > > On Sat, Apr 07, 2007 at 10:55:41AM +0200, Pierre Schmitz wrote: > >> Hi, > >> > >> I just noticed that it is not possible to use su to switch to a user > >> which > >> has /bin/false as shell with current coreutils. This is used by some > >> daemons > >> like ejabberd to run the service as a non-root user. > >> > >> Is this a feature of new coreutils or a bug? If I change /bin/false > >> to /bin/bahs everything works as expected, but I don`t think this is a > >> very > >> good idea. > > > > Command is passed to "/bin/false" which will fail. > > Try: su -s /bin/bash > > With a ecplicitly shell given thisworks. But this wasn`t nessecary before.
Are you sure? su.c code did not change. It's default behaviour is to "not preserve the environment" (SHELL)", instead invoking the new user shell. Jürgen _______________________________________________ arch mailing list [email protected] http://archlinux.org/mailman/listinfo/arch
