LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-14-2009, 05:03 AM   #1
rajuvk
LQ Newbie
 
Registered: Feb 2007
Location: Kerala, India
Distribution: FC10, Ubuntu 8.04
Posts: 14

Rep: Reputation: 1
fc10 - No x window for user other than root


An FC10 server is running for more than one year, hosting an intranet. Last week I installed and configured terminal server on the same server.
The problem is that the x window is available only to the root user. (both from the server and the client). When a user log in, the graphical window get blank and the X server hangs. I have to restart the x server by ctrl +alt+backspace. The problem was not noticed earlier as the server mainly run at level 3 and only the root account is used. All attempts to solve this failed. Can any body have a solution other than complete reinstallation, which I am trying to avoid. ( The system is periodically updated.). There is no problem in the X window / server if I log in as root.
m( This was posted at fedora forum a few days back but have no replies despite many views. Sorry for reposting here)

Regards,
Raju V.K.
 
Old 10-14-2009, 07:20 AM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 5.4, Mac OS 10.4 (tiger)
Posts: 1,005

Rep: Reputation: 79
Ok, a few basic checks.

Can the users login to command line?
If you are using kde have you tried changing the desktop manager to gnome (or vice-versa)?
Are you sure you haven't changed the permissions of anything related to x-server to root only (becareful with permissions)?
Have you tried removing and reinstalling x-server via yum?
Is there anything in any error logs that suggests a problem?

This is going to need more information to pin-point the exact cause of the problems but let's see if any of those help.

Last edited by r3sistance; 10-14-2009 at 07:21 AM.
 
Old 10-14-2009, 01:57 PM   #3
rajuvk
LQ Newbie
 
Registered: Feb 2007
Location: Kerala, India
Distribution: FC10, Ubuntu 8.04
Posts: 14

Original Poster
Rep: Reputation: 1
The users can login at command prompt without any problem.
I am using GNOME. It will be a good suggestion to test by changing to KDE. I will do it tomorrow morning and will post the result.
File permissions are not changed.
No re-installations were made. But some of the packages may have upgraded in the upgrade process.
I am not sure that the x window was available to users in the beginning. Because there never was a user account other than root until now. There are some errors in the error log, which I think routine. However I will post them tomorrow, for you have a look at it.

Meanwhile suggestions of any specific area to look up are welcome.

Regards,
Raju


Quote:
Originally Posted by r3sistance View Post
Ok, a few basic checks.

Can the users login to command line?
If you are using kde have you tried changing the desktop manager to gnome (or vice-versa)?
Are you sure you haven't changed the permissions of anything related to x-server to root only (becareful with permissions)?
Have you tried removing and reinstalling x-server via yum?
Is there anything in any error logs that suggests a problem?

This is going to need more information to pin-point the exact cause of the problems but let's see if any of those help.
 
Old 10-14-2009, 02:22 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
my question is that THERE SHOULD be a very big problem starting x and gnome AS ROOT in fedora 10 .without hacking gdm you should NOT be able to run x AS ROOT.

but your problem is the opposite

this could be one of the "unexpected consequences" of the gdm hack to get root to run X
there are ALL kinds of problems form using the hack and MANY warnings are given

PS. you do know that fedora 10 hits End of Life in about 60 days
time to install fedora 11 or in a month install fedora 12.

Last edited by John VV; 10-14-2009 at 02:36 PM.
 
Old 10-14-2009, 06:23 PM   #5
usdanskys
LQ Newbie
 
Registered: Sep 2003
Distribution: Fedora, Ubuntu, Puppy
Posts: 17

Rep: Reputation: 1
Quote:
Originally Posted by rajuvk View Post
An FC10 server is running for more than one year, hosting an intranet. Last week I installed and configured terminal server on the same server.
The problem is that the x window is available only to the root user. (both from the server and the client). When a user log in, the graphical window get blank and the X server hangs. I have to restart the x server by ctrl +alt+backspace. The problem was not noticed earlier as the server mainly run at level 3 and only the root account is used. All attempts to solve this failed. Can any body have a solution other than complete reinstallation, which I am trying to avoid. ( The system is periodically updated.). There is no problem in the X window / server if I log in as root.
m( This was posted at fedora forum a few days back but have no replies despite many views. Sorry for reposting here)

Regards,
Raju V.K.
Sounds like i could be a permissions problem. Are there any X-related files or directories (including hidden files) in the user's home directory that are owned by root? Is the user's home directory owned by root? Make sure the user owns everything in his/her home directory
 
Old 10-15-2009, 01:57 AM   #6
rajuvk
LQ Newbie
 
Registered: Feb 2007
Location: Kerala, India
Distribution: FC10, Ubuntu 8.04
Posts: 14

Original Poster
Rep: Reputation: 1
This is the first time I hear this comment. The X window was automatic and I have not done any thing any where to get the x window for the root user.
On the contrary in ubuntu linux the statement is correct and the root user will not get x window. I have to use the terminal for doing root tasks.
Normally I am not doing any hacking, but doing some tweeking on xorg.conf when installing on PCs with intel motherboards. This machine has an ATI RAGE XL card and did not caused any problem during installation.


BTW, is it advisable to upgrade to FC11 on a runnig server ( apache / Mysql serving an intranet) ?


Regards,
Raju


Quote:
Originally Posted by John VV View Post
my question is that THERE SHOULD be a very big problem starting x and gnome AS ROOT in fedora 10 .without hacking gdm you should NOT be able to run x AS ROOT.

but your problem is the opposite

this could be one of the "unexpected consequences" of the gdm hack to get root to run X
there are ALL kinds of problems form using the hack and MANY warnings are given

PS. you do know that fedora 10 hits End of Life in about 60 days
time to install fedora 11 or in a month install fedora 12.
 
Old 10-15-2009, 02:08 AM   #7
William (Dthdealer)
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Debian Testing
Posts: 99
Blog Entries: 39

Rep: Reputation: 19
(theorey) Gnome may require root access as part of its main functionality. GDM is run as root and so Gnome does to, having shutdown and reboot powers.

Try installing another window manager that is small and designed to work from your .xinitc file (eg WindowMaker ) and then start X. If it works then Gnome is simply power-hungy and wants/needs root access to run.

Finally, check what groups are availabe on your system. The user may need to be in a 'xorg' or 'video' group.
 
Old 10-15-2009, 02:33 AM   #8
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 5.4, Mac OS 10.4 (tiger)
Posts: 1,005

Rep: Reputation: 79
Quote:
Originally Posted by rajuvk View Post
BTW, is it advisable to upgrade to FC11 on a runnig server ( apache / Mysql serving an intranet) ?
During the least critical time possible, yes. FC10 is near end-of-life. It's probably more advisable to go FC10 -> FC11 -> FC12 and getting fully update for near on another year. FC is not meant for long life-spans as it's meant as a Desktop OS rather then a Server OS.
 
Old 10-15-2009, 02:36 AM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
in fedora 9 there was a nag window asking if you REALLY wanted to login as root with the gui
in fedora 10 that login was disabled .The same goes for fedora 11 and 12

gdm will NOT allow booting into x as root.
KDM will allow that , and that ( kdm) is what i use to start Gnome.
that is why i was questioning that

you seam to have the opposite of this .

by chance was this server running fedora 8 and then it was "upgraded" using the "yum upgrade " option ?
 
Old 10-15-2009, 03:14 AM   #10
rajuvk
LQ Newbie
 
Registered: Feb 2007
Location: Kerala, India
Distribution: FC10, Ubuntu 8.04
Posts: 14

Original Poster
Rep: Reputation: 1
Solved

After trying to start x using the startx command, the following error lines are found in the xorg.log repeatedly:

(EE) Error compiling keymap (server-0)
(EE) XKB: Couldn't compile keymap
(WW) Couldn't load XKB keymap, falling back to pre-XKB keymap


On screen the following error also was noted:

mkdtemp: private socket dir: permission denied.


following this up, I made the /tmp writable for all.
THIS SOLVED THE PROBLEM. Now the X window is available for all users.

THanks for all the help extended.

Regards,
Raju
 
Old 10-15-2009, 03:23 AM   #11
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 5.4, Mac OS 10.4 (tiger)
Posts: 1,005

Rep: Reputation: 79
Ah /tmp, should be writable for all users, however I'd advise making sure it's set as noexec, nosuid and nodev.
 
Old 10-15-2009, 05:24 AM   #12
mickza
Member
 
Registered: Mar 2005
Location: South Africa
Distribution: Centos, Fedora, Ubuntu desktop, IPCop
Posts: 168

Rep: Reputation: 33
Re root on the GUI on later versions of Fedora.

root is only blocked when /etc/inittab is set to runlevel 5 - boot thru to GUI. If you boot to runlevel 3, CLI - the usual server setting, you can login as root and then use startx to get to the GUI.
 
Old 10-15-2009, 01:04 PM   #13
rajuvk
LQ Newbie
 
Registered: Feb 2007
Location: Kerala, India
Distribution: FC10, Ubuntu 8.04
Posts: 14

Original Poster
Rep: Reputation: 1
Then what is best distribution for a server ?. I am using FC10 because I am familiar with ( not an expert yet) from the days of RH 5 or 6). I also used ubuntu, but that too is a desktop distro.
My main usage of the server is as an intranet server catering to about 30 PCs in my office.( apache / PHP/ MySQL).
Server is dual processor intel Xeon 2.8 GHz with 2GB RAM).
As there is plenty of computing power remaining unused, I recently set up a terminal server to cater some of the older PCs.


Regards,
Raju

Quote:
Originally Posted by r3sistance View Post
FC is not meant for long life-spans as it's meant as a Desktop OS rather then a Server OS.
 
Old 10-15-2009, 01:12 PM   #14
rajuvk
LQ Newbie
 
Registered: Feb 2007
Location: Kerala, India
Distribution: FC10, Ubuntu 8.04
Posts: 14

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by John VV View Post

gdm will NOT allow booting into x as root.
you seam to have the opposite of this .

by chance was this server running fedora 8 and then it was "upgraded" using the "yum upgrade " option ?
Whatever others experiances are, I am getting the x window from the beginning. The installation was a clean install, as the previous one was RH9.
As pointed out by micza, I used both settings, that is booting in to level 5 ( in the biginning) with graphic login and level 3 (present setup) and using startx to start x window. There was no warning like in earlier versions.
 
Old 10-15-2009, 02:35 PM   #15
usdanskys
LQ Newbie
 
Registered: Sep 2003
Distribution: Fedora, Ubuntu, Puppy
Posts: 17

Rep: Reputation: 1
Quote:
Originally Posted by rajuvk View Post
Then what is best distribution for a server ?. I am using FC10 because I am familiar with ( not an expert yet) from the days of RH 5 or 6). I also used ubuntu, but that too is a desktop distro.
My main usage of the server is as an intranet server catering to about 30 PCs in my office.( apache / PHP/ MySQL).
Server is dual processor intel Xeon 2.8 GHz with 2GB RAM).
As there is plenty of computing power remaining unused, I recently set up a terminal server to cater some of the older PCs.


Regards,
Raju
CentOS would be a better choice than Fedora. CentOS is based on RHEL, so it's not as bleeding edge and mutable as Fedora.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Root Session in FC10 - can't login in GUI (runlevel 5) stefanolima Fedora 10 07-12-2010 06:10 AM
Unable to start any window managers as user (fine as root) Pscylo Slackware 2 04-12-2009 01:07 PM
Want FC10 thumbdrive boot to ask for login user, not go in as liveruser automatically ericcarlson Red Hat 1 12-29-2008 08:24 PM
switch to user installed window manager without root jaddison Linux - Software 13 04-13-2006 08:23 PM
root-tail working only in rootGUI. window id option in user mode does not solve issue Emmanuel_uk Linux - Newbie 3 11-16-2005 02:04 AM


All times are GMT -5. The time now is 04:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration