What is the canonical use for the "sys" and "adm" groups?
Since the beginning of time (or as long as I remember anyway) linux systems have had a "sys" and an "adm" group. What is the canonical use for them? Would it be appropriate to use either for a "super user" group? (Group permissions on directories, in sudoers, etc).
Solution 1:
There is no standard requiring any interoperability meaning of this groups.
Traditionally the adm
group is used to give a user access to some sort of system log files.
See e.g. ls -l /var/log
.
The sys
group normally intended to give a user some kind of administration rights.
E.g. archlinux use this group for cups administration. Other distributions behave differently.
E.g. on ubuntu the group lpadmin
is used for cups administration.
The sys
group here is still defined, but seems to be unused.
Solution 2:
You can list the groups by this:
$cat /etc/group
Uses of adm and sys groups:
adm
: Group adm is used for system monitoring tasks. Members of this group can read many log files in /var/log
, and can use xconsole
. Historically, /var/log
was /usr/adm
(and later /var/adm
), thus the name of the group.
system
: This group is used for configuration and maintenance for hardware
and software
.
Hope this link will help..