LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-01-2007, 04:41 PM   #1
x_terminat_or_3
Member
 
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 342

Rep: Reputation: 38
Restricting symlinks


Hi all

I have come to a quite shocking discovery (for me at least) that when you create symbolic links, those links are set to 0777 (rwx for all)!

Is there any way that I can change the permissions of the link?

Here is a transcript of my session:

Code:
[kde@earth ~]$ touch test-1.0.0
[kde@earth ~]$ ln -s test-1.0.0 test
[kde@earth ~]$ ls -alh test*
lrwxrwxrwx 1 kde kde 10 2007-09-01 22:39 test -> test-1.0.0
-rw-rw-r-- 1 kde kde  0 2007-09-01 22:39 test-1.0.0
[kde@earth ~]$ chmod 0755 test
[kde@earth ~]$ ls -alh test*
lrwxrwxrwx 1 kde kde 10 2007-09-01 22:39 test -> test-1.0.0
-rwxr-xr-x 1 kde kde  0 2007-09-01 22:39 test-1.0.0
 
Old 09-01-2007, 04:53 PM   #2
kotnik
Member
 
Registered: Nov 2004
Location: Novi Sad, Serbia
Distribution: Debian, Slackware, Gentoo, openSuSE
Posts: 254

Rep: Reputation: 31
Don't worry. Original file's permissions still apply
 
Old 09-01-2007, 04:57 PM   #3
x_terminat_or_3
Member
 
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 342

Original Poster
Rep: Reputation: 38
I know that, but we use symlinks to restrict our developers from messing with the core files of the system, seeing it is on a production server.

A developer wants to change a file: create copy of currently linked one, make modifications, save with new version name, test,test,test.

Once testing is done, we replace the symbolic link that points to the old version, with one that points to the new one.

The developers only have ftp access and I disabled the SITE_CHMOD command so they cannot change permissions. When they find out that they can delete symbolic links, our system will go down the drain in a matter of days!
 
  


Reply



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
Symlinks and .. smidgie82 Linux - General 2 12-21-2005 04:13 PM
? on symlinks eroica Linux - Software 1 09-21-2004 09:45 AM
symlinks.. NSKL Slackware 3 05-26-2002 05:35 PM
Symlinks b0b0 Linux - General 2 11-08-2001 08:43 AM
symlinks tstuhr Linux - General 3 10-05-2001 10:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:07 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration