4 ms·
You don't need write access to the target. A symlink is simply a file with a special attribute set, so all you need is the ability to write to the symlink's loc
by TazeTSchnitzel 11y ago
You don't need write access to the target. A symlink is simply a file with a special attribute set, so all you need is the ability to write to the symlink's location (as opposed to its target).
e.g.:
$ mkdir secrets
$ ls -l
drwxr-xr-x 2 ajf staff 68 28 Aug 15:17 secrets
$ chmod -rwx secrets
$ ls -l
d--------- 2 ajf staff 68 28 Aug 15:17 secrets
$ touch secrets/foo
touch: secrets/foo: Permission denied
$ ln -s secrets lies
$
- dogma1138 11y agoHmm on Windows it will check the permissions for both the source and the target on NTFS junctions.....
- TazeTSchnitzel 11y agoYeah, I assume Windows's junctions work differently.