cancel
Showing results for 
Search instead for 
Did you mean: 

group privileges

 
SOLVED
Go to solution
himacs
Super Advisor

group privileges

Hi Admins,
How we can check group privileges?
Can we set any privileges to group while creating?

Awaiting ur replies..

Regards,
himacs
4 REPLIES
Steven E. Protter
Exalted Contributor

Re: group privileges

Shalom,

id username < lists the groups >

umask sets permissions, primary group determines the group when a user creates a file.

You can overwrite this with directory defaults.

ll -d direcotry_name

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
himacs
Super Advisor

Re: group privileges

Hi Steven,

Thanks for ur reply.

Actually i wanted know about group.
By default what privileges any group having?
If we adding a user to any group,the user inheriting group privileges?
How to check group's present privileges

Regards
himacs
James R. Ferguson
Acclaimed Contributor

Re: group privileges

Hi:

If you want to be able to create files in a directory and have those files inherit the directory's group, set the 'setgid' bit on the directory. THus:

# mkdir /tmp/mydir
# chgrp users /tmp/mydir
# chmod 2777 /tmp/mydir
# touch /tmp/mydir/myfile
# ls -l /tmp/mydir/myfile
-rw-r--r-- 1 root users 0 Apr 8 10:21 /tmp/mydir/myfile

...thus the file was created with the group ownership of its parent directory.

Regards!

...JRF...
Ganesan R
Honored Contributor
Solution

Re: group privileges

Hi,

>>By default what privileges any group having?<<

normal groups will not have any privilages for it's own.

>>If we adding a user to any group,the user inheriting group privileges?<<

Yes. For examble if this group is having write access to one particular directory, it will be inherited to the users belongs to this group.

>>How to check group's present privileges<<
#cat /etc/group



Best wishes,

Ganesh.