View previous topic :: View next topic |
Author |
Message |
burzmali Apprentice
Joined: 18 Apr 2002 Posts: 238 Location: ca
|
Posted: Fri Jul 12, 2002 5:30 pm Post subject: only root has X |
|
|
hello,
this problem just started yesterday
normal users can no longer get into X, only root can. my X error log gives no errors and ~/.xsession-errors is empty. i changed permissions on the file in /etc/X11/Sessions/. here is what they look like now:
Code: |
usal root # ls -l /etc/X11/Sessions/
total 20
-rwxrwxr-x 1 root wheel 2464 Jun 26 11:38 Gnome
-rwxrwxr-x 1 root wheel 2187 Jun 19 17:12 Xsession
-rwxrwxr-x 1 root wheel 34 Jun 20 05:01 kde-3.0.1
-rwxrwxr-x 1 root wheel 86 Jul 12 01:15 kde-3.0.2
-rwxrwxr-x 1 burzmali wheel 28 Jul 3 12:45 wmaker
usal root #
|
this is the only thing i can remember changing since it stopped working for users. what should the permissions be? any help would be appreciated. thanks. _________________ burzmali
www.burzmali.net |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Fri Jul 12, 2002 5:36 pm Post subject: |
|
|
Everything in my Sessions directory is root root. Maybe try changing it back. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
burzmali Apprentice
Joined: 18 Apr 2002 Posts: 238 Location: ca
|
Posted: Fri Jul 12, 2002 5:51 pm Post subject: |
|
|
i tried it and it didn't work
i hate logging into X as root
maybe i can recompile X?
AARRGGH! _________________ burzmali
www.burzmali.net |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Fri Jul 12, 2002 6:04 pm Post subject: |
|
|
A long shot - but are the permissions on /tmp ok? _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
burzmali Apprentice
Joined: 18 Apr 2002 Posts: 238 Location: ca
|
Posted: Fri Jul 12, 2002 6:12 pm Post subject: |
|
|
/tmp has drwxrwxrwxt
i assume this is good?
oh i think i just figured it out
my df -h tells me that 90% of my disk used up, and i seem to remember when i formatted my frive they said resrveing 10% for root, so that would mean that users have no available harddrive space for /tmp/ entries, right?
d'oh! _________________ burzmali
www.burzmali.net |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Fri Jul 12, 2002 6:17 pm Post subject: |
|
|
burzmali wrote: | /tmp has drwxrwxrwxt
i assume this is good? |
Yes.
Quote: | my df -h tells me that 90% of my disk used up |
Happy housecleaning. Code: | # ls -lS /usr/portage/distfiles | will probably turn up some low-hanging fruit. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
burzmali Apprentice
Joined: 18 Apr 2002 Posts: 238 Location: ca
|
Posted: Fri Jul 12, 2002 6:36 pm Post subject: |
|
|
um, i have cut it down 64% used, but still no users can run X!?! i really thought i had it, i even rebooted the pc but to no avail. so should i rebuild X, or what? _________________ burzmali
www.burzmali.net |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Fri Jul 12, 2002 6:41 pm Post subject: |
|
|
Another longshot... files in the Sessions directory point to other files. Sessions/fluxbox
for instance contains /usr/bin/fluxbox. Maybe check into that. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
burzmali Apprentice
Joined: 18 Apr 2002 Posts: 238 Location: ca
|
Posted: Fri Jul 12, 2002 6:58 pm Post subject: |
|
|
users can't log into any session (wmaker, kge 3.01, kde 3.02, gnome, xsession) and root can log into all of them.
/usr/kde/3/bin/startkde is rwxr-xr-x root.root, which means anyone can execute it
i was messing around with the mouse device section of my XF86Config file, but since root can still use X, and the kdm login screen still works, i think it is ok.
thank you for your quick replies!!!!!!!!!!!!!!!!!!!!!
your help is much appreciated!!!!!!!!!!!!!!!!! _________________ burzmali
www.burzmali.net |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Fri Jul 12, 2002 7:08 pm Post subject: |
|
|
You say there are no errors... what happens when you type startx as a user? Or are you using a login manager? _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
burzmali Apprentice
Joined: 18 Apr 2002 Posts: 238 Location: ca
|
Posted: Fri Jul 12, 2002 7:25 pm Post subject: |
|
|
here is the output of startx as a normal user:
Code: |
burzmali@usal burzmali $ startx
XFree86 Version 4.2.0 / X Window System
(protocol Version 11, revision 0, vendor release 6600)
Release Date: 18 January 2002
If the server is older than 6-12 months, or if your card is
newer than the above date, look for a newer version before
reporting problems. (See http://www.XFree86.Org/)
Build Operating System: Linux 2.4.19-gentoo-r7 i686 [ELF]
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/XFree86.0.log", Time: Fri Jul 12 12:15:53 2002
(==) Using config file: "/etc/X11/XF86Config"
(II) [GLX]: Calling GlxExtensionInit
waiting for X server to shut down
burzmali@usal burzmali $
|
and here is the end my XFree86 log:
Code: |
(II) NVIDIA(0): Using XFree86 Acceleration Architecture (XAA)
Screen to screen bit blits
Solid filled rectangles
Solid filled trapezoids
8x8 mono pattern filled rectangles
8x8 mono pattern filled trapezoids
Indirect CPU to Screen color expansion
Solid Lines
Scanline Image Writes
Offscreen Pixmaps
Driver provided FillSolidRects replacement
Driver provided FillSolidSpans replacement
Driver provided FillMono8x8PatternRects replacement
Driver provided WritePixmap replacement
Driver provided ReadPixmap replacement
Setting up tile and stipple cache:
20 128x128 slots
4 256x256 slots
(==) NVIDIA(0): Backing store disabled
(==) NVIDIA(0): Silken mouse enabled
(II) Loading extension NV-GLX
(II) Loading extension NV-CONTROL
(II) Initializing built-in extension MIT-SHM
(II) Initializing built-in extension XInputExtension
(II) Initializing built-in extension XTEST
(II) Initializing built-in extension XKEYBOARD
(II) Initializing built-in extension LBX
(II) Initializing built-in extension XC-APPGROUP
(II) Initializing built-in extension SECURITY
(II) Initializing built-in extension XINERAMA
(II) Initializing built-in extension XFree86-Bigfont
(II) Initializing built-in extension RENDER
(II) [GLX]: Calling GlxExtensionInit
(**) Option "Protocol" "ExplorerPS/2"
(**) Mouse0: Protocol: "ExplorerPS/2"
(**) Option "CorePointer"
(**) Mouse0: Core Pointer
(**) Option "Device" "/dev/usbmouse1"
(**) Option "Buttons" "7"
(**) Option "ZAxisMapping" "6 7"
(**) Mouse0: ZAxisMapping: buttons 6 and 7
(**) Mouse0: Buttons: 7
(II) Keyboard "Keyboard0" handled by legacy driver
(II) XINPUT: Adding extended input device "Mouse0" (type: MOUSE)
|
_________________ burzmali
www.burzmali.net |
|
Back to top |
|
|
Pasoa2000 n00b
Joined: 06 Jul 2002 Posts: 29
|
Posted: Fri Jul 12, 2002 7:40 pm Post subject: |
|
|
Does the screen blank and sound like it's trying to adjust refresh rates, or does the X server just die immediately?
Did you "startx" as root in your users directory?
Have you tried adding a new user and having that user "startx"? |
|
Back to top |
|
|
yoteweasel n00b
Joined: 11 Jul 2002 Posts: 3
|
Posted: Fri Jul 12, 2002 8:26 pm Post subject: 4.2 wants display manager for non-root |
|
|
From my experience with FreeBSD I learned that, in at least their distro, X protects itself against hack attempts by only allowing root to start it manually. All other users must use a display manager (xdm, gdm, kdm..) to log in.
This was a change in 4.2.
yote |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Fri Jul 12, 2002 8:28 pm Post subject: Re: 4.2 wants display manager for non-root |
|
|
yoteweasel wrote: | From my experience with FreeBSD I learned that, in at least their distro, X protects itself against hack attempts by only allowing root to start it manually. All other users must use a display manager (xdm, gdm, kdm..) to log in.
This was a change in 4.2.
yote | Hmm... I personally think root (the user) shouldn't be allowed to start X. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
burzmali Apprentice
Joined: 18 Apr 2002 Posts: 238 Location: ca
|
Posted: Fri Jul 12, 2002 8:38 pm Post subject: |
|
|
i made a new user and he can startx and login via the kdm login screen, so it is something wrong with my main user config. thanks for all your help. i will see what i can do now to fix this and let you know what works. _________________ burzmali
www.burzmali.net |
|
Back to top |
|
|
burzmali Apprentice
Joined: 18 Apr 2002 Posts: 238 Location: ca
|
Posted: Fri Jul 12, 2002 8:43 pm Post subject: |
|
|
i deleted ~/.xsession for the user and everything is fine now.
thanks again for your help _________________ burzmali
www.burzmali.net |
|
Back to top |
|
|
|