[Disclaimer: there's no malicious intent to this question, I'm trying to understand the ln -s command for a school project]
Say I have a file system with my home folder, /home/anna. /home/bob is a folder I can't access, with a file I can't access, foo.txt
Can I successfully run ln -s /home/bob/foo.txt in my home folder? Is it correct to assume that if I can, it will produce a link I can't access (with the same permissions as foo.txt)?
What if I DID have read privileges on foo.txt, just not access to /home/bob?
What about the reverse case, where I could access /home/bob but not read foo.txt?
lswill typical show that aslrwxrwxrwx, so it's a little wrong to talk about permissions of a llink. – Henrik supports the community Apr 13 '17 at 07:37mount --bind(additionally you can set a mount point whose location is accessible to end user, and simlink to that mount point instead of directly using the mount point) – Jean Monet Dec 16 '20 at 20:14