jeff
2006-Oct-03 20:54 UTC
Bug#374981: adduser: symlink bug true for all symlinks, not just dead ones
Package: adduser Version: 3.63 Followup-For: Bug #374981 Any symlink in /etc/skel will cause this bug, whether to file or directory. I''ve tried it with /var and /share and /bin/bash and /share/special.ods Thanks, Jeff -- System Information: Debian Release: 3.1 Architecture: i386 (i686) Kernel: Linux 2.6.8-3-686-smp Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) Versions of packages adduser depends on: ii debconf 1.4.30.13 Debian configuration management sy ii passwd 1:4.0.3-31sarge8 change and administer password and ii perl-base 5.8.4-8sarge4 The Pathologically Eclectic Rubbis -- debconf information: * adduser/homedir-permission: true
Stephen Gran
2006-Oct-04 12:25 UTC
Bug#374981: [Adduser-devel] Bug#374981: adduser: symlink bug true for all symlinks, not just dead ones
This one time, at band camp, jeff said:> Any symlink in /etc/skel will cause this bug, whether to file or > directory. I''ve tried it with /var and /share and /bin/bash and > /share/special.odsYou are saying any dead symlink, or any symlink at all? If you mean the former, this is a known bug, fixed in later versions. If you mean the presence of any symlink at all causes a problem, can you please provide a compete listing of /etc/skel (ls -la /etc/skel and ls -l each file that symlinks point to) and the error output that happens on an adduser run. Thanks, -- ----------------------------------------------------------------- | ,''''`. Stephen Gran | | : :'' : sgran@debian.org | | `. `'' Debian user, admin, and developer | | `- http://www.debian.org | ----------------------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.alioth.debian.org/pipermail/adduser-devel/attachments/20061004/b5432552/attachment.pgp
jeff
2006-Oct-04 18:58 UTC
Bug#374981: [Adduser-devel] Bug#374981: adduser: symlink bug true for all symlinks, not just dead ones
On Wed, Oct 04, 2006 at 01:12:22PM +0100, Stephen Gran wrote:> This one time, at band camp, jeff said: > > Any symlink in /etc/skel will cause this bug, whether to file or > > directory. I''ve tried it with /var and /share and /bin/bash and > > /share/special.ods > > You are saying any dead symlink, or any symlink at all? If you mean > the former, this is a known bug, fixed in later versions. If you mean > the presence of any symlink at all causes a problem, can you please > provide a compete listing of /etc/skel (ls -la /etc/skel and ls -l each > file that symlinks point to) and the error output that happens on an > adduser run.Any symlink at all. celeste:/etc/skel# ls -al total 16 drwxr-xr-x 2 root root 4096 2006-10-04 04:22 . drwxr-xr-x 79 root root 4096 2006-10-03 09:17 .. -rw-r--r-- 1 root root 567 2004-12-19 08:53 .bash_profile -rw-r--r-- 1 root root 1834 2004-12-19 08:53 .bashrc lrwxrwxrwx 1 root root 4 2006-10-04 04:23 var -> /var celeste:/etc/skel# ls -ld /var drwxr-xr-x 13 root root 4096 2006-07-25 09:59 /var celeste:#/etc/skel# ls -ld /home/newfolk ls: /home/newfolk: No such file or directory celeste:/etc/skel# adduser newfolk Adding user `newfolk''... Adding new user `newfolk'' (1017) with group `users''. Creating home directory `/home/newfolk''. Copying files from `/etc/skel'' Use of uninitialized value in symlink at /usr/sbin/adduser line 695, <FIND> line 4. symlink: No such file or directory Cleaning up. Removing directory `/home/newfolk'' rm: cannot remove `/home/newfolk'': Permission denied Removing user `newfolk''. userdel: unable to lock password file celeste:/etc/skel# rm var celeste:/etc/skel# deluser newfolk Removing user `newfolk''... done. celeste:/etc/skel# rm -rf /home/newfolk celeste:/etc/skel# adduser newfolk Adding user `newfolk''... Adding new user `newfolk'' (1017) with group `users''. Creating home directory `/home/newfolk''. Copying files from `/etc/skel'' Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully Changing the user information for newfolk Enter the new value, or press ENTER for the default Full Name []: Room Number []: Work Phone []: Home Phone []: Other []: Is the information correct? [y/N] y It''s only on that one system, at the moment. It''s come up on other systems before, but it''s not replicating right now. Jeff
Stephen Gran
2006-Oct-04 22:29 UTC
Bug#374981: [Adduser-devel] Bug#374981: adduser: symlink bug true for all symlinks, not just dead ones
This one time, at band camp, jeff said:> On Wed, Oct 04, 2006 at 01:12:22PM +0100, Stephen Gran wrote: > > > > You are saying any dead symlink, or any symlink at all? > > Any symlink at all. > > celeste:/etc/skel# ls -al > total 16 > drwxr-xr-x 2 root root 4096 2006-10-04 04:22 . > drwxr-xr-x 79 root root 4096 2006-10-03 09:17 .. > -rw-r--r-- 1 root root 567 2004-12-19 08:53 .bash_profile > -rw-r--r-- 1 root root 1834 2004-12-19 08:53 .bashrc > lrwxrwxrwx 1 root root 4 2006-10-04 04:23 var -> /varPlease edit adduser, and add this: printf "%s -> %s\n", readlink("$fromdir/$file"), "$todir/$file"; just above the symlink call at line 695, and send the output as well as the output of ls -ld for each item printed. I am currently not seeing what''s wrong, so I''m not sure if it''s already fixed or not. Thanks, -- ----------------------------------------------------------------- | ,''''`. Stephen Gran | | : :'' : sgran@debian.org | | `. `'' Debian user, admin, and developer | | `- http://www.debian.org | ----------------------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.alioth.debian.org/pipermail/adduser-devel/attachments/20061004/731c2304/attachment.pgp
Stephen Gran
2006-Oct-05 01:08 UTC
Bug#374981: [Adduser-devel] Bug#374981: adduser: symlink bug true for all symlinks, not just dead ones
This one time, at band camp, Stephen Gran said:> This one time, at band camp, jeff said: > > On Wed, Oct 04, 2006 at 01:12:22PM +0100, Stephen Gran wrote: > > > > > > You are saying any dead symlink, or any symlink at all? > > > > Any symlink at all. > > > > celeste:/etc/skel# ls -al > > total 16 > > drwxr-xr-x 2 root root 4096 2006-10-04 04:22 . > > drwxr-xr-x 79 root root 4096 2006-10-03 09:17 .. > > -rw-r--r-- 1 root root 567 2004-12-19 08:53 .bash_profile > > -rw-r--r-- 1 root root 1834 2004-12-19 08:53 .bashrc > > lrwxrwxrwx 1 root root 4 2006-10-04 04:23 var -> /varsteve@charon:~$ sudo adduser test Adding user `test''... Adding new group `test'' (1001). Adding new user `test'' (1001) with group `test''. Creating home directory `/home/test''. Copying files from `/etc/skel'' Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully Changing the user information for test Enter the new value, or press ENTER for the default Full Name []: Room Number []: Work Phone []: Home Phone []: Other []: Is the information correct? [y/N] y steve@charon:~$ ll ~test total 0 lrwxrwxrwx 1 test test 4 2006-10-05 01:12 var -> /var steve@charon:~$ dpkg -l adduser Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-================-==================-======================================ii adduser 3.63 Add and remove users and groups I just don''t see the bug yet. -- ----------------------------------------------------------------- | ,''''`. Stephen Gran | | : :'' : sgran@debian.org | | `. `'' Debian user, admin, and developer | | `- http://www.debian.org | ----------------------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.alioth.debian.org/pipermail/adduser-devel/attachments/20061005/d462152c/attachment.pgp