sudo su startx (pi account issue)
Posted: Sun Apr 17, 2016 9:23 pm
I have a problem. Simply put, I need to access a root folder in /usr/shared/ and modify contents of said folder.
I used this to gain root user access to the GUI.
Fine. Works, make my changes...
Then reboot.
Login screen no longer accepts:
Pi user
Pi password
My understand is that .xauthority is now owned by root, and pi can no longer log in.
My understanding is that if I use a terminal (cntrl +alt+f1-f7), type pi user, pi password, then;
Login screen will now work for pi, but that my custom pi settings may be wiped?
I went and restored backup image, so now I get a 'do over'.
So how do I do this now? Login as root in GUI make my changes to /usr/shared/ via file manager, exit root, and still have pi user work properly?
I used this to gain root user access to the GUI.
Code: Select all
sudo su
startxFine. Works, make my changes...
Code: Select all
exitLogin screen no longer accepts:
Pi user
Pi password
My understand is that .xauthority is now owned by root, and pi can no longer log in.
My understanding is that if I use a terminal (cntrl +alt+f1-f7), type pi user, pi password, then;
Code: Select all
mv .Xauthority .Xauthority.bak
exit
I went and restored backup image, so now I get a 'do over'.
So how do I do this now? Login as root in GUI make my changes to /usr/shared/ via file manager, exit root, and still have pi user work properly?