Dangers of using a non-base shell

Giorgos Keramidas keramida at ceid.upatras.gr
Fri Nov 9 09:18:03 PST 2007


On 2007-11-09 16:34, Alex Zbyslaw <xfb52 at 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 at kobe:/root# fgrep ftp: /etc/passwd
	ftp:*:1003:1003:& user:/home/ftp:/usr/sbin/nologin
	root at kobe:/root# su ftp
	root at kobe:/root$ id
	uid=1003(ftp) gid=1003 groups=1003
	root at kobe:/root$

Good idea, though :)



More information about the freebsd-questions mailing list