Fixes for default and new user group memberships
This commit is contained in:
parent
0129806fa1
commit
272f4157d7
2 changed files with 2 additions and 3 deletions
|
|
@ -74,7 +74,7 @@ SKEL_IGNORE_REGEX="dpkg-(old|new|dist|save)"
|
||||||
# new users to other groups.
|
# new users to other groups.
|
||||||
# This is the list of groups that new non-system users will be added to
|
# This is the list of groups that new non-system users will be added to
|
||||||
# Default:
|
# Default:
|
||||||
EXTRA_GROUPS="audio video sudo aid_system aid_graphics aid_input aid_audio aid_net_bt_admin aid_net_bt aid_inet aid_inet_raw aid_inet_admin"
|
EXTRA_GROUPS="audio input video sudo dialout aid_media aid_system aid_graphics aid_input aid_audio aid_net_bt_admin aid_net_bt aid_inet aid_inet_raw aid_inet_admin"
|
||||||
|
|
||||||
# If ADD_EXTRA_GROUPS is set to something non-zero, the EXTRA_GROUPS
|
# If ADD_EXTRA_GROUPS is set to something non-zero, the EXTRA_GROUPS
|
||||||
# option above will be default behavior for adding new, non-system users
|
# option above will be default behavior for adding new, non-system users
|
||||||
|
|
|
||||||
|
|
@ -219,10 +219,9 @@ groupadd --gid 9999 aid_nobody
|
||||||
useradd --gid 9999 --no-create-home --home-dir /nonexistent --no-user-group --system --shell /usr/sbin/nologin --uid 9999 aid_nobody
|
useradd --gid 9999 --no-create-home --home-dir /nonexistent --no-user-group --system --shell /usr/sbin/nologin --uid 9999 aid_nobody
|
||||||
|
|
||||||
groupadd -g 100000 cosmo
|
groupadd -g 100000 cosmo
|
||||||
useradd -m -u 100000 -g 100000 -G audio,input,video,sudo,aid_system,aid_graphics,aid_input,aid_audio,aid_net_bt_admin,aid_net_bt,aid_inet,aid_net_raw,aid_net_admin -s /bin/bash cosmo
|
useradd -m -u 100000 -g 100000 -G audio,input,video,sudo,dialout,aid_media,aid_system,aid_graphics,aid_input,aid_audio,aid_net_bt_admin,aid_net_bt,aid_inet,aid_net_raw,aid_net_admin -s /bin/bash cosmo
|
||||||
echo cosmo:cosmo | chpasswd
|
echo cosmo:cosmo | chpasswd
|
||||||
|
|
||||||
usermod systemd-timesync -a -G aid_inet
|
usermod systemd-timesync -a -G aid_inet
|
||||||
usermod avahi -a -G aid_inet
|
usermod avahi -a -G aid_inet
|
||||||
sudo usermod pulse -a -G aid_media
|
sudo usermod pulse -a -G aid_media
|
||||||
sudo usermod cosmo -a -G aid_media
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue