Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > Debian Linux Help
Reload this Page can log in from command line but not from GUI logon screen
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Debian Linux Help Discussions related to Debian GNU/Linux.

Reply
 
Thread Tools Display Modes
Old 07-19-2008   #1 (permalink)
Just Joined!
 
bezdomny's Avatar
 
Join Date: Apr 2007
Location: Central California
Posts: 61
Send a message via Skype™ to bezdomny
can log in from command line but not from GUI logon screen

I made the mistake of running
Code:
#usermod -l login-name newname old-name oldname
Now, when I reach the GUI logon screen and attempt to logon with the new name using the password of the old name, it seems to accept the password, the screen blanks as per normal as if the Xserver is about to start, but then returns-- without an error message-- to the GUI logon screen.

There, I selected "console logon" from "menu", logged in from the command line as root and successfully ran
Code:
#passwd newname
and the procedure ran nominally without error.

Returned to the GUI logon screen and attempted logon as newname with the password that had just been set. Same result as mentioned above with GUI logon screen. Again selected "console logon" from "menu" and successfully logged in as newname with the password that had just been set. Ran
Code:
$startx
After a long wait, it returned the error message
Code:
xauth:  timeout in locking authority file /home/newname/.serverauth.3606
followed by
Code:
xauth:  timeout in locking authority file /home/newname/.Xauthority
It ran the latter message in a loop several times, then screen went blank as if Xserver was about to start, but then returned to the command line environment with several error messages about fonts, followed again by
Code:
xauth:  timeout in locking authority file /home/newname/.Xauthority
Trying to login from the GUI logon screen as oldname results immediately in the error message "login failed".

Navigating from command line confirms the directory /home/oldname/allfiles still exists, so thank goodness my data is preserved and safe.

cat /proc/version=
Code:
Linux version 2.6.25.9 (root@hostname) (gcc version 4.3.1 Debian 4.3.1-2 #1) SMP Fri July 4 19:52:20 PDT 2008
cat /proc/meminfo=
Code:
MemTotal 1036224 kB
cat /proc/cpuinfo=
Code:
Intel (R) Pentium(R) 4 CPU 1.40GHz
The box is a venerable, reliable Dell Dimension 4400.

Can anyone here please help this poor sap who screwed himself?!? Is there some trick to logging in from the GUI logon screen as newname that will succeed? Or should I log in as root from the command line and try to reverse the name change I did that started this whole mess? Please don't hesitate to let me know if more information is needed. Thank you!
__________________
best regards from North-Central California USA,

bezdomny

Dell Dimension 4400
dual-boot with Windows XP Home
Debian Lenny
2.6.25.9 kernel
KDE
Pentium 4 1.6 GHz
1 GB RAM
cable TV connection
Skype I.D. "b3zdomny"
bezdomny is offline   Reply With Quote
Old 07-19-2008   #2 (permalink)
Linux Engineer
 
jledhead's Avatar
 
Join Date: Oct 2004
Location: North Carolina
Posts: 811
can you login to a console with that user, or su from root to that user?

not sure what is happening here, you could check out /var/log/messages, /var/log/auth.log, and probably /var/log/Xorg.log and see if there is anything related to this user account and post back.
jledhead is offline   Reply With Quote
Old 07-19-2008   #3 (permalink)
Just Joined!
 
bezdomny's Avatar
 
Join Date: Apr 2007
Location: Central California
Posts: 61
Send a message via Skype™ to bezdomny
can lcan log in from command line but not from GUI logon screen

Quote:
can you login to a console with that user, or su from root to that user?
Yes.

Will check out the suggested commands and let you know the output. Thanks very much, jledhead!
__________________
best regards from North-Central California USA,

bezdomny

Dell Dimension 4400
dual-boot with Windows XP Home
Debian Lenny
2.6.25.9 kernel
KDE
Pentium 4 1.6 GHz
1 GB RAM
cable TV connection
Skype I.D. "b3zdomny"
bezdomny is offline   Reply With Quote
Old 07-19-2008   #4 (permalink)
Just Joined!
 
bezdomny's Avatar
 
Join Date: Apr 2007
Location: Central California
Posts: 61
Send a message via Skype™ to bezdomny
can lcan log in from command line but not from GUI logon screen

cat /var/auth.log=
Code:
FAILED LOGIN (2) on 'tty1' FOR 'NewName' Authentication failure
which is weird because it lets 'NewName' log in from the command line with the same password. Go figure.

cat /var/log/messages revealed nothing remarkable to my eyes. (although only that last screenful was visible; "pageup" and "pagedown" keys of course don't work and I don't know the command to make it print one screen at a time)

cat /var/log/Xorg.0.log revealed nothing remarkable to my eyes, but, again, only the last screenful was visible and I don't know the command to make it print one page at a time.

I think I'm going to take a nap and come back fresh in a couple of hours!
__________________
best regards from North-Central California USA,

bezdomny

Dell Dimension 4400
dual-boot with Windows XP Home
Debian Lenny
2.6.25.9 kernel
KDE
Pentium 4 1.6 GHz
1 GB RAM
cable TV connection
Skype I.D. "b3zdomny"
bezdomny is offline   Reply With Quote
Old 07-19-2008   #5 (permalink)
Linux Engineer
 
jledhead's Avatar
 
Join Date: Oct 2004
Location: North Carolina
Posts: 811
Code:
less /var/log/Xorg.log
Code:
man less
you can go up, down, page up, page down, q to exit

maybe you just need a new profile.

Code:
mv /home/username /home/username.backup
and then try and log in again. obviously this dumps all of your settings.
jledhead is offline   Reply With Quote
Old 07-19-2008   #6 (permalink)
Just Joined!
 
bezdomny's Avatar
 
Join Date: Apr 2007
Location: Central California
Posts: 61
Send a message via Skype™ to bezdomny
can lcan log in from command line but not from GUI logon screen

Thanks, jledhead.

Code:
less /var/log/Xorg.0.log
produces pages upon pages of documentation; it's hard to find a needle in this haystack. One thing, however, that stands out is a series of error messages complaining of missing font directories.

Yes, maybe the thing to do is simply create a new account, logon to it, and copy over my data. Hmmmm...I'd really rather simply find the right combinations of arguments for "usermod" to reverse the change. However, if I can't find that combination, then creating a new account may be my only recourse.

Thanks again.
__________________
best regards from North-Central California USA,

bezdomny

Dell Dimension 4400
dual-boot with Windows XP Home
Debian Lenny
2.6.25.9 kernel
KDE
Pentium 4 1.6 GHz
1 GB RAM
cable TV connection
Skype I.D. "b3zdomny"
bezdomny is offline   Reply With Quote
Old 07-20-2008   #7 (permalink)
Just Joined!
 
bezdomny's Avatar
 
Join Date: Apr 2007
Location: Central California
Posts: 61
Send a message via Skype™ to bezdomny
can log in from command line but not from GUI logon screen-- resolved

Basically just started all over.

Logged into the command line as root, used "groupdel" and "userdel" to just get rid of everybody. Then used "adduser" to restore OldName and everything boots into GUI just fine-- even my /home/OldName directory is intact, as well as all my auto-start items.

Sometimes I think I tinker too much with Linux!
__________________
best regards from North-Central California USA,

bezdomny

Dell Dimension 4400
dual-boot with Windows XP Home
Debian Lenny
2.6.25.9 kernel
KDE
Pentium 4 1.6 GHz
1 GB RAM
cable TV connection
Skype I.D. "b3zdomny"
bezdomny is offline   Reply With Quote
Old 07-20-2008   #8 (permalink)
Linux Engineer
 
jledhead's Avatar
 
Join Date: Oct 2004
Location: North Carolina
Posts: 811
Quote:
Originally Posted by bezdomny View Post
Sometimes I think I tinker too much with Linux!
isn't that the funnest part
jledhead is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
 

Free Magazines
Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe
Systems Management News, the newspaper for IT systems administration and data center managers!
Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 03:49 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0