LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-10-2009, 09:06 PM   #1
shorte85
Member
 
Registered: Mar 2009
Posts: 47

Rep: Reputation: 15
Question 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?
 
Old 03-10-2009, 09:11 PM   #2
bsdunix
Senior Member
 
Registered: May 2006
Distribution: Caldera, CTOS, Debian, FreeBSD, Mac OS X, Mandrake, Minix, OpenBSD, Slackware, SuSE
Posts: 1,757

Rep: Reputation: 79
The proper security settings should be on what the symbolic link points to.
 
Old 03-10-2009, 09:34 PM   #3
shorte85
Member
 
Registered: Mar 2009
Posts: 47

Original Poster
Rep: Reputation: 15
I guess I don't understand what you are saying. Sorry...
 
Old 03-10-2009, 09:55 PM   #4
palisetty_suman
Member
 
Registered: Feb 2007
Location: TX, USA
Distribution: fedora
Posts: 191

Rep: Reputation: 33
Thumbs up 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
 
Old 03-10-2009, 10:49 PM   #5
bsdunix
Senior Member
 
Registered: May 2006
Distribution: Caldera, CTOS, Debian, FreeBSD, Mac OS X, Mandrake, Minix, OpenBSD, Slackware, SuSE
Posts: 1,757

Rep: Reputation: 79
"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.
 
Old 03-10-2009, 11:54 PM   #6
shorte85
Member
 
Registered: Mar 2009
Posts: 47

Original Poster
Rep: Reputation: 15
Yeah, but doesn't symbolic links have the universal access permissions? If that's the case, wouldn't that be a security issue?
 
Old 03-11-2009, 12:01 AM   #7
palisetty_suman
Member
 
Registered: Feb 2007
Location: TX, USA
Distribution: fedora
Posts: 191

Rep: Reputation: 33
Thumbs up 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.
 
Old 03-11-2009, 12:08 AM   #8
shorte85
Member
 
Registered: Mar 2009
Posts: 47

Original Poster
Rep: Reputation: 15
Thanks, I appreciate you guys all helping me out!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Symbolic links Vs Hard links sulekha Linux - General 2 10-02-2008 08:03 AM
Symbolic Links SBN Linux - Newbie 5 08-09-2007 06:48 AM
Symbolic links? TongueTied Linux - Newbie 3 08-27-2003 07:00 AM
Symbolic links pdstatha Programming 1 04-08-2002 10:50 PM
symbolic links winger Linux - General 5 04-06-2002 06:16 PM


All times are GMT -5. The time now is 04:57 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration