View previous topic :: View next topic |
Author |
Message |
Anubis n00b
Joined: 09 Nov 2002 Posts: 68 Location: BYU
|
Posted: Mon Nov 11, 2002 8:07 pm Post subject: User X login |
|
|
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 |
|
|
Anubis n00b
Joined: 09 Nov 2002 Posts: 68 Location: BYU
|
Posted: Mon Nov 11, 2002 8:14 pm Post subject: |
|
|
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 |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Mon Nov 11, 2002 8:18 pm Post subject: |
|
|
Does user dante have a login shell defined in /etc/passwd? _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
Anubis n00b
Joined: 09 Nov 2002 Posts: 68 Location: BYU
|
Posted: Mon Nov 11, 2002 9:28 pm Post subject: |
|
|
Yeah the user does have a login shell directory:
dante:x:1000:100::/home/dante:/bin/bash
Any other ideas? Thanks. |
|
Back to top |
|
|
Anubis n00b
Joined: 09 Nov 2002 Posts: 68 Location: BYU
|
Posted: Tue Nov 12, 2002 5:06 am Post subject: |
|
|
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 |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Tue Nov 12, 2002 5:24 am Post subject: |
|
|
Adding Users is the canonical thread on adding users. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
Anubis n00b
Joined: 09 Nov 2002 Posts: 68 Location: BYU
|
Posted: Tue Nov 12, 2002 5:54 am Post subject: |
|
|
Hmm...that's what I thought. Still no go. Gonna figure this out if it kills me |
|
Back to top |
|
|
domeng n00b
Joined: 12 Nov 2002 Posts: 2 Location: Manila, Philippines
|
Posted: Tue Nov 12, 2002 6:20 am Post subject: |
|
|
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 |
|
|
Anubis n00b
Joined: 09 Nov 2002 Posts: 68 Location: BYU
|
Posted: Tue Nov 12, 2002 6:30 am Post subject: |
|
|
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 . And thanks for all the help guys. |
|
Back to top |
|
|
xavjones n00b
Joined: 09 Jul 2003 Posts: 9 Location: USA
|
Posted: Wed Jul 09, 2003 1:29 am Post subject: |
|
|
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 |
|
|
ikeaman n00b
Joined: 13 Jul 2003 Posts: 3 Location: SG, Switzerland
|
Posted: Tue Jul 15, 2003 9:09 pm Post subject: |
|
|
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 |
|
|
Shrekkie n00b
Joined: 22 May 2003 Posts: 64 Location: Belgium
|
Posted: Sat Jul 26, 2003 8:06 am Post subject: |
|
|
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 |
|
|
Shrekkie n00b
Joined: 22 May 2003 Posts: 64 Location: Belgium
|
Posted: Sat Jul 26, 2003 12:50 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
|