Discussion:
Not able to start X as normal user
unni krishnan
2009-02-26 22:51:34 UTC
Permalink
Hi

I am getting following error when starting X as normal user :

Build Operating System: Linux 2.6.27.10 i686
Current Operating System: Linux host.webofunni.com 2.6.27.10 #1 SMP PREEMPT
Wed Dec 24 21:37:14 CET 2008 i686
(WW) xf86ReadBIOS: Failed to open /dev/mem (Operation not permitted)
(WW) xf86OpenConsole: chown /dev/tty7 failed: Operation not permitted
(WW) xf86OpenConsole: chown /dev/tty0 failed: Operation not permitted
xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)

I am able to start X as root and using xfce as desktop interface. Please
help.
--
---------------------
With regards,
Unnikrishnan.A

"A candle loses nothing by lighting another candle"
Torgeir Veimo
2009-02-26 22:53:48 UTC
Permalink
Post by unni krishnan
I am able to start X as root and using xfce as desktop interface.
Please help.
Are you running with selinux enabled?
--
Torgeir Veimo
***@pobox.com
Dan Nicholson
2009-02-26 23:13:28 UTC
Permalink
Post by unni krishnan
Hi
Build Operating System: Linux 2.6.27.10 i686
Current Operating System: Linux host.webofunni.com 2.6.27.10 #1 SMP PREEMPT
Wed Dec 24 21:37:14 CET 2008 i686
(WW) xf86ReadBIOS: Failed to open /dev/mem (Operation not permitted)
(WW) xf86OpenConsole: chown /dev/tty7 failed: Operation not permitted
(WW) xf86OpenConsole: chown /dev/tty0 failed: Operation not permitted
xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
I am able to start X as root and using xfce as desktop interface. Please
help.
Is Xorg setuid to root?

sudo chown root $prefix/Xorg
sudo chmod u+s $prefix/Xorg

--
Dan
unni krishnan
2009-02-27 07:08:52 UTC
Permalink
Dan,

setuid was not set. I have set that and X is working now.

bash-3.2$ ls -l /usr/bin/Xorg
-rwsrwxrwx 1 root root 1563180 Feb 19 15:31 /usr/bin/Xorg
bash-3.2$

Thanks for the solution :-)
--
---------------------
With regards,
Unnikrishnan.A

"A candle loses nothing by lighting another candle"
Post by unni krishnan
Post by unni krishnan
Hi
Build Operating System: Linux 2.6.27.10 i686
Current Operating System: Linux host.webofunni.com 2.6.27.10 #1 SMP
PREEMPT
Post by unni krishnan
Wed Dec 24 21:37:14 CET 2008 i686
(WW) xf86ReadBIOS: Failed to open /dev/mem (Operation not permitted)
(WW) xf86OpenConsole: chown /dev/tty7 failed: Operation not permitted
(WW) xf86OpenConsole: chown /dev/tty0 failed: Operation not permitted
xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
I am able to start X as root and using xfce as desktop interface. Please
help.
Is Xorg setuid to root?
sudo chown root $prefix/Xorg
sudo chmod u+s $prefix/Xorg
--
Dan
Loading...