Re: [gentoo-user] X11 fails to start up after elogind emerge

2020-10-26 Thread Steven Lembark
On Fri, 23 Oct 2020 13:48:53 +0200
netfab  wrote:

> Try to reemerge sys-libs/pam and sys-auth/pambase, and update any
> pam-related configuration :
> 
>   https://forums.gentoo.org/viewtopic-t-1116632.html


Checking /etc/pam.d/system-auth:

authrequiredpam_env.so
authrequiredpam_unix.so try_first_pass likeauth nullok
authoptionalpam_permit.so
authrequiredpam_faillock.so preauth
authsufficient  pam_unix.so nullok try_first_pass
auth[default=die]   pam_faillock.so authfail
account requiredpam_unix.so
account optionalpam_permit.so
account requiredpam_faillock.so
passwordrequiredpam_passwdqc.so 
config=/etc/security/passwdqc.conf
passwordrequiredpam_unix.so try_first_pass use_authtok 
nullok sha512 shadow
passwordoptionalpam_permit.so
-sessionoptionalpam_libcap.so
session requiredpam_limits.so
session requiredpam_env.so
session requiredpam_unix.so
session optionalpam_permit.so
-sessionoptionalpam_elogind.so

it is there, I don't think the posisiton (last) is an issue.

dbus & elogind are both running:

$ ps aux | grep dbus
message+  1294  0.0  0.0   3952  2376 ?Ss   09:19   0:00 
/usr/bin/dbus-daemon --system
root  1323  0.0  0.0   3880  3136 ?S09:19   0:00 elogind-daemon

One odd thing: If I log in with ssh in then "loginctl list" shows
my session as:

SESSION UID  USER SEAT TTY
c2  1024 lembark   pts/0

i.e., allocated pts but no "seat". It does not show anything for
the console logins via root or my userid. Running "loginctl list"
as myself or su gets nothing with only console logins. 

The problem may be here:

# loginctl user-status;
Could not get properties: Is a directory.

Q: Anyone know what the path checked for user-status would be?

Looking at the strace output everything opened was ENOENT or a 
symlink/file (vs. directory) (see paste, below).

Running "loginctl user-status" in a session opened by ssh gets me:

$ loginctl user-status;
lembark (1024)
   Since: Mon 2020-10-26 09:45:43 CDT; 7s ago
   State: active
Sessions: *c3
  Linger: no
Unit: user-1024.slice
(ins)lembark@duke:~ $

logind seems to be running, just not for console sessins

Any suggestions appreciated.


emerge-info:
Xorg.0.log: 
strace loginctl:

-- 
Steven Lembark
Workhorse Computing
lemb...@wrkhors.com
+1 888 359 3508



Re: [gentoo-user] X11 fails to start up after elogind emerge

2020-10-23 Thread netfab


Hi,

Try to reemerge sys-libs/pam and sys-auth/pambase, and update any
pam-related configuration :

https://forums.gentoo.org/viewtopic-t-1116632.html





[gentoo-user] X11 fails to start up after elogind emerge

2020-10-22 Thread Steven Lembark


Starting with:

<2020-04-14  Desktop profile switching USE default to elogind>


I've updated my USE with:

elogind -consolekit -systemd

Did an "emerge --update --changed-use @world", rebooted, logged
in, had problems starting X11, did an "emerge @x11-module-rebuild",
reboot, login, failed starting X11, did an "emerge @world" [which
succeeded, strangely enough], reboot, login, failed starting X11.

At this point I reboot, log in and validate the elogind but get:

$ logincel user-status;
Could not get properties: Is a directory

Using strace shows the last open was looking at /proc/self/stat, 
which most definately is a file. The last thing logind was doing
is a ppoll & recvmsg with the nastygram:



Another thing is that using "startx", Xorg.log includes the line:

systemd-logind: logind integration requires -keeptty and 
-keeptty was not provided, disabling logind integration.

Not sure if this is related to the properties error or something
else blowing up.

emerge --info:



emerge --verbose --info:



Running startx as SU does not solve the issue, the user is already
in tty and input groups (i.e., has access to /dev/tty* and 
/dev/input/{event,mouse}*). 

Q: Any suggestions on what I might do to get X11 starting again?

Thanks

-- 
Steven Lembark
Workhorse Computing
lemb...@wrkhors.com
+1 888 359 3508