usr/sbin/adduser: Permission denied

chatsaz

Verified User
Joined
Oct 10, 2013
Messages
23
hi
I want to create a new user
But
This error was
usr/sbin/adduser: Permission denied

Solution???????

tanx
 
What are the permissions on /usr/sbin/adduser?
 
Check what the rights are via SSH. Login as root or su to root. The issue a command like this:
Code:
ls -al /usr/sbin/adduser

It should read something like this (in Centos) because it's symlinked:
lrwxrwxrwx 1 root root 7 Mar 14 2012 /usr/sbin/adduser -> useradd

Also look add /usr/sbin/useradd the same way, should look something like this:
-rwxr-x--- 1 root root 101K Dec 7 2011 /usr/sbin/useradd
 
I see


lrwxrwxrwx. 1 root root 7 Dec 23 09:17 /usr/sbin/adduser -> useradd
 
You forgot the second command I told you. The first one is correct.
Please do the second command too, to see if useradd also has the correct rights:
Code:
ls -al /usr/sbin/adduser

How did you try to create the user when you got the error. Was that from within Directadmin or did you use SSH to do it.
 
I would do:

Code:
ls -la /usr/sbin/useradd

It may be a bug though I saw someone else post something about this the other day.
 
On most (not all) systems, adduser is either a symbolic link to useradd, or else it's a script which calls useradd.

Jeff
 
Correct, that's why I asked him to do both the ls commands to check if both were correct.
Still waiting for the useradd result, it might be a permission problem there.
 
Back
Top