Operating System - HP-UX
1824996 Members
2437 Online
109678 Solutions
New Discussion юеВ

Re: Multiple groups permission to a directory or files

 
SOLVED
Go to solution
Shivkumar
Super Advisor

Multiple groups permission to a directory or files

Hi,

We know that group permission means that member of the group will get same permission as group. If a directory or file has more than one groups then we use newgrp command to get the permission.

My question is there any other way we can assign multiple group permission to a directory or files ?

Thanks,
Shiv
2 REPLIES 2
Michael Steele_2
Honored Contributor
Solution

Re: Multiple groups permission to a directory or files

You will find many related commands like the following if you man 'command'. They are listed at the bottome of the man page:

getprivgrp(1), chown(2), getprivgrp(2), lockf(2), plock(2), rtprio(2), rtsched(2), serialize(2), setgid(2), setuid(2), shmctl(2), mpctl(2), pset_create(2), privgrp(4).

Start with setprivgrp and getprivgrp.

The setprivgrp command associates a group with a list of privileges, thus providing access to certain system capabilities for members of a particular group or groups. The privileges can be displayed with the getprivgrp command (see getprivgrp(1)).
Support Fatherhood - Stop Family Law
Jeeshan
Honored Contributor

Re: Multiple groups permission to a directory or files

or may be ACL can help you.
a warrior never quits