Package: adduser
Version: 3.126
Severity: normal
X-Debbugs-Cc: sahibz...@gmail.com

Hi Maintainers,


While testing the welcoming DIRMODE change in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1014901

I've found that the new users home directory and files copied from */etc/skel* are now owned by the users secondary group *(users)*

rather than being owned by the users primary group. Also found some applications in KDE/Plasma are now creating files/directories

owned by the users secondary group *(users)*. Is this expected behavior going forward?


Attached is the */etc/adduser.conf* replaced by the latest package.

New behaviour

root@Computer:~$ ls -la
total 20
drwx------ 2 testuserafter users         4096 Aug 19 15:42 .
drwxr-xr-x 5 root          root          4096 Aug 19 15:28 ..
-rw-r--r-- 1 testuserafter testuserafter    0 Aug 19 15:42 abc
-rw-r--r-- 1 testuserafter users          220 Aug 19 15:14 .bash_logout
-rw-r--r-- 1 testuserafter users         3526 Aug 19 15:14 .bashrc
-rw-r--r-- 1 testuserafter users          807 Aug 19 15:14 .profile


Old behaviour

root@Computer:/home/testuserbefore# ls -la
total 20
drwxr-xr-x 2 testuserbefore testuserbefore 4096 Aug 19 15:15 .
drwxr-xr-x 5 root           root           4096 Aug 19 15:15 ..
-rw-r--r-- 1 testuserbefore testuserbefore  220 Aug 19 15:15 .bash_logout
-rw-r--r-- 1 testuserbefore testuserbefore 3526 Aug 19 15:15 .bashrc
-rw-r--r-- 1 testuserbefore testuserbefore  807 Aug 19 15:15 .profile


Thanks

Ibaidul


-- System Information:
Debian Release: bookworm/sid
APT prefers testing-debug
APT policy: (500, 'testing-debug'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.18.0-4-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages adduser depends on:
ii passwd 1:4.11.1+dfsg1-2

adduser recommends no packages.

Versions of packages adduser suggests:
ii cron 3.0pl1-149
ii liblocale-gettext-perl 1.07-4+b2
ii perl 5.34.0-5

-- debconf information:
adduser/title:
* adduser/homedir-permission: false
# /etc/adduser.conf: `adduser' configuration.
# See adduser(8) and adduser.conf(5) for full documentation.

# A commented out setting indicates that this is the default in the
# code. If you need to change those settings, remove the comment and
# make your intended change.

# The DSHELL variable specifies the default login shell on your
# system.
#DSHELL=/bin/bash

# The DHOME variable specifies the directory containing users' home
# directories.
#DHOME=/home

# If GROUPHOMES is "yes", then the home directories will be created as
# /home/groupname/user.
#GROUPHOMES=no

# If LETTERHOMES is "yes", then the created home directories will have
# an extra directory - the first letter of the user name. For example:
# /home/u/user.
#LETTERHOMES=no

# The SKEL variable specifies the directory containing "skeletal" user
# files; in other words, files such as a sample .profile that will be
# copied to the new user's home directory when it is created.
#SKEL=/etc/skel

# FIRST_SYSTEM_[GU]ID to LAST_SYSTEM_[GU]ID inclusive is the range for UIDs
# for dynamically allocated administrative and system accounts/groups.
# Please note that system software, such as the users allocated by the
# base-passwd package, may assume that UIDs less than 100 are unallocated.
#FIRST_SYSTEM_UID=100
#LAST_SYSTEM_UID=999

#FIRST_SYSTEM_GID=100
#LAST_SYSTEM_GID=999

# FIRST_[GU]ID to LAST_[GU]ID inclusive is the range of UIDs of dynamically
# allocated user accounts/groups.
#FIRST_UID=1000
#LAST_UID=59999

#FIRST_GID=1000
#LAST_GID=59999

# The USERGROUPS variable can be either "yes" or "no".  If "yes" each
# created user will be given their own group to use as a default.  If
# "no", each created user get the primary group defined below as
# USERS_GROUP or USERS_GID.
#USERGROUPS=yes

# Newly created users get this group as primary group if USERGROUPS
# "no", and as a supplemental group if USERGROUPS is "yes".
# Set one of the variables to reference the group. Don't set both.
#USERS_GID=100
#USERS_GROUP=users

# If DIR_MODE is set, directories will be created with the specified
# mode. Otherwise the default mode 0700 will be used.
#DIR_MODE=0700

# When creating system accounts: if SYS_DIR_MODE is set (and a home 
# location is specified), the directories will be created with the 
# specified node.  Otherwise the default mode 0755 will be used.
#SYS_DIR_MODE=0755

# If SETGID_HOME is "yes" home directories for users with their own
# group the setgid bit will be set. This was the default for
# versions << 3.13 of adduser. Because it has some bad side effects we
# no longer do this per default. If you want it nevertheless you can
# still set it here.  Note: this feature is DEPRECATED and will be
# removed in a future version of adduser; please use the DIR_MODE
# settings above instead.
#SETGID_HOME=no

# If QUOTAUSER is set, a default quota will be set from that user with
# `edquota -p QUOTAUSER newuser'
#QUOTAUSER=""

# If SKEL_IGNORE_REGEX is set, adduser will ignore files matching this
# regular expression when creating a new home directory
#SKEL_IGNORE_REGEX="(dpkg|ucf)-(old|new|dist|save)"

# Set this if you want the --add-extra-groups option to adduser to add
# new users to other groups.
# This is the list of groups that new non-system users will be added to
# Default:
#EXTRA_GROUPS="users"

# 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
#ADD_EXTRA_GROUPS=0

# check user and group names also against this regular expression.
#NAME_REGEX="^[a-z][-a-z0-9_]*\$?$"

# check system user and group names also against this regular expression.
#SYS_NAME_REGEX="^[a-z_][-a-z0-9_]*\$?$"

Reply via email to