[opensuse] users group membership
Hello: In recent openSUSE versions users are not added to "users" group in /etc/group file (and in YaST they are not marked as members of "users" group). If I remember correctly in openSUSE 9.x and 10.x users were added to "users" group. How is it set that users belong to "users" group? Why isn't it necessary to add users to "users" group? Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
03.11.2019 14:30, Istvan Gabor пишет:
Hello:
In recent openSUSE versions
"recent" is subjective. If you want useful answer, always tell what version you have.
users are not added to "users" group in /etc/group file (and in YaST they are not marked as members of "users" group). If I remember correctly in openSUSE 9.x and 10.x users were added to "users" group.
How is it set that users belong to "users" group?
New user by default has "users" as primary group on Leap 15.1 which should be recent enough.
Why isn't it necessary to add users to "users" group?
Because it is already user primary group. I would argue that having "users" as primary user group by default is wrong and probably regression, but one needs to dig into history to make any statement. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Sun, 3 Nov 2019 14:44:33 +0300, Andrei Borzenkov wrote:
03.11.2019 14:30, Istvan Gabor пишет:
Hello:
In recent openSUSE versions
"recent" is subjective. If you want useful answer, always tell what version you have.
All Leap and possibly 13.x versions.
users are not added to "users" group in /etc/group file (and in YaST they are not marked as members of "users" group). If I remember correctly in openSUSE 9.x and 10.x users were added to "users" group.
How is it set that users belong to "users" group?
New user by default has "users" as primary group on Leap 15.1 which should be recent enough.
Why isn't it necessary to add users to "users" group?
Because it is already user primary group.
I would argue that having "users" as primary user group by default is wrong and probably regression, but one needs to dig into history to make any statement.
According to your and Carlos' answer the rule is: The user's default group is specified in the /etc/passwd file. It is not necessary to specify this membership again in /etc/group. In /etc/group only additional group memberships has to be set. Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2019-11-03 11:44 a.m., Istvan Gabor wrote:
On Sun, 3 Nov 2019 14:44:33 +0300, Andrei Borzenkov wrote:
03.11.2019 14:30, Istvan Gabor пишет:
Hello:
In recent openSUSE versions
"recent" is subjective. If you want useful answer, always tell what version you have.
All Leap and possibly 13.x versions.
Since SuSE 6.3 I have never had an install where users were not in group 'user'. That includes at least one of the 13.x versions, as well as 42.1, 42.3 and 15.0 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 03/11/2019 12.30, Istvan Gabor wrote:
Hello:
In recent openSUSE versions users are not added to "users" group in /etc/group file (and in YaST they are not marked as members of "users" group). If I remember correctly in openSUSE 9.x and 10.x users were added to "users" group.
How is it set that users belong to "users" group? Why isn't it necessary to add users to "users" group?
You have to also look at "/etc/passwd": cer:x:1000:100:Carlos:/home/cer:/bin/bash . . . . . *** I belong to group 100 by default, which is "users". You can issue the command "groups" and see to which you belong. - -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCXb7IdwAKCRC1MxgcbY1H 1T9NAJ9xy2rNQfGI4ErCsQOtV0pcM5M38gCZATOFp2WsT/W0TTHuTR33KRBfFAY= =9I+L -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 03/11/2019 06:30, Istvan Gabor wrote:
Hello:
In recent openSUSE versions users are not added to "users" group in /etc/group file (and in YaST they are not marked as members of "users" group). If I remember correctly in openSUSE 9.x and 10.x users were added to "users" group.
How is it set that users belong to "users" group? Why isn't it necessary to add users to "users" group?
My memory told me that this was controlled in /etc/login.defs but on inspection I see that's not right, that its only about supplementary groups. Somewhere there is a file that defines what the basic setting of a newly created account are: where the home directory goes, permissions, and of course the group. Hmm /etc/systemd/user.conf isn't quite it Ah, here it is: /etc/default/useradd -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (5)
-
Andrei Borzenkov
-
Anton Aylward
-
Carlos E. R.
-
Darryl Gregorash
-
Istvan Gabor