Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.