Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 293
  • Last Modified:

gpasswd command and one question

I know gpasswd can be used to make a user an admin of a group, correct?

gpasswd -A <user name> <group name>

Is there anyway to tell who is an admin of what group?
thanks
0
dissolved
Asked:
dissolved
  • 2
  • 2
1 Solution
 
MysidiaCommented:
As root

cat /etc/gshadow

And look at the third field to the right of the group name

i.e.

mygroup:!:someadmin:

is a group with no password and admin user 'someadmin'
0
 
dissolvedAuthor Commented:
hmm i'm confused. Can you elaborate?
thanks
0
 
dissolvedAuthor Commented:
I see, there are no admins of groups by default.

If you would like, you can designate admin privileges to certain groups with the gpasswd -A <username> <groupname> command.  What kind of access will the designated admins have? Am I understanding correct?
Thanks
0
 
MysidiaCommented:
Right, a group has no group admin by default.

Generally the 'group admins' can use the gpasswd <group>
command to set a password for the group and add or remove
members

using
gpasswd -a user group

or
gpasswd -d user group

respectively
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now