Date: Fri, 9 Nov 2007 19:17:16 +0200 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Alex Zbyslaw <xfb52@dial.pipex.com> Cc: freebsd-questions@freebsd.org Subject: Re: Dangers of using a non-base shell Message-ID: <20071109171716.GA16016@kobe.laptop> In-Reply-To: <47348BF9.7050402@dial.pipex.com> References: <472647A0.3030009@brookes.ac.uk> <20071030113912.GB3941@kobe.laptop> <20071109155558.GF8728@amilo.cenkes.org> <20071109160809.GA14984@kobe.laptop> <47348BF9.7050402@dial.pipex.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2007-11-09 16:34, Alex Zbyslaw <xfb52@dial.pipex.com> wrote: > > [ discussing `su -m' option ] > > Also the only way I know on FreeBSD to interactively become a user > with no real shell (true, nologin etc). It should be possible to type: su username i.e. here's an ftp session on my laptop: root@kobe:/root# fgrep ftp: /etc/passwd ftp:*:1003:1003:& user:/home/ftp:/usr/sbin/nologin root@kobe:/root# su ftp root@kobe:/root$ id uid=1003(ftp) gid=1003 groups=1003 root@kobe:/root$ Good idea, though :)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071109171716.GA16016>