LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-21-2021, 11:38 AM   #1
nomadic101
LQ Newbie
 
Registered: Dec 2020
Distribution: debian
Posts: 23

Rep: Reputation: Disabled
Question [SOLVED] Debian - login problem keeps forgetting user


Hello

I'm running debian 10 (x64). I originally installed with root password, and one main user.

After installing, in terminal it indicated I didn't have user privileges when using sudo so I followed these instructions.

Now, sometimes after rebooting, my username and/or password isn't recognised. The screen re-displays login after inputting info.

I can login as root, reset user password.

But then it can be forgotten again.

Any advice?

Thanks

Last edited by nomadic101; 03-22-2021 at 06:14 AM.
 
Old 03-21-2021, 11:45 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,804

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
we need more details, especially what desktop is it? Did you install/configure any language specific setup? How did you try to log in (on console or GUI)?
 
Old 03-21-2021, 11:53 AM   #3
nomadic101
LQ Newbie
 
Registered: Dec 2020
Distribution: debian
Posts: 23

Original Poster
Rep: Reputation: Disabled
Hi

desktop:LXDE
Trying to login via GUI which is the problem.
No language specific set up

I just tested, I can login as user via console from another machine on my lan. But as I said, not GUI

thanks
 
Old 03-21-2021, 11:55 AM   #4
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
BTW, the command nano /etc/sudoers in instructions you linked to is pretty dangerous. Much safer would be
Code:
EDITOR=nano visudo
 
Old 03-21-2021, 11:58 AM   #5
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Can you login on the same machine from a virtual console (say Ctrl+Alt+F3)?

The the problem could be some files in your home directory owned by root that shouldn't be.
Code:
namei -l ~/.{ICE,X}authority
Code:
sudo find ~ -not -user $USER -ls
Code:
grep '(WW)\|(EE)' /var/log/Xorg.0.log

Last edited by shruggy; 03-21-2021 at 12:01 PM.
 
Old 03-21-2021, 12:45 PM   #6
nomadic101
LQ Newbie
 
Registered: Dec 2020
Distribution: debian
Posts: 23

Original Poster
Rep: Reputation: Disabled
Hi

I can login on same machine.

Code:
root@debianserver:~# namei -l ~/.{ICE,X}authority
f: /root/.ICEauthority
drwxr-xr-x root root /
drwx------ root root root
                     .ICEauthority - No such file or directory
f: /root/.Xauthority
drwxr-xr-x root root /
drwx------ root root root
-rw------- root root .Xauthority
Code:
sudo find ~ -not -user $USER -ls
no output

Code:
root@debianserver:~# grep '(WW)\|(EE)' /var/log/Xorg.0.log
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   326.064] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[   326.099] (WW) Falling back to old probe method for fbdev
 
Old 03-21-2021, 01:03 PM   #7
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
No. I mean login as a regular user, not as root.
 
Old 03-21-2021, 01:03 PM   #8
nomadic101
LQ Newbie
 
Registered: Dec 2020
Distribution: debian
Posts: 23

Original Poster
Rep: Reputation: Disabled
Ah, yes realised that!

Code:
sanjserver@debianserver:~$ ls -lah | grep -i Xauthority
-rw-------  1 root       root        163 Mar 21 14:57 .Xauthority

sanjserver@debianserver:~$ find ~ -not -user $USER -ls
  4591350      4 -rw-------   1 root     root          163 Mar 21 14:57 /home/sanjserver/.Xauthority

sanjserver@debianserver:~$ grep '(WW)\|(EE)' /var/log/Xorg.0.log
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   326.064] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[   326.099] (WW) Falling back to old probe method for fbdev
 
Old 03-21-2021, 01:08 PM   #9
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Then
Code:
sudo chown sanjserver.sanjserver .Xauthority
 
Old 03-22-2021, 06:13 AM   #10
nomadic101
LQ Newbie
 
Registered: Dec 2020
Distribution: debian
Posts: 23

Original Poster
Rep: Reputation: Disabled
Thanks - that worked. (And I learnt something).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
XFCE4 keeps forgetting desktop names the_zone Linux - Desktop 1 04-18-2011 10:03 PM
Ubuntu keeps forgetting my password. bensen408 Linux - Newbie 2 05-04-2008 07:22 PM
Debian keeps forgetting what time it is LeftyAce Debian 5 01-18-2006 05:16 PM
CUPS keeps "forgetting" my USB printer! JazzMastaJim Linux - Hardware 3 06-16-2004 11:40 PM
debian keeps forgetting my NIC chrull Linux - Hardware 0 04-22-2004 12:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration