Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
User X login
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Anubis
n00b
n00b


Joined: 09 Nov 2002
Posts: 68
Location: BYU

PostPosted: Mon Nov 11, 2002 8:07 pm    Post subject: User X login Reply with quote

Now this is interesting. Searched through the threads but couldn't find anything on this. Basically, I can do everything perfectly as root. I have gdm running so it comes up find and logs me into fluxbox, etc. However, the user I created can't login after the gdm screen. I almost immediately get an error stating that my x sessions has been terminated before running 10 secs, etc etc. Here is what I get from .xsession-errors:

cat .xsession-errors
/etc/X11/gdm/PreSession//Default: Registering your session with wtmp and utmp
/etc/X11/gdm/PreSession//Default: running: sessreg -a -w /var/log/wtmp -u /var/run/utmp -x "/var/lib/gdm/:0.Xservers" -h "" -l :0 dante

I tried to implement some of the things other people were having almost similar probs with and to no real avail. I was able to su to the user (dante) but couldn't run startx etc, so I sorce'd the /etc/profile and then I had all my paths etc...gonna try something else I just thought of, but I'm about out of ideas.
Back to top
View user's profile Send private message
Anubis
n00b
n00b


Joined: 09 Nov 2002
Posts: 68
Location: BYU

PostPosted: Mon Nov 11, 2002 8:14 pm    Post subject: Reply with quote

Update ***

Ok, this is interesting and takes us closer to the solution. I just tried to login as the user (not su) and my nice pretty vim colors etc worked. I ran start X, and my .xinitrc was read beautifully, and fluxbox came up without any probs. This leads me to believe that there is something wrong with the way the user is setup on entry from gdm. Gotta run to work though so I can't test this further, any advice is appreciated (btw, did I spell advice right? :) )
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Mon Nov 11, 2002 8:18 pm    Post subject: Reply with quote

Does user dante have a login shell defined in /etc/passwd?
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
Anubis
n00b
n00b


Joined: 09 Nov 2002
Posts: 68
Location: BYU

PostPosted: Mon Nov 11, 2002 9:28 pm    Post subject: Reply with quote

Yeah the user does have a login shell directory:

dante:x:1000:100::/home/dante:/bin/bash

Any other ideas? Thanks.
Back to top
View user's profile Send private message
Anubis
n00b
n00b


Joined: 09 Nov 2002
Posts: 68
Location: BYU

PostPosted: Tue Nov 12, 2002 5:06 am    Post subject: Reply with quote

Hmm... I think this might havesomething to do with the way I'm adding users. What's the syntax that everyone uses to add users? Also is there something I should be doing after using useradd? Thanx
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Tue Nov 12, 2002 5:24 am    Post subject: Reply with quote

Adding Users is the canonical thread on adding users.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
Anubis
n00b
n00b


Joined: 09 Nov 2002
Posts: 68
Location: BYU

PostPosted: Tue Nov 12, 2002 5:54 am    Post subject: Reply with quote

Hmm...that's what I thought. Still no go. Gonna figure this out if it kills me :evil:
Back to top
View user's profile Send private message
domeng
n00b
n00b


Joined: 12 Nov 2002
Posts: 2
Location: Manila, Philippines

PostPosted: Tue Nov 12, 2002 6:20 am    Post subject: Reply with quote

you can start x using startx on the command line but not from gdm?

sounds like a pam issue, see /etc/pam.d/gdm. you could copy the /etc/pam.d/login to /etc/pam.d/gdm then tweak the copied /etc/pam.d/gdm.
Back to top
View user's profile Send private message
Anubis
n00b
n00b


Joined: 09 Nov 2002
Posts: 68
Location: BYU

PostPosted: Tue Nov 12, 2002 6:30 am    Post subject: Reply with quote

OK. Got it to work. Now as to how I got it to work, I honestly have no clue. I made soooo many config changes I kinda lost track of what I did. I believe what may have fixed it was the adduser config, but I also added a source /etc/profile line to the end of my .bashrc. Could have been that as well as editing the fluxbox execution script in the gdm directory. I hope this kinda helps someone else :D . And thanks for all the help guys.
Back to top
View user's profile Send private message
xavjones
n00b
n00b


Joined: 09 Jul 2003
Posts: 9
Location: USA

PostPosted: Wed Jul 09, 2003 1:29 am    Post subject: Reply with quote

I had come across what seemed like this exact problem and so was reviewing the boards in a hunt for the/a solution. The two changes which I made were 1) Adding the user to the group 'wheel' (which I don't think was what did the trick) and 2) altered the permissions on /tmp (which were set to 'drxr-xr-x') to 'drxrwrwt' (using 'chmod a+rw /tmp' and 'chmod o+t /tmp') which is what I found on a mate's Gentoo box. And all seems fine now, can startx from the terminal or login via gdm, neither of which would work previously. Hope this helps.
_________________
mundus vult decipi - the world wants to be deceived
Back to top
View user's profile Send private message
ikeaman
n00b
n00b


Joined: 13 Jul 2003
Posts: 3
Location: SG, Switzerland

PostPosted: Tue Jul 15, 2003 9:09 pm    Post subject: Reply with quote

Had the same problem after a fresh install of Gentoo 1.4 rc4. Then i tried the "chmod a+rw /tmp" and everything went perfect.

thanks
Back to top
View user's profile Send private message
Shrekkie
n00b
n00b


Joined: 22 May 2003
Posts: 64
Location: Belgium

PostPosted: Sat Jul 26, 2003 8:06 am    Post subject: Reply with quote

OK , I've searched all relating threads on this and tried pretty much everything.
from the adduser, to the source /etc/profilein the .bashrc, to the chmod 1777 on /tmp.

None works :(

I saw more people struggling this problem, but few got it solved. I really think
this error should be taken seriously by the gentoo-ers.

Anyway, If someone can help me after all, I'd appreciate it.

Greetz,
Back to top
View user's profile Send private message
Shrekkie
n00b
n00b


Joined: 22 May 2003
Posts: 64
Location: Belgium

PostPosted: Sat Jul 26, 2003 12:50 pm    Post subject: Reply with quote

OK I found what the problem was....

Seemed my Disk quota was on 100%

So try a df -a , if your quota is 100% , cthen clean up some stuff and the prob should be solved.

Silly hah ! Well... good luck :lol:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum