bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#27168: eshell/sudo doesn't work with protected directories


From: Yegor Timoshenko
Subject: bug#27168: eshell/sudo doesn't work with protected directories
Date: Wed, 31 May 2017 19:36:57 +0300

Example (In M-x eshell):

cd /tmp
mkdir a
touch a/b
sudo chmod 700 a
sudo chown root:wheel a
sudo ls a

Expected output:

b

Instead I get:

/bin/ls: cannot open directory 'a': Permission denied

sudo cat a/b, etc. also don't work. I've found this problem while trying to cat my /etc/sudoers file:

$ sudo cat /etc/sudoers
Opening input file: Permission denied, /etc/sudoers

reply via email to

[Prev in Thread] Current Thread [Next in Thread]