default os: loop while login as rock
#1
Hi there

I'm using a Pinebook Pro with default OS.

Problem: Suddenly I cannot login as user rock anymore. Giving the credentials it loops and shows the login mask again and again.

I created another user before (they worked well in parallel) which is still usable.

I used User rock for update purposes. And now I do not have the update button in the lower right side anymore.

Any idea how to fix the login or do I have to reinstall from scatch?

Any help / tip is very welcome. - Thanks

Regards Adrian
#2
Hi Adrian,

Based on the problem you are describing, I suspect you may have changed the 'rock' user password.

If you added your new user to the sudo group, you can change the rock user password from your new user account by running the following within a terminal:

Code:
$ sudo passwd rock

If you did not add your new user to the sudo group, and you can run the following in a terminal to switch to the root user:

Code:
$ su root

And then enter the root user password (if you did not change it, the root password is 'root' without quotes). Then you can run the following within a terminal to change the rock password:

Code:
$ passwd rock

Regardless of how you restore the rock password, should you ever accidentally remove the update button, you can always run the following within a terminal to update the default Debian desktop shipped by the manufacturer:

Code:
$ sudo mrfixit_update.sh
#3
(12-27-2019, 03:53 PM)hmuller Wrote: Hi Adrian,

Based on the problem you are describing, I suspect you may have changed the 'rock' user password.

If you added your new user to the sudo group, you can change the rock user password from your new user account by running the following within a terminal:

Code:
$ sudo passwd rock

If you did not add your new user to the sudo group, and you can run the following in a terminal to switch to the root user:

Code:
$ su root

And then enter the root user password (if you did not change it, the root password is 'root' without quotes). Then you can run the following within a terminal to change the rock password:

Code:
$ passwd rock

Regardless of how you restore the rock password, should you ever accidentally remove the update button, you can always run the following within a terminal to update the default Debian desktop shipped by the manufacturer:

Code:
$ sudo mrfixit_update.sh

Hello hmuller,

thanks for your detailed help.

Actually I followed your steps for solving this issue, but unfortunately resetting user's rock password to default passwd rock did not help.
It does still loop back to the login window. (After entering the credential the screen is black for 1-2 seconds and the login window appears again.) Confused

Anyway this is not that important since you mentioned :
 
Code:
$ sudo mrfixit_update.sh

So I can still update the system as my other user.

thanks again. All the best for 2020!

Regards, Adrian
#4
< SNIP >


Quote:Anyway this is not that important since you mentioned :
 
Code:
$ sudo mrfixit_update.sh

So I can still update the system as my other user.

thanks again. All the best for 2020!

Regards, Adrian


It's a good idea to add sudo and include your user by group membership to sudoers. If for nothing else but these occasions.
If you want to then change a forgotten root user password, "sudo su -" gets you a root shell with environment, and then a regular "passwd" will change root, without asking for previous shadow entry.

This also helps when you are running things that sudo has difficulty with - such as some scripts. I hate editing these to prepend extra "sudo" commands to lines.
— Jeremiah Cornelius
"Be the first person not to do some­thing, that no one has thought of not doing before’’
— Brian Eno, "Oblique Strategies"
#5
@gritibaenz,

keymap issues drop to the bottom of the list of potential problems as the problem still occurs after resetting the password to "rock".

Now check the ownership of /home/rock/.Xauthority and /home/rock/.ICEauthority. From your second user account, open a console and login to the rock user: Ctrl-Alt-F1

Then run the following command to list the ownership of both files:

Code:
$ ls -l {.Xauthority,.ICEauthority}

The ownership of both files should look like this:

Code:
-rw------- 1 rock rock 66374 Dec 31 11:02 .ICEauthority
-rw------- 1 rock rock   378 Dec 31 11:02 .Xauthority

If the owner/group does not show 'rock rock', then correct that using:

Code:
$ sudo chown rock:rock /home/rock/.Xauthority

or

$ sudo chown rock:rock /home/rock/.ICEauthority



Exit the console, return to your X11 session: Ctrl-Alt-F7

Logout of X11 and attempt to login as rock, let me know if any of the above was the culprit.
#6
@hmuller
Thanks again - this way I could manage to login as rock again.

The Problem raises when following https://wiki.pine64.org/index.php/Pinebook_Pro :

...
You can change the default rock username and rock home directory by logging into root (credentials root/root) instead of the default 'rock' user and running the following in root terminal and substituting desired username for NewUser:

Code:
usermod -l NewUser rock
usermod -d /home/rock -m NewUser

...
which I did for my newuser. But doing it that way, it seems that user rock and user NewUser are not independent.
because now I cannot login as NewUser anymore and the user:group for /home/NewUser/* is rock.rock .

What I wanted was, clone user rock and have an independent NewUser (based on user rock). - So I'll try to remove NewUser completely and create a NewUser with  the command useradd ...

Do you have suggestions how to do that?

#7
(12-31-2019, 11:51 AM)Jeremiah Cornelius Wrote: < SNIP >


Quote:Anyway this is not that important since you mentioned :
 
Code:
$ sudo mrfixit_update.sh

So I can still update the system as my other user.

thanks again. All the best for 2020!

Regards, Adrian


It's a good idea to add sudo and include your user by group membership to sudoers. If for nothing else but these occasions.
If you want to then change a forgotten root user password, "sudo su -" gets you a root shell with environment, and then a regular "passwd" will change root, without asking for previous shadow entry.

This also helps when you are running things that sudo has difficulty with - such as some scripts. I hate editing these to prepend extra "sudo" commands to lines.

Thanks for your hints.

Adrian
#8
I am having almost this exact same issue with it seeming to be in a loop when trying to login as rock.  I have also created another user and have the same issue with this other user logon.  I can only login as root.  Did anyone solve this issue?

I have checked the ownership of /home/rock/.Xauthority and /home/rock/.ICEauthority as suggested above and it appears correct. But I am unable to login as rock.
#9
Hi,

I have another user (in addition to rock) created following https://phoenixnap.com/kb/create-a-sudo-user-on-debian

Bye Gritibaenz


Possibly Related Threads…
Thread Author Replies Views Last Post
  No Sound on Default Manjaro KDE carlosqueso 4 5,874 04-01-2021, 07:17 AM
Last Post: carlosqueso
  Graphical login hanging after password entry mhill8 2 3,852 03-29-2021, 08:32 AM
Last Post: jacksonliam341
  PBP Went Blank After Login iscmob 2 3,442 12-07-2020, 09:28 AM
Last Post: iscmob
  Pinebook Pro Won't Accept Login GFreeman 16 18,927 09-03-2020, 11:44 AM
Last Post: wdt
  Suspend with NVME not working - Default Debian appdev46 5 9,824 07-14-2020, 01:53 PM
Last Post: Jeremiah Cornelius
  Login screen issue. LinuXchoicE 2 4,590 07-07-2020, 09:06 AM
Last Post: LinuXchoicE
  Default OS update log Luke 194 307,059 06-11-2020, 11:25 PM
Last Post: xmixahlx
  OEM Script - Factory Default xmark 0 2,100 06-07-2020, 06:51 AM
Last Post: xmark
  How do you upgrade Chromium on default Debian that came with my PBP james64 6 9,149 05-26-2020, 07:21 AM
Last Post: User 6582
  Stuck on login screen Kscott6969 0 2,129 04-20-2020, 10:58 PM
Last Post: Kscott6969

Forum Jump:


Users browsing this thread: 2 Guest(s)