[Adduser-devel] Bug#299050: adduser: fails on copying symlinks from /etc/skel

Hans-Peter Doerr Hans-Peter Doerr <doerr@cip.physik.uni-freiburg.de>, 299050@bugs.debian.org
Fri, 11 Mar 2005 13:33:55 +0100


Package: adduser
Version: 3.63
Severity: normal

adduser fails to copy symlinks in subdirs of /etc/skel

# ls -l /etc/skel/subdir/
total 0
lrwxrwxrwx  1 root root 9 Mar 11 13:17 link-to-file -> /etc/file

# adduser --home /home/test99 --shell /bin/bash --ingroup users \
  --disabled-password --gecos "bla,,," test99
Adding user `test99'...
Adding new user `test99' (3277) with group `users'.
Creating home directory `/home/test99'.
Copying files from `/etc/skel'
Use of uninitialized value in symlink at /usr/sbin/adduser line 695,
<FIND> line 190.
symlink: No such file or directory
Cleaning up.
Removing directory `/home/test99'
rm: cannot get current directory: Permission denied
Removing user `test99'.
userdel: unable to lock password file

# ls -l /home/test99/subdir/
total 0



maybe this is related to bug #268402


greetings,
  hans-peter doerr

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.27-cipsc
Locale: LANG=C, LC_CTYPE=de_DE@euro (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)

Versions of packages adduser depends on:
ii  debconf                    1.4.30.11     Debian configuration management sy
ii  passwd                     1:4.0.3-30.10 change and administer password and
ii  perl-base                  5.8.4-6       The Pathologically Eclectic Rubbis

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