Page 1 of 1

Locked user

PostPosted: May 7th, '21, 05:37
by janpihlgren
I use Mageia 8 , Lenovo ThinkPad Aniversary Edition25
Suddenly when I tried to login the keybord frees: I write username and then password. When I had to hit the Returkey nothing happens, no respons.
After some tries I succeeded to login as root. That give me the possibiliity to set up for a new user. With that user I succeeded to login.
My questin is:
How do I do to unlock the first user?
Some reason to use the first user is that I use VirtualBox and to set up new OS in VirtualBox will make big impact on the size of usefull discspace.

Re: Locked user

PostPosted: May 7th, '21, 15:58
by doktor5000
Where do you login, in the login manager in a graphical session or in a tty ?

If nothing happened, then you didn't actually login. What happens as root when you switch to that user via
Code: Select all
su - username

(you obviously need to replace username with your actual user name).

Re: Locked user

PostPosted: May 7th, '21, 17:30
by janpihlgren
I'm logog in at the graphical session at th beginning.
This is whats happen when I follow your whish:
Code: Select all
[jan3@Myran ~]$ su jan
Lösenord:
[jan@Myran jan3]$ exit
exit
[jan3@Myran ~]$

------------------------------------------
When I först loged in as root and there follow your wish: I get this:
Code: Select all
[root@Myran ~]# su jan
[jan@Myran root]$ cd /home
[jan@Myran home]$ ls
------------------------
[root@Myran ~]# su jan2
[jan2@Myran root]$ cd /home
[jan2@Myran home]$ ls -l
totalt 28
drwxr-x--x 32 jan  jan   4096 maj  7 17:16 jan/
drwxr-x--x 36 jan2 jan2  4096 maj  7 17:17 jan2/
drwxr-x--- 29 jan3 jan3  4096 maj  7 17:17 jan3/
drwx------  2 root root 16384 mar 26 10:05 lost+found/
[jan2@Myran home]$ cd jan2
[jan2@Myran ~]$ ls -l
totalt 60
drwxrwxr-x 3 jan2 jan2 4096 apr 22 09:02  Backup/
drwxr-xr-x 2 jan2 jan2 4096 maj  3 12:16  Bilder/
drwxrwxr-x 2 jan2 jan2 4096 apr 23 14:30  Desktop/
drwxr-xr-x 5 jan2 jan2 4096 apr 17 04:11  Development/
drwxr-xr-x 2 jan2 jan2 4096 maj  1 06:02  Dokument/
drwxr-xr-x 4 jan2 jan2 4096 maj  5 15:06  Hämtningar/
drwxr-xr-x 2 jan2 jan2 4096 mar 27 05:32  Mallar/
drwxr-xr-x 2 jan2 jan2 4096 mar 27 05:32  Musik/
drwxrwxr-x 4 jan2 jan2 4096 apr 17 02:57  Notebooks/
drwxrwxr-x 2 jan2 jan2 4096 apr 23 07:43  Program/
drwxr-xr-x 3 jan2 jan2 4096 maj  1 11:36  Raspberry/
drwxr-xr-x 2 jan2 jan2 4096 maj  3 14:16  Script/
drwx--x--x 2 jan2 jan2 4096 feb 11  2020  tmp/
drwxr-xr-x 2 jan2 jan2 4096 mar 27 05:32  Video/
drwxr-xr-x 6 jan2 jan2 4096 apr 29 09:28 'VirtualBox VMs'/
[jan2@Myran ~]$

I hope this is what you wanted.

Re: Locked user

PostPosted: May 7th, '21, 19:05
by doktor5000
Out of curiosity, why do you have a jan2 and jan3 user ?

Re: Locked user

PostPosted: May 8th, '21, 03:31
by janpihlgren
I had to have a new user to login as a normal user. Than the same thing happends again and I have to make a new user agan. The reason is that I will not run as root.
The easiest way was tom justad a number to my username.
I now alse tried log in as root an change , as you told me, as my first name. But I still is a root-user and work in the root directory.
The only good thing is that I can use the old(user) libtraries but not their setup.
======================
But my problem is how do I unlock the user jan (and Jan2).
The computer locks when I try to login as jan or jan1.

Re: Locked user

PostPosted: May 8th, '21, 11:24
by doktor5000
janpihlgren wrote:Than the same thing happends again and I have to make a new user agan. The reason is that I will not run as root.

Could you please explain that in a bit more detail? I don't understand the "not run as root" part.


Apart from that, what login manager and what desktop environment do you use? Best would probably to do a fresh reboot, then try to login as your regular user, wait a minute or so and then do the following:
Switch to a tty via e.g. Ctrl+Alt+F2, login as root and run the following command:
Code: Select all
journalctl -ab > /tmp/journal.log

and then later attach the file /tmp/journal.log here.

Re: Locked user

PostPosted: May 9th, '21, 02:32
by janpihlgren
First "run as root" I aim at "working when loged in as root"
Second: I use Plasma and kdm

Here I apend th file journal.log

Re: Locked user

PostPosted: May 9th, '21, 15:21
by doktor5000
janpihlgren wrote:First "run as root" I aim at "working when loged in as root"
Could you rephrase that please? I still don't know what that is supposed to mean.

For the log, I don't see any obvious issues, and also nothing relevant after you started your login. At 02:12:36 you started your Plasma/KDE session, and at 02:13:28 you logged into the tty as root.

Can you login normally as any of the other 2 users, jan2 and jan3? Or as a freshly created new user - this is just to rule out any other issues that might exist.

Re: Locked user

PostPosted: May 9th, '21, 16:36
by janpihlgren
janpihlgren wrote:
First "run as root" I aim at "working when loged in as root"

Could you rephrase that please? I still don't know what that is supposed to mean.

I mean that I have to login as root, make a new user and then logout and login as the new user. That because I wan't work with the computer when I'm loged in as root.
=========================
Well hera are 2 journel files:
journal2.log is when I logged in as jan3 and run the command as jan3
journal3.log is when I logged in as jan3 but run the comman as root

Ihope that this is what you need.

Re: Locked user

PostPosted: May 10th, '21, 00:51
by doktor5000
doktor5000 wrote:Can you login normally as any of the other 2 users, jan2 and jan3?

You posted the logs, but you didn't really answer the question :?

Re: Locked user

PostPosted: May 10th, '21, 01:14
by janpihlgren
OK I try to explain.

The first time the problem occur ( aould not login as jan) the only way to use the computer was to login as root.
I don't wanted to work with the computer loged in as root. Because of that i created user jan2..
The same problem occur again. Again I make a new useraccount, jan3
At booth times I coud only login as root.
This was the reason why I created the user jan2 and jan3
I hope this will clear why. Else I don't understand your question.

Re: Locked user

PostPosted: May 10th, '21, 01:26
by doktor5000
So both for your first user jan and for jan2 you have the problem that you cannot login normally anymore? But for jan3 normal login still works? Did I understand that correctly ?

Re: Locked user

PostPosted: May 10th, '21, 01:36
by janpihlgren
Yes

Re: Locked user

PostPosted: May 10th, '21, 16:31
by doktor5000
I'd suggest you move away at least the ~/.config folder for one of the affected users, then try to login again.

As root after a fresh boot:
Code: Select all
mv /home/jan/.config /home/jan/.config-old


Then try to login as jan - your desktop should be mostly reset to defaults, and some autostart entries should not run.

Does that help in any way with the login?

Re: Locked user

PostPosted: May 10th, '21, 18:18
by janpihlgren
I moved .config as you say and I also checked tha the library was moved and ther was no ,config lib
No this did not helped.
The result is still a locked keyboar/computer

Re: Locked user

PostPosted: May 10th, '21, 20:00
by doktor5000
Well, you can try that with the other . folders in your home folder as well.

But it would probably make more sense to find out what is actually hanging during that time. I'd suggest to use
Code: Select all
ps auxwww
pstree -aplt
and maybe
Code: Select all
lsof
as root to get some information on what is going on. Best post that here.

Re: Locked user

PostPosted: May 11th, '21, 05:49
by janpihlgren
I hope this is what you whant
the third file, lsof.log, will not attach, I supose its to large, 21.3 MByte

Re: Locked user

PostPosted: May 11th, '21, 16:47
by doktor5000
janpihlgren wrote:the third file, lsof.log, will not attach, I supose its to large, 21.3 MByte

Are you sure about that? Then you should have a look through that list to see why you have that many files/network connections open.
You can also compress ith using gz, bzip2, xz or something the like and attach the compressed file.

Apart from that, it looks like you ran the command within a normally running KDE session, with firefox, thunderbird running already.
That doesn't look like the session that hangs up during login.

Re: Locked user

PostPosted: May 11th, '21, 17:25
by janpihlgren
Ok Here is the fil as bzip2;

Re: Locked user

PostPosted: May 11th, '21, 17:53
by doktor5000
doktor5000 wrote:Apart from that, it looks like you ran the command within a normally running KDE session, with firefox, thunderbird running already.
That doesn't look like the session that hangs up during login.