Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-04-2005, 10:03 AM   #1
Brian Du Preez
LQ Newbie
Registered: Oct 2005
Location: south africa
Posts: 2

Rep: Reputation: 0
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.

Old 10-04-2005, 12:33 PM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,406
Blog Entries: 15

Rep: Reputation: 1424Reputation: 1424Reputation: 1424Reputation: 1424Reputation: 1424Reputation: 1424Reputation: 1424Reputation: 1424Reputation: 1424Reputation: 1424
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

Last edited by MensaWater; 10-04-2005 at 12:35 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding users Abbaddon Linux - Newbie 7 09-01-2004 04:30 AM
adding users... Digital_Err0r Linux - General 1 03-31-2004 03:08 PM
adding users Lucasite Linux - Newbie 3 03-04-2004 11:30 AM
Adding new users Fried Linux - Newbie 4 09-24-2001 10:37 AM
Adding users... philfighter Linux - General 3 07-23-2001 10:48 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:52 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration