Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'disabling shell access' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
disabling shell access
Authored by: lstewart on Feb 13, '02 01:56:34PM
You can use this method to disable certain users from using a shell at all. If you have a user on your system that you don't want to be able to execute any shell scripts, or telnet in, or anything, simply use NetInfo to assign their default shell as /dev/null. They'll get an error message any time they try to open a shell. I don't know if that's worth much or not, but I've set this on some of the daemon-related users on my box (like PostgresQL's daemon user), in an effort to increase security.

[ Reply to This | # ]
Better to use /sbin/nologin
Authored by: Anonymous on Feb 13, '02 03:39:22PM

Better to use /sbin/nologin, it's more "correct" and you can also specify a custom message to users.



[ Reply to This | # ]