Operating System - Linux
1831944 Members
3324 Online
110032 Solutions
New Discussion

Re: Problems changing permissions to link

 
Carles Viaplana
Valued Contributor

Problems changing permissions to link

Hello,

I'm installing SAP in a Suse Linux 9 64 bits. During installation process it tries to change permissions to link but it failed (SAP log error is MOS-01085).

link has permissions for everybody and owner is SIDadm and sapsys.

Soft link is pointing to nfs in HP-UX system, but permissions there are granted (read-write) for any user from my Linux system.

I already opened a case in SAP, but as it seems a OS issue I open a thread in ITRC forums too.

Do you have any idea why it failed?

Thanks in advance for your help.
Regards,

Carles
6 REPLIES 6
Ivan Ferreira
Honored Contributor

Re: Problems changing permissions to link

Linux does not allows tha change of permissions for soft links. They will always have 777 permissions. Anyway, permissions for a soft link does not matter as the directory to which it points is the one that dictates the effective permissions.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Carles Viaplana
Valued Contributor

Re: Problems changing permissions to link

Yes, but what happens if program tries to change permissions to a soft link?
Ivan Ferreira
Honored Contributor

Re: Problems changing permissions to link

Well, a quick test tells me that no error is reported when you try to change the permissions of a soft link, but the permissions simply are not changed.

You could get errors only if the UID that tries to change the permissions is not the owner of the soft link. The owner of the soft link is the user that creates the soft link.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Nandu
New Member

Re: Problems changing permissions to link

Hi

Is the NFS exported directory is mounted locally in linux.
Jeroen Peereboom
Honored Contributor

Re: Problems changing permissions to link

If you do a chmod on a softlink, the permissions on its target are changed.
(The same for chown: it changes the owner of the target.) So softlinks are transparant.
Of course, one needs to have permission on the target of the softlink.

JP
Ilay_1
Occasional Advisor

Re: Problems changing permissions to link

It's no matter that it seems to have RW permissionson target file,try to change permissions on target file (which softlink point to) under user that do SAP installation if you fail,than change NFS export settings
/etc/exportfs file
/home 192.168.0.2(rw,root_squash)

I think that you try toinstall with root and root by default haven't RW access toNFS shares