http://bugzilla.opensuse.org/show_bug.cgi?id=943176
http://bugzilla.opensuse.org/show_bug.cgi?id=943176#c4
--- Comment #4 from Daniel Pecka ---
Servus Jochen,
common-session is included to login via:
session include common-session
by default ... so there should not be problem. Also I don't think, that my
problem is PAM related now, because according to the docs -K FOO=bar should
override the defaults which works partially ... skel files are simply copied
there with skel perms, eg it doesn't even help, if you set umask for yourself
(root's session) and create user:
# umask 0077
# useradd -K UMASK=0077 -m joe
# ls -la /home/joe/
total 52
drwx------ 7 joe users 4096 Aug 27 13:55 .
drwxr-xr-x 5 root root 4096 Aug 27 13:55 ..
-rw------- 1 joe users 0 May 18 1996 .bash_history
-rw-r--r-- 1 joe users 1177 Oct 10 2014 .bashrc
drwxr-xr-x 2 joe users 4096 Sep 27 2013 bin
drwx------ 2 joe users 4096 Sep 27 2013 .config
-rw-r--r-- 1 joe users 1637 Sep 12 2014 .emacs
drwxr-xr-x 2 joe users 4096 Sep 27 2013 .fonts
-rw-r--r-- 1 joe users 861 Sep 12 2014 .inputrc
drwx------ 2 joe users 4096 Sep 27 2013 .local
-rw-r--r-- 1 joe users 1028 Oct 10 2014 .profile
drwxr-xr-x 2 joe users 4096 Jan 3 2014 public_html
-rw-r--r-- 1 joe users 1940 Dec 16 2013 .xim.template
-rwxr-xr-x 1 joe users 1112 Sep 28 2013 .xinitrc.template
^^ you can see, that -K UMASK=0077 affected properly the perms of newly created
home directory for joe but not applied to skell files ..
check please the strace from useradd command how skel files are handled
--
You are receiving this mail because:
You are on the CC list for the bug.