Comment # 9 on bug 943176 from
hello there,

fine that something notices this old report. Sadly, I can report that it still
behaves same in the leap:

howto-reproduce:

# useradd -K UMASK=0077 -m darth-vader
# ls -la /home/darth-vader/
total 56
drwx------ 7 darth-vader users 4096 Oct 24 15:52 .
drwxr-xr-x 5 root        root  4096 Oct 24 15:52 ..
-rw------- 1 darth-vader users    0 May 18  1996 .bash_history
-rw-r--r-- 1 darth-vader users 1177 May 16 16:08 .bashrc
drwxr-xr-x 2 darth-vader users 4096 Oct  7  2016 bin
drwx------ 2 darth-vader users 4096 Oct  7  2016 .config
-rw-r--r-- 1 darth-vader users 1637 Sep 11  2014 .emacs
drwxr-xr-x 2 darth-vader users 4096 Oct  7  2016 .fonts
-rw-r--r-- 1 darth-vader users  305 Oct  8  2016 .i18n
-rw-r--r-- 1 darth-vader users  861 Sep 11  2014 .inputrc
drwx------ 2 darth-vader users 4096 Oct  7  2016 .local
-rw-r--r-- 1 darth-vader users 1028 May 16 16:08 .profile
drwxr-xr-x 2 darth-vader users 4096 Jun  1 09:29 public_html
-rw-r--r-- 1 darth-vader users 1952 Oct  8  2016 .xim.template
-rwxr-xr-x 1 darth-vader users 1112 May 30 11:51 .xinitrc.template


sadly second time, we can even extend this bug to:

`useradd handle with perms incorrectly when requested anything beyond umask
0022' because if you use -U (create group with same name as user and assign
user to it) it does 755 rights for others so it makes not a big sense, because
-U is supposed to imply 0027 umask or such like

# userdel -r darth-vader 
no crontab for darth-vader

# ls -ld ~darth-vader
ls: cannot access '~darth-vader': No such file or directory

# useradd -Um darth-vader

# ls -la /home/darth-vader/
total 56
drwxr-xr-x 7 darth-vader darth-vader 4096 Oct 24 15:55 .
drwxr-xr-x 5 root        root        4096 Oct 24 15:55 ..
-rw------- 1 darth-vader darth-vader    0 May 18  1996 .bash_history
-rw-r--r-- 1 darth-vader darth-vader 1177 May 16 16:08 .bashrc
drwxr-xr-x 2 darth-vader darth-vader 4096 Oct  7  2016 bin
drwx------ 2 darth-vader darth-vader 4096 Oct  7  2016 .config
-rw-r--r-- 1 darth-vader darth-vader 1637 Sep 11  2014 .emacs
drwxr-xr-x 2 darth-vader darth-vader 4096 Oct  7  2016 .fonts
-rw-r--r-- 1 darth-vader darth-vader  305 Oct  8  2016 .i18n
-rw-r--r-- 1 darth-vader darth-vader  861 Sep 11  2014 .inputrc
drwx------ 2 darth-vader darth-vader 4096 Oct  7  2016 .local
-rw-r--r-- 1 darth-vader darth-vader 1028 May 16 16:08 .profile
drwxr-xr-x 2 darth-vader darth-vader 4096 Jun  1 09:29 public_html
-rw-r--r-- 1 darth-vader darth-vader 1952 Oct  8  2016 .xim.template
-rwxr-xr-x 1 darth-vader darth-vader 1112 May 30 11:51 .xinitrc.template

regards, daniel


You are receiving this mail because: