Bug 158574 - adduser rewrites existing dot-files with /etc/skel files
adduser rewrites existing dot-files with /etc/skel files
Status: CLOSED DUPLICATE of bug 89591
Product: Fedora
Classification: Fedora
Component: shadow-utils (Show other bugs)
3
All Linux
medium Severity high
: ---
: ---
Assigned To: Peter Vrabec
David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-05-23 14:13 EDT by Aldy Hernandez
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-08-01 08:54:33 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Aldy Hernandez 2005-05-23 14:13:29 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

Description of problem:
Adduser will rewrite *existing* files in /home/USER from the skeletons in /etc/skel.  This is especially dangerous if /home directories are NFS mounted (home is already populated).

For example, imagine I am adding user "foo" on a new machine that needs /etc/passwd populated.  If this machine has foo's home directory NFS mounted (or already present), it will overwrite any files there with the versions in /etc/skel.

Version-Release number of selected component (if applicable):
shadow-utils-4.0.3-57

How reproducible:
Always

Steps to Reproduce:
1. Create /home/foo with .bashrc.
2. adduser foo ...
3. See how /home/foo/.bashrc was rewritten.
  

Expected Results:  adduser should not overwrite existing files

Additional info:
Comment 1 Peter Vrabec 2005-08-01 08:54:33 EDT

*** This bug has been marked as a duplicate of 89591 ***

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