Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
renaming an user
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
MOS-FET
Apprentice
Apprentice


Joined: 20 May 2003
Posts: 291
Location: Cologne, Germany

PostPosted: Wed Sep 03, 2003 10:08 pm    Post subject: renaming an user Reply with quote

hello,

i currently have a user account with it's home directory directly in /home (_not_ something like /home/yusername>). now, i want to rename this user, but i don't want to loose my settings. would it work if i just go to /etc and rename the user in all necessary files (passwd, group etc.)? or, could i delete the existing user, create a new one with the _same_ homedir? would this delete/overwrite anything in my homedir? ok i' have to chown all my files, but that's no problem i guess.

i'd appreciate your help!!

tom
Back to top
View user's profile Send private message
xlyz
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1470
Location: Italy

PostPosted: Wed Sep 03, 2003 10:47 pm    Post subject: Reply with quote

from man usermod:
Quote:
-l login_nameThe name of the user will be changed from login to login_name. Nothing else is changed. In particular, the user's home directory name should probably be changed to reflect the new login name.
Back to top
View user's profile Send private message
fourhead
l33t
l33t


Joined: 03 Sep 2003
Posts: 875
Location: Cologne, Germany

PostPosted: Wed Sep 03, 2003 10:49 pm    Post subject: Reply with quote

shame on me :-) i should get used to this "man" command ... thanks a lot!!

tom
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum