Renaming home folder
#15
(01-15-2020, 08:16 PM)appdev46 Wrote:
(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?

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) Smile  

Can somebody please provide updated instructions on how to rename this folder as if you are starting from scratch?
I ignored the instructions, because I'm an old Unix guy and have done similar many times before on SunOS, Irix, Linux etc.
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.
In /etc/shadow you change the rock entry to new username and path
/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 some­thing, that no one has thought of not doing before’’
— Brian Eno, "Oblique Strategies"


Messages In This Thread
Renaming home folder - by inkslinger - 01-14-2020, 05:19 PM
RE: Renaming home folder - by evilbunny - 01-14-2020, 06:50 PM
RE: Renaming home folder - by inkslinger - 01-14-2020, 08:17 PM
RE: Renaming home folder - by Arwen - 01-14-2020, 09:22 PM
RE: Renaming home folder - by inkslinger - 01-14-2020, 09:37 PM
RE: Renaming home folder - by ElektromAn - 01-15-2020, 10:27 AM
RE: Renaming home folder - by inkslinger - 01-15-2020, 10:41 AM
RE: Renaming home folder - by Arwen - 01-15-2020, 09:06 AM
RE: Renaming home folder - by inkslinger - 01-15-2020, 01:10 PM
RE: Renaming home folder - by ElektromAn - 01-15-2020, 11:22 AM
RE: Renaming home folder - by inkslinger - 01-15-2020, 03:09 PM
RE: Renaming home folder - by appdev46 - 01-15-2020, 03:50 PM
RE: Renaming home folder - by Jeremiah Cornelius - 01-15-2020, 06:15 PM
RE: Renaming home folder - by appdev46 - 01-15-2020, 08:16 PM
RE: Renaming home folder - by Jeremiah Cornelius - 01-15-2020, 09:14 PM
RE: Renaming home folder - by appdev46 - 01-16-2020, 07:02 PM
RE: Renaming home folder - by Arwen - 01-17-2020, 06:37 AM
RE: Renaming home folder - by appdev46 - 01-18-2020, 11:09 AM
RE: Renaming home folder - by appdev46 - 01-22-2020, 04:21 AM
RE: Renaming home folder - by inkslinger - 01-22-2020, 10:09 AM
RE: Renaming home folder - by mainer - 01-22-2020, 10:40 AM
RE: Renaming home folder - by appdev46 - 01-22-2020, 02:16 PM
RE: Renaming home folder - by Arwen - 01-22-2020, 03:45 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Network shared folder discovery (smb4k) solostian 10 8,790 12-06-2021, 07:27 AM
Last Post: solostian
  Cant boot into home-rolled Arch Linux image craftkiller 4 4,731 02-25-2020, 12:58 PM
Last Post: craftkiller

Forum Jump:


Users browsing this thread: 1 Guest(s)