After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 338117 - users-admin overwrites .bashrc without warning
users-admin overwrites .bashrc without warning
Status: RESOLVED DUPLICATE of bug 300016
Product: gnome-system-tools
Classification: Deprecated
Component: users-admin
1.4.x
Other All
: Normal normal
: ---
Assigned To: Carlos Garnacho
Carlos Garnacho
Depends on:
Blocks:
 
 
Reported: 2006-04-11 18:23 UTC by Jeff Lutgen
Modified: 2008-01-08 01:12 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12



Description Jeff Lutgen 2006-04-11 18:23:32 UTC
Please describe the problem:
When adding a user with users-admin, files from /etc/skel (typically .bashrc and
.bash_profile) are copied to the specified home directory, overwriting those
files in the home directory without warning.   

Steps to reproduce:
1. Use users-admin to add a new user, specifying a home directory that already
exists.


Actual results:
If .bashrc and .bash_profile already exist in the specified home directory,they
are overwritten without warning. 

Expected results:
A warning dialog might be helpful. ("Pre-existing configuration files in
/home/foo will be overwritten. Continue?")

Does this happen every time?
Yes.

Other information:
When /home/foo already exists, one might reasonably expect users-admin to behave
like "useradd -d /home/foo foo", which does not overwrite /home/foo/.bashrc,
etc.   With useradd, an additional flag (-m) must be explicitly given in order
for /etc/skel files to be copied.
Comment 1 Carlos Garnacho 2008-01-08 01:12:18 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.


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