I am running ubuntu 14.04 in DardDrive. I was taking the Steps for Setting up and Running sudo
located here http://snag.gy/JAGgt.jpg. But every I type sudo "whatever"
as user ($), I get the following message:
sudo: unable to stat /etc/sudoers.d/README: Permission denied
sudo: unable to stat /etc/sudoers.d/ken: Permission denied.
so I leveled up as root and did ls -l | grep sud
. See the following:
root@ken-:/etc# ls -l | grep sud
-rw-r----- 1 root root 745 mar 19 12:11 sudoers
drwxr----- 2 root root 4096 mar 19 14:53 sudoers.d
Based on the instructions on how to configure sudo
, I should make a directory named same as my username in sudoers.d
directory and in that file I have to just type ALL(ALL)LL
on the user name. but, I also did a chmod 440
on that file, which makes it look like this:
root@ken-Inspiron-5558:/etc/sudoers.d# ls -l
total 8
-r--r----- 1 root root 22 mar 19 14:53 ken
-r--r----- 1 root root 958 mar 19 12:16 README
At this point when I level down using sudo su ken
, and want to get into sudoers.d I keep getting the permission denied statement.
I am not even able to access sudoers.d as user, see this:
ken@ken-Inspiron-5558:/etc$ cd /etc/sudoers.d/
bash: cd: /etc/sudoers.d/: Permission denied-
sudo
?sudo
is automatically set up on Ubuntu systems in almost all circumstances. – QwertyChouskie Mar 19 '16 at 21:20/etc/sudoers.d
as a normal user. – muru Mar 19 '16 at 21:23/etc/sudoers*
files and directories, this is correct and intended for security reasons. – Byte Commander Mar 19 '16 at 21:24