Languages and Scripting
cancel
Showing results for 
Search instead for 
Did you mean: 

How to change permissions for symbolic links

 
Highlighted
Frequent Advisor

How to change permissions for symbolic links

Hello All,

 

Is there any way to change the permissions to 777 for softlink files??

 

lrwxr-x--- 1 root   sys 31 May 3 23:17 link_3486 -> /dev/vg01_19/link_3486

 

I have hundreds of them to change and I dont really want to recreate those after changing umask. ;))))

 

 

 

 

Thanks,

 

 

P.S. This thread has been moved from General to HP-UX > languages. - Hp Forum moderator

 

 

2 REPLIES 2
Honored Contributor

Re: How to change permissions for symbolic links

The lchmod.c code by Clay will help (attached):

 

http://h30499.www3.hp.com/t5/General/Permission-on-Symbolic-links/td-p/3624264

 



Bill Hassell, sysadmin
Highlighted

Re: How to change permissions for symbolic links

>Is there any way to change the permissions to 777 for softlink files??

 

Why do you care?  The permissions on symlinks are just an illusion.

Only the link target permissions are important.