Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Groups can have administrators. This is what I need to know. Which users are administrators of which groups. Not users who are a member of the group administrators, which doesn't exist on my system.
Administrators of a group... I have never heard of such a thing. Groups are groups because users of a group have different permissions than users of other groups. Anyone of a particular group should always have the same permissions.
Now, if you wanted to create an "Administrator" of a group, I would do it this way:
1. Create a group of users who has permissions to do certain things in a certain area.
2. Create another group of users who has those same permissions, but also extended permissions to perform administrative tasks.
Setting up your groups this way takes away the headaches of having to modify user permissions individually; it allows you to modify all permissions at a group level. You never want to individually manage users in a large organization as it requires too much administrative overhead.
Forgive me if I sound like I'm trying to educate you, but as an enterprise-grade systems administrator/network engineer, this is the only efficient way to get the job done.
Thanks for you suggestions. However this is not quite what I'm after.
I want to have group administrators that can add or remove users of their group as they see fit. This can be achived with "gpasswd". Eg:
Code:
gpasswd -A lennon beatles
would make lennon administrator of beatles.
Since this function is built in to *nix, I thought there must be a way to list the admins of a group. The man pages and the Googler are strangely silent concerning this...
EDIT: Just found the answer! The group admins can be seen in /etc/gshadow.
Helpful:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.