View previous topic :: View next topic |
Author |
Message |
Anon240240 n00b
Joined: 12 Jan 2021 Posts: 5
|
Posted: Tue Jan 12, 2021 2:07 am Post subject: cant use startx while in non root user. |
|
|
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 |
|
|
Anon240240 n00b
Joined: 12 Jan 2021 Posts: 5
|
Posted: Tue Jan 12, 2021 2:23 am Post subject: |
|
|
i forgot to add something
xauth: file /home/anon/.Xauthoritf does not exist
shows up |
|
Back to top |
|
|
The Doctor Moderator
Joined: 27 Jul 2010 Posts: 2678
|
Posted: Tue Jan 12, 2021 6:22 am Post subject: |
|
|
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 |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21602
|
Posted: Tue Jan 12, 2021 4:39 pm Post subject: |
|
|
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 |
|
|
xylophone n00b
Joined: 25 Oct 2020 Posts: 5
|
Posted: Wed Jan 13, 2021 10:36 am Post subject: |
|
|
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 |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2716
|
Posted: Wed Jan 13, 2021 5:42 pm Post subject: |
|
|
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 |
|
|
|