Operating System - HP-UX
1827521 Members
2740 Online
109965 Solutions
New Discussion

write permission in /opt directory

 
surya_3
Occasional Contributor

write permission in /opt directory

How to give write permission to an user in /opt directory .(Not root user)


thanks,
spv
6 REPLIES 6
T G Manikandan
Honored Contributor

Re: write permission in /opt directory

All the applications place themselves inside the /opt file system.
Then if that is the case then you can give permissions for a non-root user only.

If it is the full /opt file system then normal user should not be given right permissions.
Analyse the impacts on giving the permission

Revert on the scenario.

Thanks

Norman_21
Honored Contributor

Re: write permission in /opt directory

Hi,

Not quit sure what you want to do, but if you want to give a user restricted permissions, you can use sam -r and then take it from there.
hope this help.
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003
Christian Gebhardt
Honored Contributor

Re: write permission in /opt directory

Hi
simply with the "chmod" command,but always consider the effects

Chris
Stanimir
Trusted Contributor

Re: write permission in /opt directory

Hi!
Try: #chmod -R +w /opt
But you must have a permission to do this.
Rgrds.
F. X. de Montgolfier
Valued Contributor

Re: write permission in /opt directory

Hi,

there several ways of doing so:

1.you may want to look at ACLs, which enable to give permissions for a specific user:
<>
This is by far the most secure way of giving write access to one user.

If you want to give write permission to a given user using the standard unix rights, you may want put the user in one specific group, then chgrp the directories you want to be writable for this user, then chmod g+w these directories.

As others in this thread have pointed out, though, you shouldn't give any user permissions on all the /opt filesystem...

Cheers,

FiX
Pete Randall
Outstanding Contributor

Re: write permission in /opt directory

You might want to consider something like sudo to distribute root privileges rather than opening up permissions on /opt:

http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.6.6/


Pete

Pete