Bugzilla will be upgraded to version 5.0 on December 2, 2018. The outage period for the upgrade will start at 0:00 UTC and have a duration of 12 hours
Bug 87572 - libuser creates invalid links in home directory when links exist in /etc/skel
libuser creates invalid links in home directory when links exist in /etc/skel
Product: Red Hat Linux
Classification: Retired
Component: libuser (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Miloslav Trmač
: 98912 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2003-03-28 18:02 EST by gLaNDix
Modified: 2007-04-18 12:52 EDT (History)
1 user (show)

See Also:
Fixed In Version: 0.51.10-1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-09-02 18:20:40 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
output from ls -l /home/test with symlinks in /etc/skel (3.89 KB, text/plain)
2003-03-28 18:04 EST, gLaNDix
no flags Details
patch to fix libuser link problem (860 bytes, patch)
2003-03-28 18:07 EST, gLaNDix
no flags Details | Diff

  None (edit)
Description gLaNDix 2003-03-28 18:02:42 EST
Description of problem: 
If you create symbolic links in /etc/skel and run either luseradd or the 
redhat-config-users program to create a new user, the links are created in the 
new user's home directory, but point to invalid locations. 
Version-Release number of selected component (if applicable): 
all including rpm downloaded from phoebe-3 beta (also applies to libuser in 
mandrake 9.0) 
How reproducible: 
It happens with EVERY link EVERY time. 
Steps to Reproduce: 
1. cd /etc/skel 
2. touch test 
3. ln -s test test2 
4. /usr/sbin/lusradd testuser 
Actual results: 
Expected results: 
[root@localhost SPECS]# ls -l /home/testuser 
total 16 
lrwxrwxrwx    1 test2    test2        4095 Mar 26 16:14 test -> test2 
Additional info: 
This effects every version of libuser I have found in both Red Hat and 
Mandrake Linux.
Comment 1 gLaNDix 2003-03-28 18:04:54 EST
Created attachment 90776 [details]
output from ls -l /home/test with symlinks in /etc/skel
Comment 2 gLaNDix 2003-03-28 18:07:31 EST
Created attachment 90777 [details]
patch to fix libuser link problem
Comment 3 Crutcher Dunnavant 2003-04-09 12:30:02 EDT
Seen this one as well, bit me badly. Cost me 3 weeks of a class full of chemical
engineer's time. Please apply patch.
Comment 4 Miloslav Trmač 2004-09-02 11:10:46 EDT
*** Bug 98912 has been marked as a duplicate of this bug. ***
Comment 5 Miloslav Trmač 2004-09-02 18:20:40 EDT
Thanks for the patch.
Should be fixed in libuser-0.51.10-1, when it hits rawhide.

Note You need to log in before you can comment on or make changes to this bug.