1829759 Members
21574 Online
109992 Solutions
New Discussion

Group permission

 
SR_2006
Frequent Advisor

Group permission

Hi all,
How to find each group permission on Hp-UX?
Also for what purpose the system user & group like lp uucp,www,webadmin are required.shold I remove this ?
thanks.
6 REPLIES 6
RAC_1
Honored Contributor

Re: Group permission

Don't know what exactly you are lokking for?

Certain groups like lp, uucp are required by systen daemons. www and webadmins are not common. Do you have use of them in your systems? , else you can remove them.
There is no substitute to HARDWORK
spex
Honored Contributor

Re: Group permission

SRL1,

I'm not sure if this is what you're looking for, but to get a list of groups on your system, look at /etc/group.

# more group
root::0:root
bin::2:root,bin

The first field is the group name, the second is the group password (hardly ever used), the third is the group id (gid), which is how the OS actually keeps track of the group, and the fourth contains group members. A username needs to be added to this field only when the user is a member of multiple groups. However, it is necessary for the gid to appear in the appropriate field for that user's entry in /etc/passwd. Remember that usernames are group names can be the same (e.g. root and root, bin and bin).

# ll -F /usr | awk '{print $1,$3,$4,$9}' | tail -8
drwxr-xr-x oracle dba quest/
dr-xr-xr-x bin bin sam/
dr-xr-xr-x bin bin sbin/
dr-xr-xr-x bin bin share/
lrwxr-xr-t root sys spool@
lrwxr-xr-t root sys tmp@
dr-xr-xr-x bin bin tsm/
dr-xr-xr-x bin bin vue/

The first field contains access/execution permissions for the file or dir, the second contains the owner's name, the third contains the group name, and the fourth is the name of the file or dir.

For more information:
# man group
# man ls
# man id
# man passwd
# man chmod
# man umask

The groups you mentioned are not causing any harm, so I see no reason to get rid of them.

PCS
SR_2006
Frequent Advisor

Re: Group permission

Hi all,
I am looking the permission for different group in the system.How to find it.
thanks.....
spex
Honored Contributor

Re: Group permission

SRL1,

Have a look at:
# sam &
Accounts for Users and Groups -> Groups, which is just a GUI wrapper of /etc/group.

List -> Users to switch to a list of users, which is a wrapper of /etc/passwd.

If this isn't the answer you're looking for, please make your question more clear.

PCS
jdcarroll15
Occasional Contributor

Re: Group permission

It is not possible to determine the permission for a group. Permissions are establish at a directory/file level and could be or any user/group. You would need to do a scan of your entire system to determine what directories and files a particular group has access to. So it's not so easy to say what a user or group has permission to do, but you can see if a user/group has permissions to read/write/execute a specific directory or file.
SR_2006
Frequent Advisor

Re: Group permission

thank all.