/etc/shells on /etc/passwd

Hi All,

Why does these list (below) doesn't belong to /etc/shells?

sync:x:5:0:// :/sbin:/bin/sync
shutdown:x:6:0:
// :/sbin:/sbin/shutdown
halt:x:7:0:*****// :/sbin:/sbin/halt
webalizer:x:68:68:
// Webalizer:/var/www/usage:/sbin/false
[root@localhost ~]#

Do I need to add all of it?

Thanks for any comment you may add!

Any executable you wish an account to be allowed to use as a shell should be listed in the /etc/shells file, /etc/shells only actually needs to contain the shells for interactive accounts, but to stop pwck(8) complaining you can add the others as well.

As Tony said, the shells in /etc/shells are a list of the interactive shells for user accounts. The ones you listed are simply invoked for special accounts.

Where I work, we use special scripts to manage superusers as their shell that invokes the korn shell. It will not break anything.