LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-25-2010, 12:48 PM   #1
arun17reddy
LQ Newbie
 
Registered: May 2010
Posts: 9

Rep: Reputation: 0
USERADD command NOT found?


hi when i see /usr/bin there is no useradd command.
and i want to add a user.if i type the command it is shooting an error saying command nt found .how should i create a user.
please help me out.


thanks alotttttttttttttttttt
 
Old 05-25-2010, 12:53 PM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Look in /usr/sbin/adduser
 
0 members found this post helpful.
Old 05-25-2010, 01:12 PM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Quote:
Originally Posted by arun17reddy View Post
Hi. When I look in /usr/bin there is no useradd command. I want to add a user. When I type the command it is shooting an error saying command not found.
Are you logged in as root when trying to run the adduser command? Only root can add users. Mostly the commands in /sbin and /usr/sbin need to be run as root. That's why those directories are in root's $PATH and not in ordinary user's $PATHs. $PATH lists the directories that the shell should search for the commands you run.

To see what $PATH is, run this command: echo $PATH
 
1 members found this post helpful.
Old 05-26-2010, 02:41 AM   #4
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Debian, OS X
Posts: 1,298

Rep: Reputation: 102Reputation: 102
Generally, it is here.

Code:
-sh-3.00$ ls -l /usr/sbin/useradd 
-rwxr-x---  1 root root 61776 Aug  7  2007 /usr/sbin/useradd
 
0 members found this post helpful.
  


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 not found, but shadow is installed Ziax Fedora 2 10-16-2005 06:37 AM
Useradd command not found. keysorsoze Red Hat 8 05-01-2004 04:17 PM
bash: useradd: command not found KennyK Linux - Software 2 04-17-2003 10:02 AM
useradd command allancondino Linux - General 5 04-27-2002 01:01 PM
bash: useradd: command not found 360 Linux - Networking 4 08-23-2001 10:41 AM


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