Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
can't to start x as regular user but works for root [SOLVED]
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
cornplayz256
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jun 2023
Posts: 107
Location: /dev/mmcblk0

PostPosted: Sun Jun 25, 2023 8:43 pm    Post subject: can't to start x as regular user but works for root [SOLVED] Reply with quote

hello, im new to this forum :mrgreen: , i finally installed gentoo and installed xorg and after some days i decided to create a user.
im unable to start x as regular user. when i run xinit or startx, it says connection refused. i have the elogind openrc service enabled and running. if i run it as root, it starts normally. my user is in the video group. is there a way to fix it?
Im on a samsung chromebook 4 booted with mrchromebox's rw legacy firmware. cpu is a Intel Celeron N4000. here is my uname -a output:
Code:
Linux gentoo-casta 6.1.31-gentoo-dist #1 SMP PREEMPT_DYNAMIC Tue May 30 19:18:29 -00 2023 x86_64 Intel(R) Celeron(R) N4000 CPU @ 1.10GHz GenuineIntel GNU/Linux

Any help is appreciated.
:)


Last edited by cornplayz256 on Sun Jun 25, 2023 11:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sun Jun 25, 2023 9:00 pm    Post subject: Reply with quote

Welcome to Gentoo Forums.
Either use a DM like lightdm etc or build xorg-server with USE="suid".
see plz
https://wiki.gentoo.org/wiki/Non_root_Xorg
_________________
:)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54393
Location: 56N 3W

PostPosted: Sun Jun 25, 2023 9:13 pm    Post subject: Reply with quote

cornplayz256,

Welcome to Gentoo,

What alamahant said.

If you look around your system you will have a file called Xorg.0.log, Probably somewhere in /home/cornplayz256/...
It is probably showing a Permission denied error.

Xorg needs to do some setup at the start as root, so you need to run Xorg suid, so it always runs as root or you use another package that runs as root to do the setup, then Xorg runs as cornplayz256.

Both ways work. Its a system design decision and you are the system designer, so you get to choose.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
cornplayz256
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jun 2023
Posts: 107
Location: /dev/mmcblk0

PostPosted: Sun Jun 25, 2023 11:25 pm    Post subject: Reply with quote

NeddySeagoon wrote:
cornplayz256,

Welcome to Gentoo,

What alamahant said.

If you look around your system you will have a file called Xorg.0.log, Probably somewhere in /home/cornplayz256/...
It is probably showing a Permission denied error.

Xorg needs to do some setup at the start as root, so you need to run Xorg suid, so it always runs as root or you use another package that runs as root to do the setup, then Xorg runs as cornplayz256.

Both ways work. Its a system design decision and you are the system designer, so you get to choose.


after installing slim with the use flags pam and branding and enabling the display manager it now works.
thank you
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