adduser fails if /etc/skel contains symlink starting with a dot

Bug #31553 reported by Sascha Silbe
6
Affects Status Importance Assigned to Milestone
adduser (Ubuntu)
Fix Released
Medium
Matthias Klose

Bug Description

If /etc/skel contains a SymLink starting with a dot, adduser fails:

root@caravan:~# ln -s /etc/syslog.conf /etc/skel/.foo
root@caravan:~# adduser test
Adding user `test'...
Adding new user `test' (1000) with group `users'.
Creating home directory `/home/test'.
Copying files from `/etc/skel'
symlink: Bad file descriptor
Cleaning up.
Removing directory `/home/test'
Removing user `test'.
root@caravan:~#

On Debian, this works fine.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for your bug. What version of Ubuntu do you use? What version of the adduser package of both distributions? Ubuntu doesn't change that package so there is no reason to have it working on Debian and not Ubuntu

Revision history for this message
Sascha Silbe (sascha-ubuntu-launchpad) wrote :

I'm using Kubuntu 5.10 (Breezy Badger). adduser in Ubuntu is 3.64ubuntu1. For Debian it's the one in sarge. Can't tell the exact version since I had a friend test it for me.

Revision history for this message
Matthias Klose (doko) wrote :

not seen with 4.80ubuntu1 in dapper

Changed in adduser:
assignee: nobody → doko
status: Unconfirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.