Web lists-archives.com

Re: File and directory permissions




-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, Mar 07, 2018 at 02:46:05PM +1300, Ben Caradoc-Davies wrote:
> 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
> >pwd
> ># 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.

I can't reproduce, either. Once the chown to root happens, non-root
user can't touch files in directory. Ext4.

Cheers
- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlqfomIACgkQBcgs9XrR2kYFvACfaUppx+DNfR3DdU8HhwuAL+IM
i5UAn0uBEShvWRc/gfk9agkfwFecUpLI
=Nwky
-----END PGP SIGNATURE-----