LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 01-01-2006, 07:21 PM   #1
nenochka9
LQ Newbie
 
Registered: Jan 2006
Distribution: Suse 10.0x86_64
Posts: 4

Rep: Reputation: 0
Can't log into user account


I cannot log into my user account in an X window system. I can log into root in X Window just fine. Suse 10.0x86_64. When I try to log in it acts like it's going to, then returns to the log in screen, or to the root window if I try switching users. This happened previously and I deleted the user account and added a new one. It may have something to do with shadow passwords, but I don't know how to turn them off.
 
Old 01-01-2006, 07:29 PM   #2
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
Did it fix the problem when you added the new user? If so, it's likely that you're somehow mangling the ownership/permissions of the user-specific X configuration files. Take a look at the X logs in /var/log and see if there are any informative messages, especially about perms or unable to open file.
 
Old 01-01-2006, 07:50 PM   #3
nenochka9
LQ Newbie
 
Registered: Jan 2006
Distribution: Suse 10.0x86_64
Posts: 4

Original Poster
Rep: Reputation: 0
adding a new account only worked briefly, it has the same problem also now, cannot log in. I didn't see anything that meants anything to me in the logs.
 
Old 01-01-2006, 07:58 PM   #4
ravee
Member
 
Registered: Jan 2005
Location: India
Distribution: Fedora Core 2
Posts: 83

Rep: Reputation: 15
See if you have a 'nologin' file in the /etc directory. If it is there, then ordinary users will be debarred from logging in to the machine. So delete the file /etc/nologin and you will be able to log in to the user account.
 
Old 01-01-2006, 11:13 PM   #5
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
Is anything in the users home directory not owned by that user (including all the "dot" files)? Also try temporarily moving .Xauthority and the .kde directory to a different location (like backup_Xauthority) and see if that helps.

Also did you happen to be adjusting any of the system settings when this started, especially the login, user, or X-related settings?
 
Old 01-02-2006, 12:35 AM   #6
live_dont_exist
Member
 
Registered: Aug 2004
Location: India
Distribution: Redhat 9.0,FC3,FC5,FC10
Posts: 257

Rep: Reputation: 30
This might sound very silly...but is probably the issue...whenever you create a new user you need to set passwords for them else the account is locked until a password is assigned to them

So for eg. If I create a new user arvind
Immediately after creating a user I should set a password for arvind
passwd arvind:
Enter again:

Password changed!!!

cat /etc/shadow | grep arvind

arvind:$1$aK5vR5we$t0zhmpb375GLCGWAmN9UZ0:13119:0:99999:7:::

Now I acn login as arvind..else I will not be bale to login..Root though will always be able to login...

Give this a shot and come back if its still a problem..

Cheers
Arvind
 
Old 01-02-2006, 11:31 AM   #7
khurdp
Member
 
Registered: Dec 2002
Location: Mumbai, India
Distribution: Fedora 2, Damn small linux
Posts: 30

Rep: Reputation: 15
I am not sure if this will help but trying to...

use a copy instead of move to move the user files after creating a new user, if you do so.

My X wouldn't startup because I was out of disk space, I know this is different but...

hth,
-Prasad
 
Old 01-02-2006, 07:15 PM   #8
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
Quote:
Originally Posted by khurdp
I am not sure if this will help but trying to...

use a copy instead of move to move the user files after creating a new user, if you do so.
Just to clarify the above, make sure to copy files from a *new* user that can login. If you simply copy them from a regular user, then the orginal corrupted versions will still exist and remain intact. If you're following the directions I gave you in my post, then do not use copy, move them instead (you don't want the corrupt originals to exist that way the Xserver will recreate them).

Last edited by Capt_Caveman; 01-02-2006 at 07:22 PM.
 
Old 01-03-2006, 11:45 PM   #9
DarkoX
LQ Newbie
 
Registered: Mar 2001
Location: Rijeka,Croatia
Posts: 9

Rep: Reputation: 0
Can you log into your account from console (from bash,sh...)or by pressing Ctrl+F1 for example?If You can't ,the problem is maybe with /etc/shadow file.If You can log ,try to start system from init 3 (without X) then log in & try startx command to see the output.
Init 3:When lilo is shown up,press Escape then type the name of session followed by init 3, for example (in my case):
linux init 3
 
Old 01-04-2006, 01:02 AM   #10
DarkoX
LQ Newbie
 
Registered: Mar 2001
Location: Rijeka,Croatia
Posts: 9

Rep: Reputation: 0
I said Ctrl+F1,but it is Ctrl+Alt+F1.Returning back to X Session is Ctrl+Alt+F7(on my system).If you can't return to X then you can reboot system with command:reboot,or shutdown with command : halt
 
Old 01-04-2006, 05:06 PM   #11
assacin
LQ Newbie
 
Registered: Jan 2006
Location: India
Distribution: fedora , debian & red hat , RHEL
Posts: 13

Rep: Reputation: 0
Hello,
Try to login to the console as the new user & if X is not running issue the startx command to start the X Server. I guess this will solve the probs. If u can't enter your account it's self then check for your password of if there is any nologin file in /etc/ of check for expirary of account.
Hope it will solve the probs...
Happy Computing. :-)
 
Old 01-23-2006, 06:33 AM   #12
picobyte
LQ Newbie
 
Registered: Apr 2005
Distribution: slackware, knoppix
Posts: 17

Rep: Reputation: 0
see also that the home partition is not full, if you have that.
 
  


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
system account or user account??? yenonn Linux - Newbie 6 05-10-2006 07:49 PM
C program to see user log on in system and print user with real user name also naveen245 Programming 2 12-21-2005 12:53 AM
unable to log in to a user account cheema Mandriva 1 12-25-2004 09:34 AM
ftp cannot log in using new user account wendallsan Linux - Software 0 12-07-2004 08:31 PM
can't log in since no user account exists scarecrow Linux - Newbie 13 09-11-2004 02:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:08 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