Operating System - HP-UX
1752780 Members
6327 Online
108789 Solutions
New Discussion юеВ

chown/chgrp on symbolic links

 
SOLVED
Go to solution
Bob Ferro
Regular Advisor

chown/chgrp on symbolic links

I found a great C program to change the permissions on a symbolic soft link (chmod on symbolic links). I was wondering is there a way to change the ownership/group for a symbolic soft link other than deleting the link and recreating it? I work for the Department of Defense and are audits require that file ownership and groups be very specific.
3 REPLIES 3
Peter Leddy_1
Esteemed Contributor
Solution

Re: chown/chgrp on symbolic links

Hi Bob,

You can use the -h option with chown, have a look at the manpage for chown it explains it.

http://docs.hp.com/en/B2355-90680/chown.1.html

Regards,

Peter
Bob Ferro
Regular Advisor

Re: chown/chgrp on symbolic links

That did it. Thanks very much.
Bob Ferro
Regular Advisor

Re: chown/chgrp on symbolic links

Thanks again.