Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cant use startx while in non root user.
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Anon240240
n00b
n00b


Joined: 12 Jan 2021
Posts: 5

PostPosted: Tue Jan 12, 2021 2:07 am    Post subject: cant use startx while in non root user. Reply with quote

hi whenever i try to use startx when not in a root user it says that the server shut down unexpectadly. i created the user by doing user add -m username then usermod -a -G wheel users exampleusername. Is there something i messed up? if there are any files i need to paste please tell me. Thanks for any help.
Back to top
View user's profile Send private message
Anon240240
n00b
n00b


Joined: 12 Jan 2021
Posts: 5

PostPosted: Tue Jan 12, 2021 2:23 am    Post subject: Reply with quote

i forgot to add something

xauth: file /home/anon/.Xauthoritf does not exist

shows up
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2670

PostPosted: Tue Jan 12, 2021 6:22 am    Post subject: Reply with quote

Make sure that ~/.xinitrc either doesn't exist or specifies a window manager to run. You probably need to read this page.

You probably want to add your user to a few more groups like video and audio although I doubt that is the problem.

EDIT: A belated welcome to Gentoo. As a general rule, in future you should avoid replying to your own post because that removes it from the unanswered page. A lot of members check there first so it might cause your post to be missed.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 16936

PostPosted: Tue Jan 12, 2021 4:39 pm    Post subject: Reply with quote

Did you install Xorg server non-suid? If unsure, the answer is available from emerge --pretend --verbose x11-base/xorg-server. Are you using elogind? If yes, is elogind correctly configured? Please post the full output of the Xorg server log.
Back to top
View user's profile Send private message
xylophone
n00b
n00b


Joined: 25 Oct 2020
Posts: 5

PostPosted: Wed Jan 13, 2021 10:36 am    Post subject: Reply with quote

A recent emerge update seemingly changed my system to use elogind and caused permission errors with startx (unable to open /dev/tty0). Xorg ran with sudo and as root, but loginctl user-status returned no output.

I think I fixed it with rc-update add elogind boot, and a reboot.
Back to top
View user's profile Send private message
Ionen
Veteran
Veteran


Joined: 06 Dec 2018
Posts: 1780

PostPosted: Wed Jan 13, 2021 5:42 pm    Post subject: Reply with quote

USE="suid elogind" and USE="suid -elogind" have different meanings, the former installs a suid wrapper rather than make Xorg itself suid.

I don't use either, but the former likely requires elogind and/or system dbus already running to work, so yeah. In case of display managers, xdm script depends on dbus which in turn will start elogind without being in runlevels.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum