[Adduser-devel] Bug#268402: adduser: Forgets to chown copied symlinks from /etc/skel

Deepak Goel Deepak Goel <deepakg@elliottwave.com>, 268402@bugs.debian.org
Fri, 27 Aug 2004 10:11:52 -0400


Package: adduser
Version: 3.59
Severity: normal

I have these files in /etc/skel: 

drwxr-xr-x    4 root root 4096 Aug 27 09:51 nosync
lrwxrwxrwx    1 root root   10 Aug 27 09:52 tmp -> nosync/tmp
lrwxrwxrwx    1 root root   16 Aug 27 09:51 trashcan -> nosync/trashcan/

where the nosync directory looks like: 

drwxr-xr-x  4 root root 4096 Aug 27 09:51 .
drwxr-xr-x  3 root root 4096 Aug 27 09:59 ..
drwxr-xr-x  2 root root 4096 Aug 27 09:51 tmp
drwxr-xr-x  2 root root 4096 Aug 27 09:51 trashcan


When creating a new user joed, everything else is copied correctly,
except that:


drwxr-xr-x    4 joed joed 4096 Aug 27 09:51 nosync
lrwxrwxrwx    1 root root   10 Aug 27 09:52 tmp -> nosync/tmp
lrwxrwxrwx    1 root root   16 Aug 27 09:51 trashcan -> nosync/trashcan/

 ^^ the ownership of the links doesn't change.   I belive it should have been changed too.



-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.7-1-386
Locale: LANG=C, LC_CTYPE=C

Versions of packages adduser depends on:
ii  debconf                       1.4.30     Debian configuration management sy
ii  passwd                        1:4.0.3-30 Change and administer password and
ii  perl-base                     5.8.4-2    The Pathologically Eclectic Rubbis

-- debconf information:
* adduser/homedir-permission: true