LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   USERADD command NOT found? (https://www.linuxquestions.org/questions/linux-newbie-8/useradd-command-not-found-810033/)

arun17reddy 05-25-2010 11:48 AM

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

PTrenholme 05-25-2010 11:53 AM

Look in /usr/sbin/adduser

catkin 05-25-2010 12:12 PM

Quote:

Originally Posted by arun17reddy (Post 3980801)
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

vikas027 05-26-2010 01:41 AM

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



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