LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-27-2011, 03:07 PM   #1
othenson
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, 03:13 PM   #2
grim76
Member
 
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, 03:51 PM   #3
spankbot
Member
 
Registered: Aug 2007
Posts: 131

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

Rep: Reputation: 6
adduser

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.
 
  


Reply


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 10:48 PM
command line tool to add user records to LDAP fantasygoat Linux - Server 1 06-12-2010 05:13 AM
Add user from Command line darkapolloslx Linux - Newbie 1 12-29-2008 01:45 AM
Setting Passwd of User from command line.... nirmit Linux - Newbie 4 11-25-2008 11:52 PM
How To Add user in Fedora Core 4 using the Command Line Interface regnox Linux - Newbie 9 08-22-2005 01:30 AM


All times are GMT -5. The time now is 11:26 PM.

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