Den 2020-07-06 kl. 11:23, skrev ToddAndMargo via users:
> On 2020-07-05 23:31, Jon Ingason wrote:
>> Den 2020-07-06 kl. 07:49, skrev ToddAndMargo via users:
>>> On 2020-07-05 21:47, Tom H wrote:
>>>> On Mon, Jul 6, 2020 at 12:59 AM ToddAndMargo via users
>>>> <users@lists.fedoraproject.org> wrote:
>>>>>
>>>>> $ grep -i users group
>>>>> users:x:100:todd
>>>>> libvirt:x:977:root:users
>>>>
>>>> Are you sure that you can nest a group within another in "/etc/group"?
>>>
>>> I goofed the syntax.   You use @ in front of groups
>>>
>>> libvirt:x:977:root:@users
>>
>> Why not read the man page?
>>
>> $ man 5 group
>>
>> DESCRIPTION
>>         The  /etc/group file is a text file that defines the groups on
>>         the system.  There is one entry per line, with the following
>>         format:
>>
>>             group_name:password:GID:user_list
>>
>>         The fields are as follows:
>>
>> ...
>>
>>         user_list   a  list  of  the  usernames that are members of this
>>                     group, separated by commas.
>>
>>
>> So the line for libvirt in /etc/group should be:
>>
>> libvirt:x:977:todd,user1,user2,...
> 
> 
> Several of us did, including me.
> 
> Did you find @group in the man page anywhere?  I only
> remembered it off the top of my head.

No, there don't exist any variable like "@group" in /etc/group. The data
in /etc/group lines where format is:

group_name:password:GID:user_list

It has been in over 40 years in Unix and ever since Linux where born.

Regards

Jon Ingason
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to