Symbolic Links Permissions Unique Problem!
I hope this is the correct place to post this request.
Is it possible to change permissions on symbolic links using the c programming language or any other for that matter? Now, I know what you are thinking, so let me provide some background. I know permission are meaningless. I know that typically permissions are set to 777.
The project that I am working on does the following. On HPUX systems, a c binary recreates missing links from a stored image of the filesystem, if they are missing. The problem is that the permissions are 700 when the links are restored (should be 777). The c method to restore the symbolic links is "symlink()" which takes as its argument the target and linkname. The client wants 777 on the links. I do not know why the permissions are different.
I would like to know if I can change permissions on the link by code, changing the mode?
Is this a bug somewhere in HPUX 10,x and 11.x os or "symlink" c library method, who knows? There are groups of nodes running HPUX, for example groupA, groupB etc. The problems appears in groupA but not in groupB. Seems the nodes are configured differently. While I would love to know if this is a configuration issue, it appears that way to me, there would be little I could do about it. Politics you know, but that's okay, in time someone would listen. Any input either way would be appreciated.