cancel
Showing results for 
Search instead for 
Did you mean: 

Directory access on unix

 
Highlighted
Frequent Advisor

Directory access on unix

Hello,

I am not a Unix Pro and have a stupid question to ask.

There is a user on a unix box. I want this user to have permission to access a particular directory which does not belong to him or his group. At the same time, nobody else should be able to access that directory (apart from the owner of that directory.).

How do I achieve this?

Many thanks.
Rajesh
3 REPLIES 3
Highlighted

Re: Directory access on unix

Rajesh,

Not using standard UNIX permissions... but if we are talking about HP-UX here, you can use Access Control Lists (ACLs). For details see the man pages for aclv and setacl:

man 5 aclv
man 1 setacl

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Highlighted
Regular Advisor

Re: Directory access on unix

Run the command ls -al and find out who/what the owner/groups are. And the easiest way would be to add that perosn to that secondary group. Say it is the dba group user command /usr/sbin/usermod â G group(s) < username> that should give them access.
Highlighted
Regular Advisor

Re: Directory access on unix

Wow typo use /usr/sbin/usermod -G group(s) < username>