Used shell in /etc/passwd, why not more /bin/false?
Hi, If I look at the file /etc/passwd on my SUSE 9.3 installation I see the following: --------8<--------8<--------8<--------8<--------8<--------
head /etc/passwd root:x:0:0:root:/root:/bin/bash bin:x:1:1:bin:/bin:/bin/bash daemon:x:2:2:Daemon:/sbin:/bin/bash lp:x:4:7:Printing daemon:/var/spool/lpd:/bin/bash mail:x:8:12:Mailer daemon:/var/spool/clientmqueue:/bin/false news:x:9:13:News system:/etc/news:/bin/bash uucp:x:10:14:Unix-to-Unix CoPy system:/etc/uucp:/bin/bash games:x:12:100:Games account:/var/games:/bin/bash man:x:13:62:Manual pages viewer:/var/cache/man:/bin/bash at:x:25:25:Batch jobs daemon:/var/spool/atjobs:/bin/bash --------8<--------8<--------8<--------8<--------8<--------
I would have expected that many more accounts would have /bin/false as the shell. Why is this not the case? Is it different (read better) with SUSE 10? Best regards, Aschwin Marsman -- aschwin@marsman.org http://www.marsman.org
On Fri, Sep 23, 2005 at 12:35:02PM +0200, Aschwin Marsman wrote:
Hi,
If I look at the file /etc/passwd on my SUSE 9.3 installation I see the following:
--------8<--------8<--------8<--------8<--------8<--------
head /etc/passwd root:x:0:0:root:/root:/bin/bash bin:x:1:1:bin:/bin:/bin/bash daemon:x:2:2:Daemon:/sbin:/bin/bash lp:x:4:7:Printing daemon:/var/spool/lpd:/bin/bash mail:x:8:12:Mailer daemon:/var/spool/clientmqueue:/bin/false news:x:9:13:News system:/etc/news:/bin/bash uucp:x:10:14:Unix-to-Unix CoPy system:/etc/uucp:/bin/bash games:x:12:100:Games account:/var/games:/bin/bash man:x:13:62:Manual pages viewer:/var/cache/man:/bin/bash at:x:25:25:Batch jobs daemon:/var/spool/atjobs:/bin/bash --------8<--------8<--------8<--------8<--------8<--------
I would have expected that many more accounts would have /bin/false as the shell. Why is this not the case? Is it different (read better) with SUSE 10?
IF stuff needs to execute cronjobs with "su xxxx -c "blabla"" then it needs a valid login shell. Ciao, Marcus
On Fri, 23 Sep 2005, Marcus Meissner wrote:
On Fri, Sep 23, 2005 at 12:35:02PM +0200, Aschwin Marsman wrote:
Thanks for your quick reply.
If I look at the file /etc/passwd on my SUSE 9.3 installation I see the following:
--------8<--------8<--------8<--------8<--------8<--------
head /etc/passwd root:x:0:0:root:/root:/bin/bash bin:x:1:1:bin:/bin:/bin/bash games:x:12:100:Games account:/var/games:/bin/bash --------8<--------8<--------8<--------8<--------8<--------
I would have expected that many more accounts would have /bin/false as the shell. Why is this not the case? Is it different (read better) with SUSE 10?
IF stuff needs to execute cronjobs with "su xxxx -c "blabla"" then it needs a valid login shell.
Yes, I know. But there are even conjobs running as user games? On other Linux/UNIX versions I've seen much more user accounts that have /bin/false as their shell.
Ciao, Marcus
Have a nice weekend, Aschwin Marsman -- aschwin@marsman.org http://www.marsman.org
On Fri, Sep 23, 2005 at 02:07:38PM +0200, Aschwin Marsman wrote:
On Fri, 23 Sep 2005, Marcus Meissner wrote:
IF stuff needs to execute cronjobs with "su xxxx -c "blabla"" then it needs a valid login shell.
Or you provide an alternative shell by the -s switch.
Yes, I know. But there are even conjobs running as user games?
Sometimes when cron is bored he starts playing games, didn't you know? ;-) Robert -- Robert Schiele Tel.: +49-621-181-2214 Dipl.-Wirtsch.informatiker mailto:rschiele@uni-mannheim.de
participants (3)
-
Aschwin Marsman
-
Marcus Meissner
-
Robert Schiele