Re: File and directory permissions
- Date: Wed, 7 Mar 2018 12:42:19 +0100 (CET)
- From: <epsilon491@xxxxxxxxxxxx>
- Subject: Re: File and directory permissions
OK thanks for the explanations.
To make sure:
1.) To prevent this scenario, I have to do recursive chown and chmod.
2.) If I chmod only /opt/experiment, there is absolutely no other way to access apple, other than an already open terminal.
7. Mar 2018 14:34 by tomas@xxxxxxxxxx:
-----BEGIN PGP SIGNED MESSAGE-----
On Wed, Mar 07, 2018 at 12:19:06PM +0100, epsilon491@xxxxxxxxxxxx wrote:Addition to previous email:
In terminal B I can still modify a files as follows:
echo "123" > aaa
But when I do,
even in the same terminal, vi can't access the file aaa.
That's because vi probably converts the path to absolute before
trying to open it. It wouldn't need to, see the openat() system
call for how.
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
-----END PGP SIGNATURE-----