01-15-2020, 09:14 PM
(This post was last modified: 01-15-2020, 09:15 PM by Jeremiah Cornelius.
Edit Reason: clarity
)
(01-15-2020, 08:16 PM)appdev46 Wrote:In /etc/shadow you change the rock entry to new username and path(01-15-2020, 06:15 PM)Jeremiah Cornelius Wrote:(01-15-2020, 03:50 PM)appdev46 Wrote: So I got the same exact error when following the instructions on the wiki. I even overwrote my emmc with the latest Debian Mate image and tried a second time with the same results. It appears the instructions are incorrect?I ignored the instructions, because I'm an old Unix guy and have done similar many times before on SunOS, Irix, Linux etc.
Currently I can log in with my new user but the path to my home directory is /home/rock/
I am certain I can replicate this by writing the current Debian Mate image to sd card and following the instructions on the wiki (because I did it twice)
Can somebody please provide updated instructions on how to rename this folder as if you are starting from scratch?
Here's what I did, as described in my "Initial Impressions" post: https://forum.pine64.org/showthread.php?...4#pid56654
Quote:A quick CTL-ALT-F1 got me to a console, tho'. I logged in root, changed (root) password and quickly edited /etc/passwd /etc/shadow and /etc/group, then moved the /home/rock to my new <username> (mv /home/rock /home/newusername). A quick su - <username> landed me in the right directory, and ownership/permissions were verified, before giving a passwd command for change. I could exit both nested login shells, and ALT-F7 to LightDM.
Good luck!
I was able to get my home folder fixed I think. I logged in as root and ran (mv /home/rock /home/newusername), then modified passwd by changing root to my newuser.
I looked at shadow and group and didn't know what to modify. I had previously changed passwords.
I now have a /home/myUsername folder and account I can log into.
I still would like to get this process better documented for myself and other users. If I figure out an easier set of steps than what I did I will post back here.
/etc/shadow just change username - optionally blank the password field between the colon characters, if you are comfortable with the field
/etc/group rename the rock group to your new username, too.
You can reset the password for the account as root - or as I did, as the user, getting in "free" with 'su - newusername' as root.
— Jeremiah Cornelius
"Be the first person not to do something, that no one has thought of not doing before’’
— Brian Eno, "Oblique Strategies"
"Be the first person not to do something, that no one has thought of not doing before’’
— Brian Eno, "Oblique Strategies"