Password change
#2
(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 I am getting "user rock is currently used by process 738 or invalid option -1      Undecided

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.


Messages In This Thread
Password change - by RedHaoredOmen - 01-21-2020, 09:35 PM
RE: Password change - by mainer - 01-21-2020, 11:33 PM
RE: Password change - by FeMike - 01-22-2020, 05:47 AM
RE: Password change - by Arwen - 01-22-2020, 07:14 AM
RE: Password change - by FeMike - 01-22-2020, 08:39 AM
RE: Password change - by dsk70 - 02-29-2020, 10:56 PM
RE: Password change - by mainer - 03-01-2020, 12:27 PM
RE: Password change - by FeMike - 01-21-2020, 11:38 PM
RE: Password change - by martinayotte - 01-22-2020, 08:46 AM
RE: Password change - by FeMike - 01-22-2020, 10:58 AM
RE: Password change - by martinayotte - 01-22-2020, 01:58 PM
RE: Password change - by mainer - 01-22-2020, 09:27 AM
RE: Password change - by Arwen - 01-22-2020, 03:26 PM
RE: Password change - by FeMike - 01-22-2020, 03:51 PM
RE: Password change - by martinayotte - 01-22-2020, 03:41 PM
RE: Password change - by Arwen - 01-22-2020, 03:50 PM
RE: Password change - by Arwen - 01-22-2020, 03:59 PM
RE: Password change - by FeMike - 01-22-2020, 06:43 PM
RE: Password change - by Arwen - 01-23-2020, 05:34 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  oem password iwm 8 2,453 02-19-2023, 07:35 PM
Last Post: iwm
  Graphical login hanging after password entry mhill8 2 3,386 03-29-2021, 08:32 AM
Last Post: jacksonliam341
  Forgot my Pinebook password. Booting from MIcroSD doesn't work. ksfoodforest 0 1,772 01-30-2021, 11:08 AM
Last Post: ksfoodforest
  MAC address change user0258 2 3,523 09-16-2020, 01:12 PM
Last Post: user0258
  [split] Change password from external media James Good 11 12,941 07-23-2020, 02:42 PM
Last Post: wdt
  Change Language xmark 1 3,087 06-08-2020, 12:56 PM
Last Post: tophneal
  PBP Complete Loss of Password Recognition jcj52436999 2 3,428 03-16-2020, 05:38 PM
Last Post: jcj52436999
  Default user name and password? CryptoRick 2 7,391 02-14-2020, 02:24 PM
Last Post: FeMike
  chromium keyring password change or remove Moon1 10 12,216 02-02-2020, 05:16 PM
Last Post: Moon1
  How to make Time change persistent FeMike 4 4,587 01-23-2020, 08:24 PM
Last Post: FeMike

Forum Jump:


Users browsing this thread: 1 Guest(s)