LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 04-15-2006, 05:13 AM   #1
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Rep: Reputation: 37
Can't start KDE/X as user | User can't switch to root


Okay,

I can start X and KDE as root but when I try to do that as a user I get the following

Code:
Fatal server error
can't move old log file ("/var/log/Xorg.0.log" to "/var/log/Xorg.0.log.old")
giving up
xinit: Connection refused (errno 111): unable to connect to X server
xinit: No such process (errno 3): unexpected signal 2
The above will come when I abort the starting with ctrl-C

Otherwise it tells something like:
Code:
_X11TransSocketINETConnect() can't get address for localhost:6000: Name or service not known

giving up
xinit: Invalid argument (errno 22): unable to connect to X server
xinit: No such process (errno 3): Server error

I haven't added anything to .xinitrc but I made the changes to rc.conf like displaymanager and enabling the Xsession.
User is added to following groups AFAIK audio,video,users,wheel

Any idea what's wrong? I'm using the KDE 3.5.2 on gentoo

edit: I tried to add "exec startkde" on .xinitrc but it didn't change things.

edit2: Okay, I added xdm to default run level so it started straight to KDM where I could login into KDE. Now the problem is that I can't switch to root from console. I know I need to be in the wheel group but I ran "gpasswd -a baa wheel" and "usermod -G wheel,audio,video,users baa" but I still can't use those. In KDE, when I try to exec something which requires root access it says "Su returned an error". Any idea how to fix?

Last edited by Zmyrgel; 04-15-2006 at 05:38 AM.
 
Old 04-15-2006, 05:41 AM   #2
anti.corp
Member
 
Registered: Nov 2005
Location: Copenhagen
Distribution: Debian E, Vectorlinux 5.1std, Arch, Gentoo 2006.0
Posts: 576

Rep: Reputation: 30
Hi,

You need to adjust your user accounts to be able to gain root privleges. Go to user & groups and set user privleges. I cant remember to menu in KDE (im using Gnome). But im sure that there is a GUI based interface for doing this.

Oh and offcourse you need login into KDE using root account, othervise you wont be able to gain access to users

Hope this helps you out.

regards
 
Old 04-15-2006, 05:56 AM   #3
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Original Poster
Rep: Reputation: 37
Okay, I started KDE as root and used KUser and checked that user is part of the correct groups and it should be able to login as to root. When I tried it with user, I couldn't do anything. All I get is authentication failure

I tried to delete the user and created a new user account with "useradd -m -G wheel,users,audio,video baa" but still can't use su or other things which require root priviliges.

Last edited by Zmyrgel; 04-15-2006 at 06:18 AM.
 
Old 04-15-2006, 08:37 AM   #4
anti.corp
Member
 
Registered: Nov 2005
Location: Copenhagen
Distribution: Debian E, Vectorlinux 5.1std, Arch, Gentoo 2006.0
Posts: 576

Rep: Reputation: 30
Hi again,

I think you need to add your user to the 'wheel group'.

Try this:
Code:
# usermod -G users,wheel username
This command adds your user to the wheel group.

Be aware: That the groups you are NOT specifying are removed. Meaning: If your user earlier belonged to 'audio' and you didnt add it to the above command line, then the user wont be in that group anymore. So make sure you get the groups you want your user attached to.

You will offcourse have the opportunity to add them later on.

regards
 
Old 04-15-2006, 09:00 AM   #5
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Original Poster
Rep: Reputation: 37
Okay, I got this solved. All problems where caused by my fstab which was slightly modified version from Knoppix LiveDVD. I deleted the users,exec lines from root partition and things are starting to work as they should.
 
Old 04-15-2006, 09:01 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You should change the suid bit of Xorg:
Code:
chmod 4755 /usr/X11R6/bin/Xorg
 
Old 04-15-2006, 09:51 AM   #7
anti.corp
Member
 
Registered: Nov 2005
Location: Copenhagen
Distribution: Debian E, Vectorlinux 5.1std, Arch, Gentoo 2006.0
Posts: 576

Rep: Reputation: 30
Glad you got things sorted out

Gentoo is really a good OS, once you get the hang of it
 
  


Reply



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
Fail to start KDE as USER satimis Red Hat 3 07-03-2004 10:00 PM
KDE 3.2 won't start as user now.... r3dhatter Linux - General 3 05-16-2004 11:26 PM
cannot start kde as a user in slackware andy753421 Linux - General 3 04-25-2004 08:45 PM
KDE 3.1 wont start at login, but only for one user nudeatom Mandriva 1 01-07-2004 04:26 PM
Normal user cannot start KDE - root can tagit Debian 1 12-26-2003 03:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:14 PM.

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
Open Source Consulting | Domain Registration