01-22-2020, 05:47 AM
(01-21-2020, 11:33 PM)mainer Wrote:(01-21-2020, 09:35 PM)RedHaoredOmen Wrote: the wiki page says the username change is "usermod -l NewUser -d /home/NewUser -m rock" but when I go into root I am unable to change anything "user rock is currently used by process 738 or invalid option -1
You probably either logged out and then back in as root or used sudo to get root. Those both leave processes owned by "rock" and the command fails. The way I got around the problem was to reboot and log in as root (default password is root unless you have clanged it) to make the changes. That way user "rock" will not have any processes. I made all the user changes and root password at that login.
I also noticed a glitch when rebooting. The Login Screen still lists "rock" as the user not the new name. This problem shows up in other applications as well. It is due to to a formatting error (after the changes) in the /etc/passwd file that is likely caused by the chfn command. Each line of /etc/passwd should look like:
user_name:x:1000:1000:chfn_name,,,:/home/user_name:/bin/bash
but the newly changed entry will look like:
user_name:x:1000:1000:rock,,,chfn_name:/home/user_name:/bin/bash
note the difference in the chfn (5th) field.
You can edit the file with the command:
Code:sudo nano /etc/passwd
but be careful to only correct the bad field in that one line. Make a backup first.
Thank you for your answer, more in depth than mine. Also I'm glad you mentioned the glitch with the rock name still showing up. I've been trying to figure out why that is. I'll change the passwd file like you mentioned. Is copying the original file first and renaming it something else a suitable back up? Sorry if that sounds dumb as I'm still learning. Other places I noticed rock showing up is when I go into settings, personalize, the GUI that pops up shows where you can change avatar and on this screen it still shows rock. Is this part of the glitch you think?