LinuxQuestions.org
Latest LQ Deal: Linux Power User 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 01-06-2008, 10:32 AM   #1
sophisticate
Member
 
Registered: Oct 2007
Distribution: CentOS 5
Posts: 39

Rep: Reputation: 15
useradd command


hi
when i try to add new user i got this message

[root@dhcppc0 hesham]# useradd test
bash: useradd: command not found


and when which useradd i got this

[root@dhcppc0 hesham]# which useradd
/usr/bin/which: no useradd in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:
/bin:/usr/X11R6/bin:/home/hesham/bin)


CAN ANYBODY HELP ME PLEASE !!!
 
Old 01-06-2008, 11:04 AM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
It doesn't look like /usr/sbin (where useradd generally lives) is in your $PATH. Try running /usr/sbin/useradd. If you have switch to root using su, try using su - as with the dash you will inherit root's environment and get the right $PATH.
 
Old 01-06-2008, 11:49 AM   #3
sophisticate
Member
 
Registered: Oct 2007
Distribution: CentOS 5
Posts: 39

Original Poster
Rep: Reputation: 15
Wel done thanks alot or your help
 
  


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
useradd command Linuxien Linux - General 2 11-14-2006 07:32 AM
useradd command Wolvastur Linux - Newbie 9 01-25-2005 10:01 AM
useradd command johnpayback Linux - General 4 08-13-2002 05:24 PM
useradd command johnpayback Linux - Newbie 5 08-13-2002 10:22 AM
useradd command allancondino Linux - General 5 04-27-2002 12:01 PM


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

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