1831074 Members
2190 Online
110019 Solutions
New Discussion

Change access r ight

 
SOLVED
Go to solution
O'lnes
Regular Advisor

Change access r ight

How to add a group of user to access a specify directory (eg. Add ACC group to read /home/EDP ? Thanks.




Andy
9 REPLIES 9
U.SivaKumar_2
Honored Contributor

Re: Change access r ight

Hi,
Create two users ACC , EDP with same group name for example COMPANY.
Now
#chown EDP:COMPANY /home/EDP
Now since ACC user is in group COMPANY , he will be able to access /home/EDP.

regards,
U.SivaKumar
Innovations are made when conventions are broken
I_M
Honored Contributor
Solution

Re: Change access r ight

Hi

Create group acc
# groupadd acc

# useradd -g acc

good luck
O'lnes
Regular Advisor

Re: Change access r ight

I would like to carify my question:
Here is the example : There is a diectory /home/EDP in our system, only EDP users can access the directory currently, now i would like let all users under ACC group to access this directory also ,how to do it? Thanks.
Andy
U.SivaKumar_2
Honored Contributor

Re: Change access r ight

Hi,
simple
#chown :ACC /home/EDP

regards,
U.SivaKumar
Innovations are made when conventions are broken
O'lnes
Regular Advisor

Re: Change access r ight

Hi U.SivaKumar ,

I don't want change owner of directory, i just want ADD ACC group ( or just one user )to access the directory. (your method seems to change the owner) Thanks.
Andy
O'lnes
Regular Advisor

Re: Change access r ight

Hi U.SivaKumar ,

I don't want change owner of directory, i just want ADD ACC group ( or just one user )to access the directory. (your method seems to change the owner) Thanks.
Andy
O'lnes
Regular Advisor

Re: Change access r ight

Hi U.SivaKumar ,

I don't want change owner of directory, i just want ADD ACC group ( or just one user )to access the directory. (your method seems to change the owner) Thanks.

How about the command 'chacl' ?
Andy
U.SivaKumar_2
Honored Contributor

Re: Change access r ight

But there is no chacl in linux. IF it is hpux
fine

regards,
U.SivaKumar
Innovations are made when conventions are broken
benoit Bruckert
Honored Contributor

Re: Change access r ight

You can add for all users from ACC a secondary group which is the group owner of your directory ???
If I understand your need ??
regards
BEnoit
Une application mal pansée aboutit à une usine à gaze (GHG)