Change permissions for link in solaris


 
Thread Tools Search this Thread
Operating Systems Solaris Change permissions for link in solaris
# 1  
Old 07-06-2010
Change permissions for link in solaris

Hi I am an application admin. My users have all d code at one place. I am planning to create a link on every ones home directory. But i want to know change the permissions of the link so that users will delete it accidentally.

Could you please tell me how to change the permissions on the link but not on the file it points too.

I tried to change the permissions using chmod <link> . But didn't work...

The OS is solaris 10.

Thanks,
Firestar
# 2  
Old 07-06-2010
I assume by "links" you mean symbolic links. If so POSIX mandates permission bits be ignored.
# 3  
Old 07-07-2010
Quote:
Originally Posted by firestar
But i want to know change the permissions of the link so that users will delete it accidentally.
Please explain again what exactly is your goal.
# 4  
Old 07-07-2010
@jlliagre

I need to create a symbolic link in users home directory which points to code library...... Users will use the symbolic link to go to code library. The permissions are needed to be set in a way that users cannot delete the link....
# 5  
Old 07-07-2010
Users own their home directory and so are able to create or remove files including symbolic links there at their will. Your design is flawed.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Change reference of symbolic link

Hello all, I am trying to recursively find symbolic links for a given name find . -type l -name ABC -exec ls -ltr {} \;where ABC refers to /user/fre/crmso/share I want to replace the reference of initial part of directories from /user/fre/crmso to /user1/amx/seamBut want to accomplish... (2 Replies)
Discussion started by: sethmj
2 Replies

2. UNIX for Dummies Questions & Answers

Change permissions

Hi everyboy, I've installed a Virtualbox on my computer, inside the VB i'm running RedHat. So my problems it's that i need to run the scripts runasroot.sh to install the guest addiont, i'm doing this by console. I wrote chmod 775 ./runasroot.sh but doesn't works. I'm login as root user. Any... (8 Replies)
Discussion started by: Newer
8 Replies

3. UNIX for Dummies Questions & Answers

To change permissions in mv or cp

Is there any option with mv or cp command so that a file permissions and name of the file can be changed in single mv or cp command. I searched man mv but doesn't found any option like that. (3 Replies)
Discussion started by: Devesh5683
3 Replies

4. Shell Programming and Scripting

ksh; Change file permissions, update file, change permissions back?

Hi, I am creating a ksh script to search for a string of text inside files within a directory tree. Some of these file are going to be read/execute only. I know to use chmod to change the permissions of the file, but I want to preserve the original permissions after writing to the file. How can I... (3 Replies)
Discussion started by: right_coaster
3 Replies

5. UNIX for Dummies Questions & Answers

Need to change permissions

Hi everyone, There are couple of users of which i need to give 2 of the users admin rights so that they are able to run the administration commands like "zoneadm" and locale. When logged in as root i am obviously able to do that.please suggest any way by which the other 2 user's permissions can... (3 Replies)
Discussion started by: sankasu
3 Replies

6. Shell Programming and Scripting

How to change the owner of soft link

How to change the owner ship of the soft link lrwxrwxrwx 1 root root 4 Jun 29 16:27 soft_test -> test I need to change the above owner ship to httpd:httpd Whats the shell command i need to use for it :) (2 Replies)
Discussion started by: kalpeer
2 Replies

7. UNIX for Dummies Questions & Answers

change target of a symbolic link

Hi, Is it possible to change the target of a symbolic link? What I currently have is: /home/Data1 /home/Data2 /home/Stores In the Stores directory, I did: ln -s /home/Data1 /home/Stores/abc $ pwd /home/Stores $ ls -latr lrwxrwxrwx 1 dandy dandy 46 Feb 12 16:38 abc ->... (5 Replies)
Discussion started by: dandyrandy
5 Replies

8. UNIX for Advanced & Expert Users

How to change the permissions of ksh?

Suppose, I want to execute unix commands. For that I have to go to ksh, but if I don't have execute permission to ksh itself then is there any way to change the permission of ksh? chmod command does not work for this because, I don't have permission to ksh itself... :) Let me know, if you have... (3 Replies)
Discussion started by: ponnuvel
3 Replies

9. UNIX for Dummies Questions & Answers

need command to change permissions

I have a very simple question which I am not able to crack. There is an user with same username and groupname. How do I change permissions of a file to have the username and groupname assigned for the user "test". Appreciate you help. -Carl (1 Reply)
Discussion started by: calredd
1 Replies

10. UNIX for Dummies Questions & Answers

Permissions on link files

Does any one now if you can change permissions on a linked file with out completely removing it and then relinking it? (2 Replies)
Discussion started by: moviestud80
2 Replies
Login or Register to Ask a Question