LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to add a user so that they have no shell access (https://www.linuxquestions.org/questions/linux-general-1/how-to-add-a-user-so-that-they-have-no-shell-access-789872/)

DaFakaMatt 02-18-2010 12:57 AM

How to add a user so that they have no shell access
 
Hello

Im want to know the command to add a user with no shell access so they cannot log onto the system, but there a user on there so for example they can be part of the email server.

Cheers,

DaF

GrapefruiTgirl 02-18-2010 01:07 AM

When you create the user, set their shell to "/bin/false" and that should do it.

Check the man page for either "adduser" or "useradd" depending which one your system uses; the option that sets the new user's shell, is the one you want (I think it's the -s option, but you better check..).

Sasha

DaFakaMatt 02-18-2010 01:59 AM

Legend (Y) Cheers :)


All times are GMT -5. The time now is 10:59 AM.