On 1/11/2023 11:51 AM, Volker Lendecke wrote:
Am Wed, Jan 11, 2023 at 10:21:07AM -0600 schrieb Steve French:
Should this be 0777 instead of 0644?
I noticed the man page for symlink says:
"On Linux, the permissions of an ordinary symbolic link are not
used in any operations; the permissions are always 0777 (read,
write, and execute for all user categories), and can't be
changed."
I thought about that as well. If you "ls -l" such a symlink once
created, it will show as 0777, probably the client does it
somehow. The problem however is that if you create it with 0777
server-side, everybody can mess with that file that the client view as
a symlink. That's why I thought that 0644 is the best approximation.
Yeah, because this is an mfsymlink, which is really just a file with
specific contents, you might even argue 0444 is safest.
Definitely not 0777.
Tom.