LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Symbolic links (https://www.linuxquestions.org/questions/linux-newbie-8/symbolic-links-710630/)

shorte85 03-10-2009 08:06 PM

Symbolic links
 
With the permissions associated with symbolic links, with the universal access and so forth. This wouldn't lead to security issues, would it?

bsdunix 03-10-2009 08:11 PM

The proper security settings should be on what the symbolic link points to.

shorte85 03-10-2009 08:34 PM

I guess I don't understand what you are saying. Sorry...

palisetty_suman 03-10-2009 08:55 PM

Hi
 
Hi it depends. For symbolic link you just create a file which points to the original file. So its just like normal file. The permissions you are going to give for the original file will be on the other file which is pointing to the original file.
If you think that anything wrong can be done for ordinary(general or normal) files then this too can be done. It all depends on the permissions you give.

ALL THE BEST

bsdunix 03-10-2009 09:49 PM

"The file permissions on a symbolic link are not used (they always appear as rwxrwxrwx). Instead, the permissions on the symbolic link are determined by the permissions on the target of the symbolic link (in our example, the file foo)."

http://tldp.org/LDP/gs/node5.html#SE...00000000000000

The symbolic link is just a pointer to the real (target) object (file, directory, binary, script, etc.) If the permissions on the target object only allow root to access it, then ordinary users will not be able to.

shorte85 03-10-2009 10:54 PM

Yeah, but doesn't symbolic links have the universal access permissions? If that's the case, wouldn't that be a security issue?

palisetty_suman 03-10-2009 11:01 PM

hi
 
Hi what do u m. ean by universal permissions? Its just rwx and thats it. Yes its security issue if you give all the rights. If you don't give execute permission for group and others, its not securit isuue.

Nobody will give better explanation than this i guess.

shorte85 03-10-2009 11:08 PM

Thanks, I appreciate you guys all helping me out!! :)


All times are GMT -5. The time now is 09:29 AM.