PDA

View Full Version : How to rename the knoppix account and save all settings



Kethinov
12-22-2003, 04:59 AM
Small success story here. Since I can't stand using the console and I know there are others like me, I thought I'd just post the command line history of how I was able to rename the knoppix account to kethinov to serve as a guide to anyone who didn't know how to do that, like me.



root@klinux:~# userdel knoppix
root@klinux:~# adduser
Enter a username to add: kethinov
Adding user kethinov...
Adding new group kethinov (1000).
Adding new user kethinov (1000) with group kethinov.
Creating home directory /home/kethinov.
Copying files from /etc/skel
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for kethinov
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [y/n] y
root@klinux:~# rm -rf /home/kethinov
root@klinux:~# mv /home/knoppix /home/kethinov
root@klinux:~# chown -R kethinov /home/kethinov
root@klinux:~#

silvestrij
12-22-2003, 06:30 AM
Wouldn't it be simpler to edit the name & home dir in /etc/passwd, and rename the /home directory name?

baldyeti
12-22-2003, 10:24 PM
Yup, it sure would ;-)