LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 04-20-2008, 05:09 PM   #1
jonlake
Member
 
Registered: Apr 2004
Distribution: Slackware 11.0, Gentoo
Posts: 252

Rep: Reputation: 31
Can't log into X (resolved)


Yesterday I was watching movies and listening to music (I don't remember making any changes) in X (KDE). Today I cannot log in. What happens, is I enter my username and password, the screen flashes black and then comes back to the kdm login screen.

I am able to login as another user on my computer. I tried moving my .config .kde* files and then logging in to see if there were any problems there. That didn't seem to help. The only thing I can decipher in the log is pam_unix(kde:session) opens and then immediately closes a session for my user. I tried installing and logging into xfce and it does the same thing, not allowing me to log in, yet another user on the computer can log in.

I am stumped and cannot figure out why I am unable to login.

edit: This is on gentoo

Also, I was able to start kde as my user by doing the following:

Stopping xdm
Running startx
Running startkde

I did not get any messages (error or otherwise)

Last edited by jonlake; 05-07-2008 at 11:55 AM. Reason: resolved
 
Old 04-20-2008, 07:07 PM   #2
jonlake
Member
 
Registered: Apr 2004
Distribution: Slackware 11.0, Gentoo
Posts: 252

Original Poster
Rep: Reputation: 31
Update

I found that if I kill xdm, do startx from my account, then in the xterm type in
Code:
pkill twm && startkde &
and this will bring up my normal kde environment. Not sure what is happening when I try to login from xdm.
 
Old 05-03-2008, 06:06 PM   #3
jonlake
Member
 
Registered: Apr 2004
Distribution: Slackware 11.0, Gentoo
Posts: 252

Original Poster
Rep: Reputation: 31
Bump

Back to the top, I still am having this issue. The workaround I'm using is killing /etc/init.d/xdm and then running startx from the console. It is just kind of annoying to have to do.
 
Old 05-03-2008, 08:19 PM   #4
anon099
Member
 
Registered: Oct 2002
Posts: 188

Rep: Reputation: Disabled
I'm not a KDE guy but since no one else has chimed in I figure I'll go with what my gut is saying. I have a feeling that there may be something in your xdm-config Xaccess Xservers or Xresources file. Possibly located in the problem users home directory. Check out http://tldp.org/HOWTO/XDM-Xterm/config.html for info on those files. Sorry I don't know more but maybe that will get you in the right direction.

Another guess could be your xorg.conf file. check out http://www.x.org/archive/X11R6.8.0/doc/xorg.conf.5.html

Good luck.
 
Old 05-07-2008, 11:54 AM   #5
jonlake
Member
 
Registered: Apr 2004
Distribution: Slackware 11.0, Gentoo
Posts: 252

Original Poster
Rep: Reputation: 31
Resolved

I resolved this the long, hard, annoying way. I created a directory called hidden_dir and then moved all my hidden files from my home dir to hidden_dir. Then moved them back one at a time and tried logging in to X. I found that it was my .dbus folder causing this problem.
 
Old 05-08-2008, 12:57 AM   #6
halabi
LQ Newbie
 
Registered: May 2008
Posts: 4

Rep: Reputation: 0
Hey man i'm havin the same problem but on openSUSE 10.3 can you please explain to me how did you solve this problem ?!
 
Old 05-08-2008, 09:38 AM   #7
jonlake
Member
 
Registered: Apr 2004
Distribution: Slackware 11.0, Gentoo
Posts: 252

Original Poster
Rep: Reputation: 31
The first thing to do is make sure it is specific to your user and not system wide. What you can do is try to login as a different user. If you don't have a different user account, create one from the console. Then try to login with that new user. If that works, then it's probably some config file in your home directory and you can continue with what I did below. If it doesn't work, then you should look at your X logs and config to figure out where the problem is.

If you were able to login as the other account, then do the following:
Login from the console as your user account that is having problems.
In your home directory create a folder called hidden_files (or whatever you want to call it, just a place to store all the hidden files/folders so they don't get processed at login).

I started with moving folders I knew get processed at login. Try moving your .bashrc .bash_profile .xinitrc .xsession .dbus and any other folders you know get processed at login (maybe .kde .config .gnome depending on your DE) to this new folder.
Code:
mv .bashrc .bash_profile .xinitrc .xsession .dbus ~/hidden_files
Then try to login. If it works, move the files back to your home dir one at a time, trying to login after you move one so you know what the offending file is. (except .dbus, don't move it back because it gets recreated automatically.) If it doesn't work, hopefully you have some time if you have a lot of hidden folders and files.

If it didn't work, you need to move all hidden folders/files to your hidden_folder directory. Run the first command to make sure you are getting only hidden folders/files and not everything in your home dir. Then run the second to actually move the hidden files.
Code:
find /home/user -maxdepth 1 -iname .[a-z]\*
find /home/user -maxdepth 1 -iname .[a-z]\* -exec mv {} /home/user/hidden_files \;
Now try to login. This is where it worked for me, so I started moving files back from my hidden folder to my home dir. I grouped them all together by letter to make it quicker.
Code:
mv /home/user/hidden_files/.a* /home/user
Then try to login, if it works then
Code:
mv /home/user/hidden_files/.b* /home/user
Then try to login. Keep doing this until you find the folder/file that is causing you trouble.
Hope this helps. If you have any questions or it doesn't make sense let me know.

Last edited by jonlake; 05-08-2008 at 09:42 AM. Reason: typos
 
Old 05-30-2008, 10:32 PM   #8
dinh
LQ Newbie
 
Registered: May 2008
Posts: 1

Rep: Reputation: 0
Hi
I am new linux user
I don't have login name and password
How I access my linux destop 7.0
Please help me out
Thank
 
Old 05-31-2008, 10:13 AM   #9
jonlake
Member
 
Registered: Apr 2004
Distribution: Slackware 11.0, Gentoo
Posts: 252

Original Poster
Rep: Reputation: 31
Need more info

To help you out, we will need a little more information.

There are various distributions out there, so just saying 7.0 doesn't help. We need to know what distribution you are using (ubuntu, fedora, opensuse, etc).
2. When you installed linux, you should have set a root password, you will have to use that initially to login and create yourself a username (unless that was taken care of during the install, which I'm guessing it wasn't since you are saying you don't have one).
3. When you boot the operating system, does it come up with a text login or the graphical login?

If you answer these questions, we can help you start using linux.

Also for future reference, you will get better responses if you start a new thread rather than adding questions onto an existing one, especially if it is marked resolved.

Last edited by jonlake; 05-31-2008 at 10:15 AM.
 
  


Reply

Tags
access, desktop, linus



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
Can Samhain log my entries in /var/log/secure and /var/log/mesage to a central server abefroman Linux - Software 2 04-13-2008 04:13 PM
Bash script for server log (namely var/log/messages) tenaciousbob Programming 17 05-24-2007 10:43 AM
Opennms Logs - where are web.log, web_rtc.log and webauth.log referenced? not_much_of_a_guru Linux - Networking 0 07-12-2006 10:28 AM
pppd logging to /var/log/ppp.log problem mrtwice Linux - Software 1 01-10-2004 05:38 PM
iptables, changing log file from /var/log/messages acid2000 Linux - Networking 3 03-11-2003 08:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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