LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   adding new users (https://www.linuxquestions.org/questions/linux-newbie-8/adding-new-users-369679/)

Brian Du Preez 10-04-2005 10:03 AM

adding new users
 
Hi to all,

I have a ferdoa mail server that was setup by my technician was has since left . i would like to know how to add a new user. The command that i tried was: useradd usersname -s bin /false. can anybody please help me with the correct formula.

regards
brian

MensaWater 10-04-2005 12:33 PM

man useradd

It appears you're trying to setup a new user who has no real login shell. If so then your syntax would be:

useradd -s /bin/false username

The username goes and there should be no space between bin and false - it is a path (do ls -l /bin/false to see it if you want).

Note that the above will use default for home directory and won't create an actual home directory. This also only creates an OS user. It doesn't have anything to do with mail per se. Also since the shell is /bin/false this user would not be able to login directly.

I also always like to add a comment as why the user is there so that when I leave the next guy will. You could do something like:

useradd -c "User added for mail purposes only" -s /bin/false username


All times are GMT -5. The time now is 05:09 PM.