Web lists-archives.com

Re: File and directory permissions

On 07/03/18 13:56, epsilon491@xxxxxxxxxxxx wrote:
On terminal A,
chown root:root /opt/experiment/
chmod 700 /opt/experiment
On terminal B,
whoami #aristo
touch bbb
# OK bbb is created in /opt/experiment/
cd /opt/experiment/
# Gives permission denied
ls -la
# Gives correct listing
# Gives /opt/experiment

I cannot reproduce this behaviour on a local ext4 filesystem. As soon as access is removed, a nonprivileged user cannot cd to or list contents of the test directory.

Do you have any network filesystems involved in this test?

Kind regards,

Ben Caradoc-Davies <ben@xxxxxxxxxxxx>
Transient Software Limited <https://transient.nz/>
New Zealand