LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 08-11-2005, 07:41 AM   #1
thunderweasel
Member
 
Registered: Mar 2005
Distribution: Void Linux
Posts: 143

Rep: Reputation: 15
Can't login as user, only as root


Alright,

Well, I (stupidly, apparently) deleted the /tmp folder, thinking there was probably just junk temp files in there, and at my next login attempt, couldn't get any graphical display, only command prompt. So I logged in as user and tried "startx". Didn't work. So I tried as root. Still didn't work. So I urpmi'd all the X11 packages. Tried "startx" as root, and got a KDE session. Now my graphical login screen comes up at bootup, but I can only log into a KDE session with "root". If I try to login as user, I get a black screen for a second before being returned to the login screen again. I've tried booting in "failsafe" and trying "startx", but I get:

"command not found"

So I tried "/usr/X11R6/bin/startx" and got:

/usr/X11R6/bin/startx: line 123: xauth: command not found
/usr/X11R6/bin/startx: line 124: xauth: command not found
/usr/X11R6/bin/startx: line 123: xauth: command not found
/usr/X11R6/bin/startx: line 124: xauth: command not found
/usr/X11R6/bin/startx: line 162: xinit: command not found
/usr/X11R6/bin/startx: line 1: xauth: command not found

So I tried "/usr/X11R6/bin/Xorg" and I get a black "x" cursor on a blue background (like it's about to load KDE), but it just hangs there.

So I'd appreciate any help to get my back to logging in as a normal user without reinstalling or anything. This has to be just some stupid little thing, I would think, since I can log in just fine with root.


Thanks in advance.
 
Old 08-11-2005, 07:46 AM   #2
thunderweasel
Member
 
Registered: Mar 2005
Distribution: Void Linux
Posts: 143

Original Poster
Rep: Reputation: 15
Okay, so I forgot that when booting "failsafe" I never logged on as me. So I booted "failsafe" to the command prompt, and went:

login:
pat
password: *******

then "startx"

And now I get
/usr/X11R6/bin/startx: line 124: cannot create temp file for here document: Permission denied
/usr/X11R6/bin/startx: line 124: cannot create temp file for here document: Permission denied
Authentication failed - cannot start X server.
Perhaps you do not have console ownership?xinit: Servor error.

So there's another little tidbit.

Hope I can get this worked out.
 
Old 08-11-2005, 07:53 AM   #3
thunderweasel
Member
 
Registered: Mar 2005
Distribution: Void Linux
Posts: 143

Original Poster
Rep: Reputation: 15
Okay, so from the same prompt as above I tried "/usr/X11R6/bin/Xorg" and got:

Fatal server error:
Could not create lock file in /tmp/.tx0-lock

Please consult the The X.Org Foundation support at http://wiki.X.Org for help.

Sorry for the extra posts, I'm just trying things as the occur to me, and I thought the info could be helpful for anybody who may be interested in helping me
 
Old 08-11-2005, 08:29 AM   #4
shamrock_uk
Member
 
Registered: Dec 2003
Distribution: Debian 3.1, Ubuntu Breezy, Ubuntu Dapper
Posts: 30

Rep: Reputation: 15
Did you recreate the /tmp folder? Does it have write access for normal users?

Last edited by shamrock_uk; 08-11-2005 at 08:32 AM.
 
Old 08-11-2005, 08:39 AM   #5
thunderweasel
Member
 
Registered: Mar 2005
Distribution: Void Linux
Posts: 143

Original Poster
Rep: Reputation: 15
Upon my next graphical startup, the /tmp folder had reappeared. It's got a write access for all users, but I think it's only got read access for root.
 
Old 08-11-2005, 08:53 AM   #6
thunderweasel
Member
 
Registered: Mar 2005
Distribution: Void Linux
Posts: 143

Original Poster
Rep: Reputation: 15
FIXED!!

Turns out that under permissions for the /tmp folder I checked users can "write entries", but I didn't check "enter" as well. Once I checked that, everything was just dandy. So incase anybody else has a problem such as this, here's your 2 part solution:

A) Don't be an ass and delete your /tmp folder in the first place, and
B) Make sure the permissions are all set correctly so your desktop environment can write to the /tmp folder


Thanks for the advice!
 
  


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
Root login but no user login on samba Cybercool Linux - Newbie 3 07-13-2011 05:36 AM
unable to login as user; can login as root. rksanders Debian 24 02-09-2011 08:01 AM
I have re-installed MK 9.2 but cannot login as user, login as root works. bobinglis Mandriva 2 02-22-2004 11:39 AM
can only login as root? user login doesnt work..? anyone? hacking_4_b33r Linux - General 1 02-05-2004 11:40 PM
how do i login as the root user Robin01 Linux - Newbie 6 08-29-2003 05:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 10:42 AM.

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