Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-01-2006, 07:21 PM
|
#1
|
LQ Newbie
Registered: Jan 2006
Distribution: Suse 10.0x86_64
Posts: 4
Rep:
|
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.
|
|
|
01-01-2006, 07:29 PM
|
#2
|
Senior Member
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658
Rep:
|
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.
|
|
|
01-01-2006, 07:50 PM
|
#3
|
LQ Newbie
Registered: Jan 2006
Distribution: Suse 10.0x86_64
Posts: 4
Original Poster
Rep:
|
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.
|
|
|
01-01-2006, 07:58 PM
|
#4
|
Member
Registered: Jan 2005
Location: India
Distribution: Fedora Core 2
Posts: 83
Rep:
|
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.
|
|
|
01-01-2006, 11:13 PM
|
#5
|
Senior Member
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658
Rep:
|
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?
|
|
|
01-02-2006, 12:35 AM
|
#6
|
Member
Registered: Aug 2004
Location: India
Distribution: Redhat 9.0,FC3,FC5,FC10
Posts: 257
Rep:
|
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
|
|
|
01-02-2006, 11:31 AM
|
#7
|
Member
Registered: Dec 2002
Location: Mumbai, India
Distribution: Fedora 2, Damn small linux
Posts: 30
Rep:
|
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
|
|
|
01-02-2006, 07:15 PM
|
#8
|
Senior Member
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658
Rep:
|
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.
|
|
|
01-03-2006, 11:45 PM
|
#9
|
LQ Newbie
Registered: Mar 2001
Location: Rijeka,Croatia
Posts: 9
Rep:
|
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
|
|
|
01-04-2006, 01:02 AM
|
#10
|
LQ Newbie
Registered: Mar 2001
Location: Rijeka,Croatia
Posts: 9
Rep:
|
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
|
|
|
01-04-2006, 05:06 PM
|
#11
|
LQ Newbie
Registered: Jan 2006
Location: India
Distribution: fedora , debian & red hat , RHEL
Posts: 13
Rep:
|
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. :-)
|
|
|
01-23-2006, 06:33 AM
|
#12
|
LQ Newbie
Registered: Apr 2005
Distribution: slackware, knoppix
Posts: 17
Rep:
|
see also that the home partition is not full, if you have that.
|
|
|
All times are GMT -5. The time now is 10:06 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|