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
  Reply
#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
  Reply
#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
  Reply
#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"
  Reply
#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.
  Reply
#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?

  Reply
#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
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Default user name and password? CryptoRick 2 315 02-14-2020, 02:24 PM
Last Post: FeMike
  Default OS update log Luke 170 32,413 02-13-2020, 08:37 PM
Last Post: GLSRacer
  Suspend with NVME not working - Default Debian appdev46 3 118 02-07-2020, 03:39 AM
Last Post: appdev46
  Pinebook pro random reboot default Debian tso4ev 3 146 02-04-2020, 06:30 PM
Last Post: Baldnerd
  Can't access login evj 3 110 02-03-2020, 07:01 AM
Last Post: FeMike
  Chrome settings that's with default Debian install FeMike 3 132 01-25-2020, 02:17 PM
Last Post: [email protected]
  thunderbird crashes on startup on default Debian Mate platform ndp 14 847 01-23-2020, 05:28 PM
Last Post: JaceAlvejetti
  PBP ARM Processor RECOGNIZED by Default Debian OS Synaptic Package Manager jcj52436999 14 569 12-19-2019, 11:28 AM
Last Post: rick1959
  Wrong keyboard Lay-out in Login and terminal Firedevil79 1 162 12-04-2019, 08:50 AM
Last Post: ndp
  Pinebook Pro Default Credentials are not working ricardo1934 4 319 11-13-2019, 11:14 AM
Last Post: ricardo1934

Forum Jump:


Users browsing this thread: 1 Guest(s)