Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
Distribution: Debian E, Vectorlinux 5.1std, Arch, Gentoo 2006.0
Posts: 576
Rep:
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
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.
Distribution: Debian E, Vectorlinux 5.1std, Arch, Gentoo 2006.0
Posts: 576
Rep:
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.