C chatsaz Verified User Joined Oct 10, 2013 Messages 23 Jan 14, 2014 #1 hi I want to create a new user But This error was usr/sbin/adduser: Permission denied Solution??????? tanx
hi I want to create a new user But This error was usr/sbin/adduser: Permission denied Solution??????? tanx
scsi Verified User Joined Aug 19, 2008 Messages 4,695 Jan 14, 2014 #2 What are the permissions on /usr/sbin/adduser?
C chatsaz Verified User Joined Oct 10, 2013 Messages 23 Jan 14, 2014 #3 Do not know Where should fix??????
Richard G Verified User Joined Jul 6, 2008 Messages 12,780 Location Maastricht Jan 14, 2014 #4 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 Click to expand... 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 Click to expand...
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 Click to expand... 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 Click to expand...
C chatsaz Verified User Joined Oct 10, 2013 Messages 23 Jan 14, 2014 #6 I see lrwxrwxrwx. 1 root root 7 Dec 23 09:17 /usr/sbin/adduser -> useradd
Richard G Verified User Joined Jul 6, 2008 Messages 12,780 Location Maastricht Jan 15, 2014 #8 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.
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.
scsi Verified User Joined Aug 19, 2008 Messages 4,695 Jan 15, 2014 #9 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.
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.
Richard G Verified User Joined Jul 6, 2008 Messages 12,780 Location Maastricht Jan 16, 2014 #10 Yeah I ment that, I mixed them up. I gave him both commands before and he only did one.
nobaloney NoBaloney Internet Svcs - In Memoriam † Joined Jun 16, 2003 Messages 26,113 Location California Jan 16, 2014 #11 On most (not all) systems, adduser is either a symbolic link to useradd, or else it's a script which calls useradd. Jeff
On most (not all) systems, adduser is either a symbolic link to useradd, or else it's a script which calls useradd. Jeff
Richard G Verified User Joined Jul 6, 2008 Messages 12,780 Location Maastricht Jan 17, 2014 #12 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.
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.