Date: Fri, 09 Nov 2007 16:34:01 +0000 From: Alex Zbyslaw <xfb52@dial.pipex.com> To: Giorgos Keramidas <keramida@ceid.upatras.gr> Cc: freebsd-questions@freebsd.org Subject: Re: Dangers of using a non-base shell Message-ID: <47348BF9.7050402@dial.pipex.com> In-Reply-To: <20071109160809.GA14984@kobe.laptop> References: <472647A0.3030009@brookes.ac.uk> <20071030113912.GB3941@kobe.laptop> <20071109155558.GF8728@amilo.cenkes.org> <20071109160809.GA14984@kobe.laptop>
next in thread | previous in thread | raw e-mail | index | archive | help
Giorgos Keramidas wrote: >On 2007-11-09 18:55, Andrew Pantyukhin <infofarmer@freebsd.org> wrote: > > >>On Tue, Oct 30, 2007 at 01:39:12PM +0200, Giorgos Keramidas wrote: >> >> >>>I've been using the following for some time: >>> >>> keramida> su - >>> Password: ******** >>> root# exec env SHELL=/usr/local/bin/bash bash -l >>> >>> >>I know it doesn't work on slolaris^W some Unix flavors, but I've >>been quite happy with "su -m". >> >> > >Heh, putting the Solaris bashing (sic) aside, I can see how the -m >option can be useful some times. After all, it was implemented because >*someone* thought it would be neat to have around :-) > > Also the only way I know on FreeBSD to interactively become a user with no real shell (true, nologin etc). --Alex
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47348BF9.7050402>