I created a group using groupadd, then used gpasswd to add a group
administrator and two other group members. However, I could not use
gpasswd to remove the group administrator from the group because the
administrator was not added as a group member. Is this a bug or a
feature?

To recreate on RH 7.2 beta, a/k/a Roswell 2 (YMMV on other distros):

    # groupadd admins
    # gpasswd -A marysue -M joebob,bubba admins
    # grep admins /etc/group /etc/gshadow
    /etc/group:admins:x:505:joebob,bubba
    /etc/gshadow:admins:!:marysue:joebob,bubba

Note that marysue is not shown as a group member in /etc/group or in
/etc/gshadow.

    # gpasswd -d marysue
    Removing user marysue from group admins
    gpasswd: unknown member marysue

So, is a group administrator *not* also by definition a group member?
It appears not, to wit:

    # gpasswd -M marysue
    # grep admins /etc/group /etc/gshadow
    /etc/group:admins:x:505:joebob,bubba,marysue
    /etc/gshadow:admins:!:marysue:joebob,bubba,marysue
    # gpasswd -d marysue
    Removing user marysue from group admins
    # grep admins /etc/group /etc/gshadow
    /etc/group:admins:x:505:joebob,bubba
    /etc/gshadow:admins:!:marysue:joebob,bubba

Strange. Or, at least, unexpected. I would have supposed that a group
administrator would also be a group member. Anyone?

Kurt
-- 
Virtue would go far if vanity did not keep it company.
                -- La Rochefoucauld
_______________________________________________
http://linux.nf -- [EMAIL PROTECTED]
Archives, Subscribe, Unsubscribe, Digest, Etc 
->http://linux.nf/mailman/listinfo/linux-users

Reply via email to