1752577 Members
3927 Online
108788 Solutions
New Discussion юеВ

Re: Directory permission

 
SOLVED
Go to solution
hangyu
Regular Advisor

Directory permission

there is a directory eg. /tmp/ora_src , , the directory owner is ora:edp , -rw-rw-r-- , now all edp group user can overwrite in it .If I would like to allow another group ( except edp ) of user also can overwrite file in it , if not change to -rw-rw-rw- , can advise what can i do ? thx
7 REPLIES 7
Peter Godron
Honored Contributor

Re: Directory permission

Hi,
if it is a JFS you could use acl (See man setacl) to define edp and the new group as write enabled.
Or you could add the users to the edp group as a secondary group.
Yarek
Regular Advisor

Re: Directory permission

Hi,

I agree with Peter, Aceess Control List (ACL)
would be a good solution.

rgds
V. Nyga
Honored Contributor

Re: Directory permission

Hi,

or add the other users to group edb ...

Volkmar
*** Say 'Thanks' with Kudos ***
Dennis Handly
Acclaimed Contributor

Re: Directory permission

>Peter: Or you could add the users to the edp group as a secondary group.

To make this easy, you need to link /etc/logingroup to /etc/group.
Raj D.
Honored Contributor
Solution

Re: Directory permission

Hangyu,

.If I would like to allow another group :
Well , you can use acl for that purpose.
Check this out:

http://docs.hp.com/en/B9106-90007/setacl.1.html


Secendly if you want to allow another user, to access that dir, simply add the use to that group using usermod or sam,

Cheers,
Raj.

" If u think u can , If u think u cannot , - You are always Right . "
perumal_2
Frequent Advisor

Re: Directory permission

Hi

acl would be best fit for your requirement.
Refer the man page of setacl & getacl to get more ideas. If there are existing files and you need to have the same privilege like the new ones after the you set the directory level acl, you need to setacl for those files individually (you can write a small script to automate it)

TQ
Perumal
deepakinit
Advisor

Re: Directory permission

hai

make the other groups as the secondary group of the owner using usermod -G option.