LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 08-16-2005, 08:02 PM   #1
regnox
LQ Newbie
 
Registered: Jul 2005
Location: Cebu, Philippines
Posts: 17

Rep: Reputation: 0
How To Add user in Fedora Core 4 using the Command Line Interface


Guys, i have a problem in adding a user in my terminal.
I am using fedora core 4 and what will appear when i typed "useadd name" is
bash: useradd: command not found..

What would be possible wrong...
 
Old 08-16-2005, 08:18 PM   #2
tyler0123
Member
 
Registered: Aug 2003
Posts: 134

Rep: Reputation: 16
try this

type this at the prompt:

slocate -u

theis will build a database of what is on your system

then type:

locate useradd

also, the paths sound like they are not set for some reason. so try typing this first maybe (i think this is the right location):

/usr/sbin/useradd name

or maybe:

/sbin/useradd name

i think the tfirst one is right try that first, the /usr/sbin/useradd

then the set the password you will probably have to type:

/usr/sbin/passwd name

to set the password

if this doesnt' help and nobody else does before i get a reply, i will get the exact commands from home when there.

good luck and don't give up.
 
Old 08-16-2005, 08:34 PM   #3
boxerboy
Member
 
Registered: Jul 2005
Distribution: ubuntu5.04, ubuntu5.10, suse9.3, mandrake10.1, mandriva2006(beta), FC1-4, redhat9.0, debian sarge
Posts: 519

Rep: Reputation: 32
acording to this book sign in as root than type useradd -c "comment" replace comment with the name of user u want to add if the comment contains multiple words use the quote marks. im assuming if its only one word like say tyler0123 than i dont think the quotes are needed. heres an example to add a user named mary smith with a login name of mary u would type as root useradd -c "Mary Smith" mary
after that u want to set password u would type "passwd" with out the quotes than it should promt you for a password twice and thats it all set up
 
1 members found this post helpful.
Old 08-17-2005, 02:22 PM   #4
tyler0123
Member
 
Registered: Aug 2003
Posts: 134

Rep: Reputation: 16
the -c is to add a comment. you can also use -d to change home directory location, or -s to set the default shell. just to add a user, if the useradd program is there but the paths not set for root for some reason,

then this will work:

/usr/sbin/useradd username

this will add the user

/usr/bin/passwd username

will set password for the user.
 
Old 08-17-2005, 02:29 PM   #5
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
You can only run useradd as root. Also take a look at the manual "man useradd".
 
Old 08-17-2005, 02:31 PM   #6
tyler0123
Member
 
Registered: Aug 2003
Posts: 134

Rep: Reputation: 16
true you do have to be root. i failed to mention that. thanks for the help.
 
Old 08-18-2005, 03:01 AM   #7
nabeelmoidu
Member
 
Registered: Jul 2005
Location: Bangalore
Distribution: Fedora
Posts: 71

Rep: Reputation: 15
did i see a "useadd" in the first post?
 
Old 08-18-2005, 05:51 AM   #8
boxerboy
Member
 
Registered: Jul 2005
Distribution: ubuntu5.04, ubuntu5.10, suse9.3, mandrake10.1, mandriva2006(beta), FC1-4, redhat9.0, debian sarge
Posts: 519

Rep: Reputation: 32
yes and i think its suposed to be useradd
 
Old 08-18-2005, 10:48 AM   #9
tyler0123
Member
 
Registered: Aug 2003
Posts: 134

Rep: Reputation: 16
hmmm.

i read beyond the useadd to the error he got: useradd command not found. if it could not find the useradd command, i assumed he typed useradd and got the error, but mistyped his forum post. another potential mistake on my part. you guys just love pointing out my flaws
 
Old 08-22-2005, 12:30 AM   #10
regnox
LQ Newbie
 
Registered: Jul 2005
Location: Cebu, Philippines
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks a lot guys

Thanks a lot guys.

Thanks for helping..
 
  


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
How to get back into command line interface bonniehandi Linux - Newbie 1 11-19-2005 12:07 AM
How to boot into command line on Fedora Core 2? DeepSPiN Fedora 3 08-25-2005 12:24 AM
cdrecord - command line interface satimis Linux - General 5 05-24-2005 07:15 PM
Command line through a web interface tangle Linux - Software 2 01-13-2005 02:54 PM
Can't get from command line interface to GUI dphildebrand Linux - Newbie 3 12-03-2003 01:51 PM


All times are GMT -5. The time now is 06:57 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration