LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to add a user (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-add-a-user-4175438122/)

vikram015 11-21-2012 08:38 AM

how to add a user
 
i have some problem with useradd & adduser command they show access is denied why

acid_kewpie 11-21-2012 08:39 AM

you need to be root to add users, or run it via sudo...

sudo useradd username

shivaa 11-21-2012 09:39 AM

These commands are owned by root and only root can successfully invoke them, if any other user do not have specific permissions to do this.
Code:

which <useradd> <adduser>
/usr/sbin/useradd
/usr/sbin/adduser
ls -la useradd
.... root root .... /usr/sbin/useradd

So either you should be root, or you should have special permissions to do so!


All times are GMT -5. The time now is 09:16 PM.