Re: Why do system users have shells?

2002-11-26 Thread Russell Coker
On Mon, 25 Nov 2002 22:34, H. S. Teoh wrote: Possibly because otherwise, you cannot run any shell scripts as that user. (This may also apply to more than shell scripts, but I'm not sure about that.) sudo, start-stop-daemon, su -s Why can't people read man pages before replying?

Re: Why do system users have shells?

2002-11-26 Thread David Pashley
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Monday 25 November 2002 9:34 pm, H. S. Teoh wrote: On Mon, Nov 25, 2002 at 09:53:22PM +0100, Russell Coker wrote: On Mon, 25 Nov 2002 20:39, H. S. Teoh wrote: On Mon, Nov 25, 2002 at 12:10:44PM -0700, James Hamilton wrote: I'm curious why

Re: Why do system users have shells?

2002-11-26 Thread Henrique de Moraes Holschuh
On Tue, 26 Nov 2002, David Pashley wrote: I remember trying to set all(most/some) system accounts to /bin/false and the only thing I noticed breaking was fetchmail. Of course there may have been others, but fetchmail persuaded me to revert to /bin/sh. Would it be worth filing a bug about

Why do system users have shells?

2002-11-25 Thread James Hamilton
I'm curious why system users such as bin, sys, and nobody have /bin/sh as a shell instead of a noshell program or /bin/false. -- James Hamilton

Re: Why do system users have shells?

2002-11-25 Thread Henrique de Moraes Holschuh
On Mon, 25 Nov 2002, James Hamilton wrote: I'm curious why system users such as bin, sys, and nobody have /bin/sh as a shell instead of a noshell program or /bin/false. Because a lot of people can't grasp the concept of always using su -s to select a shell, I think :-) -- One disk to

Re: Why do system users have shells?

2002-11-25 Thread H. S. Teoh
On Mon, Nov 25, 2002 at 12:10:44PM -0700, James Hamilton wrote: I'm curious why system users such as bin, sys, and nobody have /bin/sh as a shell instead of a noshell program or /bin/false. [snip] Possibly because otherwise, you cannot run any shell scripts as that user. (This may also

Re: Why do system users have shells?

2002-11-25 Thread Russell Coker
On Mon, 25 Nov 2002 20:39, H. S. Teoh wrote: On Mon, Nov 25, 2002 at 12:10:44PM -0700, James Hamilton wrote: I'm curious why system users such as bin, sys, and nobody have /bin/sh as a shell instead of a noshell program or /bin/false. [snip] Possibly because otherwise, you cannot run

Re: Why do system users have shells?

2002-11-25 Thread H. S. Teoh
On Mon, Nov 25, 2002 at 09:53:22PM +0100, Russell Coker wrote: On Mon, 25 Nov 2002 20:39, H. S. Teoh wrote: On Mon, Nov 25, 2002 at 12:10:44PM -0700, James Hamilton wrote: I'm curious why system users such as bin, sys, and nobody have /bin/sh as a shell instead of a noshell program or

Re: Why do system users have shells?

2002-11-25 Thread Bernd Eckenfels
On Mon, Nov 25, 2002 at 04:34:52PM -0500, H. S. Teoh wrote: But there are programs that don't use su -s. E.g., custom logins (non-anonymous) from wu-ftpd will fail if the login shell is set to /bin/false. You can add /bin/false to /etc/shells to fix that, but actually it is a feature to

Re: Why do system users have shells?

2002-11-25 Thread Adam McKenna
On Mon, Nov 25, 2002 at 04:34:52PM -0500, H. S. Teoh wrote: wu-ftpd HEH. --Adam -- Adam McKenna [EMAIL PROTECTED] [EMAIL PROTECTED]

Re: Why do system users have shells?

2002-11-25 Thread H. S. Teoh
On Mon, Nov 25, 2002 at 10:42:34PM +0100, Bernd Eckenfels wrote: On Mon, Nov 25, 2002 at 04:34:52PM -0500, H. S. Teoh wrote: But there are programs that don't use su -s. E.g., custom logins (non-anonymous) from wu-ftpd will fail if the login shell is set to /bin/false. You can add

Re: Why do system users have shells?

2002-11-25 Thread Josip Rodin
On Mon, Nov 25, 2002 at 04:34:52PM -0500, H. S. Teoh wrote: But there are programs that don't use su -s. E.g., custom logins (non-anonymous) from wu-ftpd will fail if the login shell is set to /bin/false. Why do you want to use FTP with a system user? -- 2. That which causes joy or

Re: Why do system users have shells?

2002-11-25 Thread Damian M Gryski
On Mon, 25 Nov 2002, Bernd Eckenfels wrote: On Mon, Nov 25, 2002 at 04:34:52PM -0500, H. S. Teoh wrote: But there are programs that don't use su -s. E.g., custom logins (non-anonymous) from wu-ftpd will fail if the login shell is set to /bin/false. You can add /bin/false to /etc/shells

Re: Why do system users have shells?

2002-11-25 Thread H. S. Teoh
On Mon, Nov 25, 2002 at 11:24:54PM +0100, Josip Rodin wrote: On Mon, Nov 25, 2002 at 04:34:52PM -0500, H. S. Teoh wrote: But there are programs that don't use su -s. E.g., custom logins (non-anonymous) from wu-ftpd will fail if the login shell is set to /bin/false. Why do you want to use

Re: Why do system users have shells?

2002-11-25 Thread Alan Shutko
H. S. Teoh [EMAIL PROTECTED] writes: Now that somebody mentioned it -- will /bin/true work, or is that a wishlist feature? Is it in /etc/shells? Here's what you do: ln -s /bin/false /usr/local/bin/ftponly echo /usr/local/bin/ftponly /etc/shells -- Alan Shutko [EMAIL PROTECTED] - In a

Re: Why do system users have shells?

2002-11-25 Thread H. S. Teoh
On Mon, Nov 25, 2002 at 06:32:13PM -0500, H. S. Teoh wrote: [snip] Now that somebody mentioned it -- will /bin/true work, or is that a wishlist feature? [snip] Oops, nevermind that. That'll teach me to respond before I read. :-P T -- MAS = Mana Ada Sistem?