Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
X, GNOME, GDM problems...
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
nullByte
n00b
n00b


Joined: 31 Aug 2003
Posts: 2

PostPosted: Sun Aug 31, 2003 2:02 am    Post subject: X, GNOME, GDM problems... Reply with quote

I have finished the long process of installing gentoo (for the first time) and have gotten to the point of installing X, GNOME and GDM. I followed the instructions, I think, to the letter. However if I try to logon through GDN as a nonpriv user, I receive the following dialogue box:
Your session only lasted less than 10 seconds. If you have not logged out yourself, this could mean that there is some installation problem or that you may be out of disk space. Try logging in with one of the failsafe sessions to see if you can fix this problem.
View details (~/.xsession-errors file)
The contents of said file are as follows:
/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.Xserver" -h " " -1:0 myuserlogon

This does not occur when logging in with root.
I have verified that there is plenty of disk space.
I can also logon at the console with nonpriv user.
When I choose the failsafe option, it just sits there with a pointer on the screen and nothing else happens. Then CTRL+ALT+BACKSPACE to get out.
When I run startx as nonpriv user I recieve the following error message:
The XKEYBOARD Keymap compiler (xkbcomp) reports:
>Error: Cannot open "/var/tmp/server-0.xkm" to write keyboard keymap
> Exiting
Couldn't load XKB keymap, falling back to pre-XKB keymap waiting for X Server to shutdown.

When I configured X, I used the XFree86 --configure options as apposed to the xf86config method.

Any advice would be helpful.
Back to top
View user's profile Send private message
rajeshd
n00b
n00b


Joined: 22 Aug 2003
Posts: 37

PostPosted: Sun Aug 31, 2003 2:17 am    Post subject: Permissions Reply with quote

Do this as root:

Code:

chmod 777 /tmp
chmod 777 /var/tmp
chmod +t /tmp
chmod +t /var/tmp


And then try restarting X and logging in as a regular user.
Back to top
View user's profile Send private message
nullByte
n00b
n00b


Joined: 31 Aug 2003
Posts: 2

PostPosted: Sun Aug 31, 2003 3:54 am    Post subject: Reply with quote

Thankyou rajeshd, that solved my problem.
Both /tmp and /var/tmp are seperate filesystems. I failed to check those attributes. Thanks again. :)
Back to top
View user's profile Send private message
LornKnight
n00b
n00b


Joined: 04 Apr 2003
Posts: 31
Location: St. Louis, Missouri - USA

PostPosted: Mon Oct 06, 2003 11:58 pm    Post subject: Reply with quote

Man, there isn't any problem you can't find a solution to on this forum!

rajeshd, you kick maximum !$$. I had this exact problem also, and the permission reassignment fixed it right up. Thank you!
_________________
What the hell, he thought, you're only young once, and threw himself out of the window.
That would at least keep the element of surprise on his side.
Back to top
View user's profile Send private message
DJ_Grijander
n00b
n00b


Joined: 15 Aug 2003
Posts: 58

PostPosted: Sat Oct 25, 2003 8:59 pm    Post subject: Reply with quote

N00b question here: isn't it too dangerous, from a security standpoint, to set permissions to 777 for those directories? I don't know whether they contain "critical" files, so I would like to make sure about it before opening them to everybody... Thanks for your help.
Back to top
View user's profile Send private message
rajeshd
n00b
n00b


Joined: 22 Aug 2003
Posts: 37

PostPosted: Sat Oct 25, 2003 10:41 pm    Post subject: Reply with quote

I doubt that these "temporary" directories contain security sensitive data. Basically, any data that applications put in /tmp and /var/tmp is supposed to be of a temporary/transient nature.

In any case, my Gentoo install has these permissions for these two directories by default. So this must be a normal thing.
Back to top
View user's profile Send private message
c07
Veteran
Veteran


Joined: 25 Oct 2002
Posts: 1091

PostPosted: Sat Oct 25, 2003 11:57 pm    Post subject: Reply with quote

DJ_Grijander wrote:
isn't it too dangerous, from a security standpoint, to set permissions to 777 for those directories? I don't know whether they contain "critical" files, so I would like to make sure about it before opening them to everybody...

The only thing you open is the file name (and size &c), not the content of the file (provided it has appropriate permissions).
Back to top
View user's profile Send private message
DJ_Grijander
n00b
n00b


Joined: 15 Aug 2003
Posts: 58

PostPosted: Sun Oct 26, 2003 12:03 am    Post subject: Reply with quote

rajeshd,

your explanation makes full sense... I was worried because my /var/tmp permissions were rwxr-xr-t (for /tmp they were rwxrwxrwt). I don't know wheter this was the original configuration when I first installed Gentoo, or whether it has been changed later (maybe when I decided to start using xdm?).

Anyway, your solution is easy and it works! More than enough for me :) Thanks a lot for your help.
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