Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[CLOSED/HELD] Xorg wihout PAM?
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
Ari_archer
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2021
Posts: 128
Location: Lithuania

PostPosted: Sun Dec 19, 2021 9:34 pm    Post subject: [CLOSED/HELD] Xorg wihout PAM? Reply with quote

Hello, I want to compile sys-apps/shadow without PAM support
because I find it useless in a non-enterprise single-user environment
and it's quite slow when trying to do work and you get locked out and stuff...
I was wondering if I can do that, if I have pam xorg starts up fine with no errors
using startx and dwm, but if I compile sys-apps/shadow with USE=-pam and reboot
it fails to start.

If you care about the log: https://pastebin.com/C5ZCqxhj
And the services I have running: https://pastebin.com/92J9Pz50

Thanks for anyone answering.
_________________
regards,
ari


Last edited by Ari_archer on Sun Dec 26, 2021 2:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
Ari_archer
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2021
Posts: 128
Location: Lithuania

PostPosted: Sun Dec 19, 2021 11:16 pm    Post subject: More info Reply with quote

More info:
- I tried disabling udev and getting minimal install, could not do it because it's required by xf86-video-intel which I need
- I am in the video group
_________________
regards,
ari
Back to top
View user's profile Send private message
AJM
Apprentice
Apprentice


Joined: 25 Sep 2002
Posts: 189
Location: Aberdeen, Scotland

PostPosted: Mon Dec 20, 2021 3:06 pm    Post subject: Reply with quote

Code:
16.948] (EE) AIGLX error: dlopen of /usr/lib64/dri/i965_dri.so failed (/usr/lib64/dri/i965_dri.so: cannot open shared object file: No such file or directory)


Looks like something that needs to be addressed...
Back to top
View user's profile Send private message
tld
Veteran
Veteran


Joined: 09 Dec 2003
Posts: 1812

PostPosted: Mon Dec 20, 2021 6:23 pm    Post subject: Reply with quote

I'm using Xorg without PAM without any problems, however I also have the suid USE enabled for xorg-server instead of using elogind, which probably affects that one.

Tom
Back to top
View user's profile Send private message
Ari_archer
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2021
Posts: 128
Location: Lithuania

PostPosted: Wed Dec 22, 2021 3:21 pm    Post subject: Reply with quote

tld wrote:
I'm using Xorg without PAM without any problems, however I also have the suid USE enabled for xorg-server instead of using elogind, which probably affects that one.

Tom


Isn't USE=suid dangerous and not recomended?
_________________
regards,
ari
Back to top
View user's profile Send private message
Ari_archer
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2021
Posts: 128
Location: Lithuania

PostPosted: Wed Dec 22, 2021 3:23 pm    Post subject: Reply with quote

AJM wrote:
Code:
16.948] (EE) AIGLX error: dlopen of /usr/lib64/dri/i965_dri.so failed (/usr/lib64/dri/i965_dri.so: cannot open shared object file: No such file or directory)


Looks like something that needs to be addressed...


I have xf86-video-intel installed, do I need anything else?
_________________
regards,
ari
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1581

PostPosted: Wed Dec 22, 2021 3:27 pm    Post subject: Reply with quote

Ari_archer wrote:
AJM wrote:
Code:
16.948] (EE) AIGLX error: dlopen of /usr/lib64/dri/i965_dri.so failed (/usr/lib64/dri/i965_dri.so: cannot open shared object file: No such file or directory)


Looks like something that needs to be addressed...


I have xf86-video-intel installed, do I need anything else?


You need to add i965 to VIDEO_CARDS in make.conf then do a full update so mesa builds the DRI library for you.

See the wiki page for more info
Back to top
View user's profile Send private message
Ari_archer
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2021
Posts: 128
Location: Lithuania

PostPosted: Wed Dec 22, 2021 3:29 pm    Post subject: Reply with quote

grknight wrote:
Ari_archer wrote:
AJM wrote:
Code:
16.948] (EE) AIGLX error: dlopen of /usr/lib64/dri/i965_dri.so failed (/usr/lib64/dri/i965_dri.so: cannot open shared object file: No such file or directory)


Looks like something that needs to be addressed...


I have xf86-video-intel installed, do I need anything else?


You need to add i965 to VIDEO_CARDS in make.conf then do a full update so mesa builds the DRI library for you.

See the wiki page for more info


I have, https://github.com/TruncatedDinosour/dotfiles-cleaned/blob/gentoo/dotfiles/portage/portage/make.conf#L39 but wait, I'm recompiling xorg-server with USE=suid to tru
_________________
regards,
ari
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1581

PostPosted: Wed Dec 22, 2021 3:31 pm    Post subject: Reply with quote

Ari_archer wrote:
grknight wrote:
Ari_archer wrote:
AJM wrote:
Code:
16.948] (EE) AIGLX error: dlopen of /usr/lib64/dri/i965_dri.so failed (/usr/lib64/dri/i965_dri.so: cannot open shared object file: No such file or directory)


Looks like something that needs to be addressed...


I have xf86-video-intel installed, do I need anything else?


You need to add i965 to VIDEO_CARDS in make.conf then do a full update so mesa builds the DRI library for you.

See the wiki page for more info


I have, https://github.com/TruncatedDinosour/dotfiles-cleaned/blob/gentoo/dotfiles/portage/portage/make.conf#L39 but wait, I'm recompiling xorg-server with USE=suid to tru


Code:
VIDEO_CARDS="intel i915 iris"
should really be
Code:
VIDEO_CARDS="intel i965 iris"
Back to top
View user's profile Send private message
Ari_archer
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2021
Posts: 128
Location: Lithuania

PostPosted: Wed Dec 22, 2021 3:36 pm    Post subject: Reply with quote

tld wrote:
I'm using Xorg without PAM without any problems, however I also have the suid USE enabled for xorg-server instead of using elogind, which probably affects that one.

Tom


Did not work, actually failed to start for me because I also compiled without PAM
_________________
regards,
ari
Back to top
View user's profile Send private message
Ari_archer
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2021
Posts: 128
Location: Lithuania

PostPosted: Wed Dec 22, 2021 3:38 pm    Post subject: Reply with quote

grknight wrote:
Ari_archer wrote:
grknight wrote:
Ari_archer wrote:
AJM wrote:
Code:
16.948] (EE) AIGLX error: dlopen of /usr/lib64/dri/i965_dri.so failed (/usr/lib64/dri/i965_dri.so: cannot open shared object file: No such file or directory)


Looks like something that needs to be addressed...


I have xf86-video-intel installed, do I need anything else?


You need to add i965 to VIDEO_CARDS in make.conf then do a full update so mesa builds the DRI library for you.

See the wiki page for more info


I have, https://github.com/TruncatedDinosour/dotfiles-cleaned/blob/gentoo/dotfiles/portage/portage/make.conf#L39 but wait, I'm recompiling xorg-server with USE=suid to tru


Code:
VIDEO_CARDS="intel i915 iris"
should really be
Code:
VIDEO_CARDS="intel i965 iris"


lemme try

Code:

ari@ari-gentoo ~ % sudo emerge -uDUN --with-bdeps=y @world
[ebuild   R   ] x11-base/xorg-drivers-1.20-r2
[ebuild   R   ] media-libs/mesa-21.2.6

Would you like to merge these packages? [Yes/No]


This one will probably take a bit :) I'll be back
_________________
regards,
ari
Back to top
View user's profile Send private message
Ari_archer
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2021
Posts: 128
Location: Lithuania

PostPosted: Wed Dec 22, 2021 4:00 pm    Post subject: Reply with quote

grknight wrote:
Ari_archer wrote:
grknight wrote:
Ari_archer wrote:
AJM wrote:
Code:
16.948] (EE) AIGLX error: dlopen of /usr/lib64/dri/i965_dri.so failed (/usr/lib64/dri/i965_dri.so: cannot open shared object file: No such file or directory)


Looks like something that needs to be addressed...


I have xf86-video-intel installed, do I need anything else?


You need to add i965 to VIDEO_CARDS in make.conf then do a full update so mesa builds the DRI library for you.

See the wiki page for more info


I have, https://github.com/TruncatedDinosour/dotfiles-cleaned/blob/gentoo/dotfiles/portage/portage/make.conf#L39 but wait, I'm recompiling xorg-server with USE=suid to tru


Code:
VIDEO_CARDS="intel i915 iris"
should really be
Code:
VIDEO_CARDS="intel i965 iris"


After recompiling with that set it worked, but after recompiling shadow with no pam it did not start, now I still have PAM.

https://pastebin.com/tghGg6CT

Wait a minute

Code:

[    19.053] (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)


Let me try putting myself into the tty group
_________________
regards,
ari
Back to top
View user's profile Send private message
Ari_archer
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2021
Posts: 128
Location: Lithuania

PostPosted: Wed Dec 22, 2021 4:07 pm    Post subject: Reply with quote

Ari_archer wrote:
grknight wrote:
Ari_archer wrote:
grknight wrote:
Ari_archer wrote:
AJM wrote:
Code:
16.948] (EE) AIGLX error: dlopen of /usr/lib64/dri/i965_dri.so failed (/usr/lib64/dri/i965_dri.so: cannot open shared object file: No such file or directory)


Looks like something that needs to be addressed...


I have xf86-video-intel installed, do I need anything else?


You need to add i965 to VIDEO_CARDS in make.conf then do a full update so mesa builds the DRI library for you.

See the wiki page for more info


I have, https://github.com/TruncatedDinosour/dotfiles-cleaned/blob/gentoo/dotfiles/portage/portage/make.conf#L39 but wait, I'm recompiling xorg-server with USE=suid to tru


Code:
VIDEO_CARDS="intel i915 iris"
should really be
Code:
VIDEO_CARDS="intel i965 iris"


After recompiling with that set it worked, but after recompiling shadow with no pam it did not start, now I still have PAM.

https://pastebin.com/tghGg6CT

Wait a minute

Code:

[    19.053] (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)


Let me try putting myself into the tty group



Now this happens

https://pastebin.com/EbpMWRVS

main part probably being

Code:

[    18.868] (EE) xf86OpenConsole: Cannot open virtual console 7 (Permission denied)


which led me to this

https://github.com/nullgemm/ly/issues/248

which I am about to test
_________________
regards,
ari
Back to top
View user's profile Send private message
Ari_archer
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2021
Posts: 128
Location: Lithuania

PostPosted: Wed Dec 22, 2021 4:17 pm    Post subject: Reply with quote

Ari_archer wrote:
Ari_archer wrote:
grknight wrote:
Ari_archer wrote:
grknight wrote:
Ari_archer wrote:
AJM wrote:
Code:
16.948] (EE) AIGLX error: dlopen of /usr/lib64/dri/i965_dri.so failed (/usr/lib64/dri/i965_dri.so: cannot open shared object file: No such file or directory)


Looks like something that needs to be addressed...


I have xf86-video-intel installed, do I need anything else?


You need to add i965 to VIDEO_CARDS in make.conf then do a full update so mesa builds the DRI library for you.

See the wiki page for more info


I have, https://github.com/TruncatedDinosour/dotfiles-cleaned/blob/gentoo/dotfiles/portage/portage/make.conf#L39 but wait, I'm recompiling xorg-server with USE=suid to tru


Code:
VIDEO_CARDS="intel i915 iris"
should really be
Code:
VIDEO_CARDS="intel i965 iris"


After recompiling with that set it worked, but after recompiling shadow with no pam it did not start, now I still have PAM.

https://pastebin.com/tghGg6CT

Wait a minute

Code:

[    19.053] (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)


Let me try putting myself into the tty group



Now this happens

https://pastebin.com/EbpMWRVS

main part probably being

Code:

[    18.868] (EE) xf86OpenConsole: Cannot open virtual console 7 (Permission denied)


which led me to this

https://github.com/nullgemm/ly/issues/248

which I am about to test



Okay, it kinda worked, but not a solution.

First I recompiled shadow with no PAM support,
still go the same error, then tried taking ownership of /dev/tty7 (with root privelages)
and xorg did start, but I could not use an input and alsa was dying
so I force shut down.


Now I get this: https://pastebin.com/dLA3g1ZU


Not sure what to do now
_________________
regards,
ari
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3875

PostPosted: Wed Dec 22, 2021 4:52 pm    Post subject: Reply with quote

I have a universal USE="-pam" in make.conf in one of my systems and i have no problem whatsoever starting Xorg.
Plz make sure you have either USE="suid" xorg or elogind.
Also if I run
Code:

equery h pam


i get
Code:

eqh pam
 * Searching for USE flag pam ...
[IP-] [  ] app-admin/sudo-1.9.8_p2:0
[IP-] [  ] dev-libs/cyrus-sasl-2.1.27-r6:2
[IP-] [  ] net-mail/mailbase-1.6-r1:0
[IP-] [  ] net-misc/openssh-8.7_p1-r3:0
[IP-] [  ] net-print/cups-2.3.3_p2-r3:0
[IP-] [  ] sys-apps/kbd-2.4.0:0
[IP-] [  ] sys-apps/openrc-0.44.10:0
[IP-] [  ] sys-apps/shadow-4.9-r3:0
[IP-] [  ] sys-apps/util-linux-2.37.2-r1:0
[IP-] [  ] sys-libs/libcap-2.49-r1:0
[IP-] [  ] sys-process/cronie-1.5.7:0
[IP-] [  ] xfce-extra/xfce4-screensaver-4.16.0:0


so maybe pamless "shadow" is not enough.
Maybe you need USE="-pam" for util-linux and/or libcap and/or openrc.
Maybe related somehow.
Just a wild guess.......
_________________
:)
Back to top
View user's profile Send private message
Ari_archer
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2021
Posts: 128
Location: Lithuania

PostPosted: Wed Dec 22, 2021 4:59 pm    Post subject: Reply with quote

alamahant wrote:
I have a universal USE="-pam" in make.conf in one of my systems and i have no problem whatsoever starting Xorg.
Plz make sure you have either USE="suid" xorg or elogind.
Also if I run
Code:

equery h pam


i get
Code:

eqh pam
 * Searching for USE flag pam ...
[IP-] [  ] app-admin/sudo-1.9.8_p2:0
[IP-] [  ] dev-libs/cyrus-sasl-2.1.27-r6:2
[IP-] [  ] net-mail/mailbase-1.6-r1:0
[IP-] [  ] net-misc/openssh-8.7_p1-r3:0
[IP-] [  ] net-print/cups-2.3.3_p2-r3:0
[IP-] [  ] sys-apps/kbd-2.4.0:0
[IP-] [  ] sys-apps/openrc-0.44.10:0
[IP-] [  ] sys-apps/shadow-4.9-r3:0
[IP-] [  ] sys-apps/util-linux-2.37.2-r1:0
[IP-] [  ] sys-libs/libcap-2.49-r1:0
[IP-] [  ] sys-process/cronie-1.5.7:0
[IP-] [  ] xfce-extra/xfce4-screensaver-4.16.0:0


so maybe pamless "shadow" is not enough.
Maybe you need USE="-pam" for util-linux and/or libcap and/or openrc.
Maybe related somehow.
Just a wild guess.......


Sure, let me try, also isn't it dangerous to have SUID on xorg and/or elogind?
_________________
regards,
ari
Back to top
View user's profile Send private message
Ari_archer
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2021
Posts: 128
Location: Lithuania

PostPosted: Wed Dec 22, 2021 6:11 pm    Post subject: Reply with quote

alamahant wrote:
I have a universal USE="-pam" in make.conf in one of my systems and i have no problem whatsoever starting Xorg.
Plz make sure you have either USE="suid" xorg or elogind.
Also if I run
Code:

equery h pam


i get
Code:

eqh pam
 * Searching for USE flag pam ...
[IP-] [  ] app-admin/sudo-1.9.8_p2:0
[IP-] [  ] dev-libs/cyrus-sasl-2.1.27-r6:2
[IP-] [  ] net-mail/mailbase-1.6-r1:0
[IP-] [  ] net-misc/openssh-8.7_p1-r3:0
[IP-] [  ] net-print/cups-2.3.3_p2-r3:0
[IP-] [  ] sys-apps/kbd-2.4.0:0
[IP-] [  ] sys-apps/openrc-0.44.10:0
[IP-] [  ] sys-apps/shadow-4.9-r3:0
[IP-] [  ] sys-apps/util-linux-2.37.2-r1:0
[IP-] [  ] sys-libs/libcap-2.49-r1:0
[IP-] [  ] sys-process/cronie-1.5.7:0
[IP-] [  ] xfce-extra/xfce4-screensaver-4.16.0:0


so maybe pamless "shadow" is not enough.
Maybe you need USE="-pam" for util-linux and/or libcap and/or openrc.
Maybe related somehow.
Just a wild guess.......



Did not work, not only that I got conflicts, back to USE=pam

https://pastebin.com/Qc4G5Sa1
_________________
regards,
ari
Back to top
View user's profile Send private message
Ari_archer
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2021
Posts: 128
Location: Lithuania

PostPosted: Wed Dec 22, 2021 7:55 pm    Post subject: Reply with quote

grknight wrote:
Ari_archer wrote:
grknight wrote:
Ari_archer wrote:
AJM wrote:
Code:
16.948] (EE) AIGLX error: dlopen of /usr/lib64/dri/i965_dri.so failed (/usr/lib64/dri/i965_dri.so: cannot open shared object file: No such file or directory)


Looks like something that needs to be addressed...


I have xf86-video-intel installed, do I need anything else?


You need to add i965 to VIDEO_CARDS in make.conf then do a full update so mesa builds the DRI library for you.

See the wiki page for more info


I have, https://github.com/TruncatedDinosour/dotfiles-cleaned/blob/gentoo/dotfiles/portage/portage/make.conf#L39 but wait, I'm recompiling xorg-server with USE=suid to tru


Code:
VIDEO_CARDS="intel i915 iris"
should really be
Code:
VIDEO_CARDS="intel i965 iris"


Had to revert this, my video did not work after upgrading kernels
_________________
regards,
ari
Back to top
View user's profile Send private message
Ari_archer
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2021
Posts: 128
Location: Lithuania

PostPosted: Wed Dec 22, 2021 8:00 pm    Post subject: Reply with quote

Okay, I will put this issue thread on hold for a bit, sorry.

I'm going to sleep for today and I will not have electricity tomorrow for the whole day or so.

Have a nice day :)
_________________
regards,
ari
Back to top
View user's profile Send private message
Ari_archer
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2021
Posts: 128
Location: Lithuania

PostPosted: Fri Dec 24, 2021 5:00 pm    Post subject: Reply with quote

Back :) Still haven't figured it out sadly
_________________
regards,
ari
Back to top
View user's profile Send private message
Ari_archer
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2021
Posts: 128
Location: Lithuania

PostPosted: Sun Dec 26, 2021 2:20 pm    Post subject: Reply with quote

Okay, I don't think it's possible with my current setup, tried everything i found, if I find anything
I will report nere
_________________
regards,
ari
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