Operating System - HP-UX
1752735 Members
5522 Online
108789 Solutions
New Discussion

Re: How to change permissions for symbolic links

 
Rahul Pednekar
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
Bill Hassell
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
Dennis Handly
Acclaimed Contributor

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.