Latest LQ Deal: Latest LQ Deals
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-27-2011, 02:07 PM   #1
LQ Newbie
Registered: Oct 2011
Posts: 1

Rep: Reputation: Disabled
Is there a command line way to add a new user & passwd instead of linuxconf

I used Red Hat 6 many years ago & am just trying to get back into using Linux again. I remember that linuxconfig gave a GUI to add a user & passwd but, I am now using Fedoria 15 installed from the live CD to the Hard drive & I want to be able to add a new user without using a GUI. I remember doing it this way years ago with the Red Hat 6 but I don't seem to be able to remember the exact syntax, my notes don't contain it. I remember it was so simple I didn't put it in my notes, now I don't remember. I tried to find it in the Man pages but so far "no joy".
Thanks for any assistance <SMILE>
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 10-27-2011, 02:13 PM   #2
Registered: Jun 2007
Distribution: Debian, SLES, Ubuntu
Posts: 308

Rep: Reputation: 50
useradd -m -s <preferred shell> -c "Comment about the user" -u <if you need a specific user id> -g <if you need a specific default group id> -G <supplemental groups> <user>

Example (Add the other options if you need them)

useradd -m -s /bin/bash -c "Average Joe User" joeuser
2 members found this post helpful.
Old 10-27-2011, 02:51 PM   #3
Registered: Aug 2007
Posts: 133

Rep: Reputation: 16
You can also simply hand edit the passwd, shadow, and group files. However it's best to use useradd.
Old 10-27-2011, 11:36 PM   #4
LQ Newbie
Registered: Apr 2011
Location: Austin, TX
Distribution: Arch Linux
Posts: 12

Rep: Reputation: 6

I know in Arch (I believe it worked in ubuntu as well, but I haven't distro-jumped in a while), you can just use "adduser", and it will walk you step by step through creating the user, supplying default answers for shell and initial group, etc.


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
[SOLVED] how do I use the usermod command to add a comment to /etc/passwd Tayuechick SUSE / openSUSE 7 08-24-2011 09:48 PM
command line tool to add user records to LDAP fantasygoat Linux - Server 1 06-12-2010 04:13 AM
Add user from Command line darkapolloslx Linux - Newbie 1 12-29-2008 12:45 AM
Setting Passwd of User from command line.... nirmit Linux - Newbie 4 11-25-2008 10:52 PM
How To Add user in Fedora Core 4 using the Command Line Interface regnox Linux - Newbie 9 08-22-2005 12:30 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:14 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