You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 18, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 18, 2026. It is now read-only.
pam_unix(system-auth:account): setuid failed: Operation not permitted and other xsecurelock messages in journalctl after resuming from suspend #186
I have no issue whatsoever for now, it works as expected. After resuming from suspend, I can unlock my session with my user password just fine.
However, journalctl -u lock-screen-suspend-hibernate@.service always contains the following (in this case after suspending):
% journalctl -u lock-screen-suspend-hibernate@.servicesystemd[1]: Starting Lock screen before suspend/hibernate...systemd[1]: Started Lock screen before suspend/hibernate.xsecurelock[52239]: YYYY-MM-DDTHH:MM:SSZ 52239 xsecurelock: Someone overlapped the composite overlay window window. Undoing that.xsecurelock[52239]: YYYY-MM-DDTHH:MM:SSZ 52239 xsecurelock: Someone overlapped the background window. Undoing that.xsecurelock[52239]: YYYY-MM-DDTHH:MM:SSZ 52239 xsecurelock: MaybeRaiseWindow miss: something obscured my window 27262985 but I can't find it.authproto_pam[52559]: pam_unix(system-auth:account): setuid failed: Operation not permittedsystemd[1]: lock-screen-suspend-hibernate@xfzv.service: Deactivated successfully.
Just curious as to what could trigger these messages. Tried without Environment=XSECURELOCK_COMPOSITE_OBSCURER=0 (Picom user, I'm using it to avoid the "INCOMPATIBLE COMPOSITOR, PLEASE FIX!" text as suggested in Known Compatibility Issues but it doesn't make any difference.
Should I just ignore these considering everything works fine?
@xfzv I encountered the same "setuid failed: Operation not permitted" message but from xscreensaver. It doesn't look like related to xsecurelock but rather to linux-pam.
leave authproto_pam without setuid, but add 'quiet' to:
3.a. /etc/pam.d/system-auth account pam_unix line (will apply to everything)
3.b. to custom /etc/pam.d/xsecurelock (but in such case you might also remove it)
This is not pam problem per se, but rather configuration of your local system.
In Arch xscreensaver binary has suid bit set but "setuid failed: Operation not permitted" is logged as well. However, severity of the log record is "debug".
This is not pam problem per se, but rather configuration of your local system.
In Arch xscreensaver binary has suid bit set but "setuid failed: Operation not permitted" is logged as well. However, severity of the log record is "debug".
@dimich-dmb can you quote full line from logs? I would like to see which pam module is emitting this message.
if possible also content of /etc/pam.d/FILENAMEOFPAMMODULE would help.
In Arch xscreensaver binary has suid bit set but "setuid failed: Operation not permitted" is logged as well. However, severity of the log record is "debug".
Hm, seems I began to understand what's the problem. I was wrong about xscreensaver binary: it has no suid bit. xscreensaver-auth has, but PAM configured for xscreensaver.
You will not have error logs, but you will also loose checks (on xscreensaver unlock) if password is too old or account is expired/locked. If this is your own account, on (a guess) single user machine, where you have no reason to lock your account, go for it.
add 'quiet' to pam_unix.so to supress logging (only on account section)
try to find solution on xscreensaver -> this bug/problem of yours is not related to xsecurelock (the repo we're currently discussing it :) so you should report it there, not here. I suspect that this is not a simple chmod u+s solution, as I dont know architecture of xscreensaver, how it retains root creds etc.
@rdslw Thank you for detailed answer. However, I'm not looking for workaround to this "issue". I just wanted to point out that if two different applications using the same library produce the same error message from this library, likely the root cause should be sought in the library. Although, it's not always the case. Especially considering that we don't know severity of "setuid failed: Operation not permitted" from original issue description, since PAM produces the same message with different severities in slightly different cases.
Activity
dimich-dmb commentedon Oct 19, 2025
@xfzv I encountered the same "setuid failed: Operation not permitted" message but from xscreensaver. It doesn't look like related to xsecurelock but rather to linux-pam.
rdslw commentedon Oct 22, 2025
This is not pam problem per se, but rather configuration of your local system.
You have few solutions:
3.a. /etc/pam.d/system-auth account pam_unix line (will apply to everything)
3.b. to custom /etc/pam.d/xsecurelock (but in such case you might also remove it)
Full explanation is here: https://chatgpt.com/share/68f8e08c-bd04-8011-915c-2b7567fc9e6a
dimich-dmb commentedon Oct 23, 2025
In Arch xscreensaver binary has suid bit set but "setuid failed: Operation not permitted" is logged as well. However, severity of the log record is "debug".
rdslw commentedon Oct 23, 2025
@dimich-dmb can you quote full line from logs? I would like to see which pam module is emitting this message.
if possible also content of /etc/pam.d/FILENAMEOFPAMMODULE would help.
dimich-dmb commentedon Oct 23, 2025
Appears after entering password to unlock.
/etc/pam.d/xscreensaver:
/etc/pam.d/system-auth:
dimich-dmb commentedon Oct 23, 2025
Hm, seems I began to understand what's the problem. I was wrong about
xscreensaverbinary: it has no suid bit.xscreensaver-authhas, but PAM configured forxscreensaver.rdslw commentedon Oct 23, 2025
@dimich-dmb you have a few options to solve it:
You will not have error logs, but you will also loose checks (on xscreensaver unlock) if password is too old or account is expired/locked. If this is your own account, on (a guess) single user machine, where you have no reason to lock your account, go for it.
add 'quiet' to pam_unix.so to supress logging (only on account section)
try to find solution on xscreensaver -> this bug/problem of yours is not related to xsecurelock (the repo we're currently discussing it :) so you should report it there, not here. I suspect that this is not a simple
chmod u+ssolution, as I dont know architecture of xscreensaver, how it retains root creds etc.dimich-dmb commentedon Oct 24, 2025
@rdslw Thank you for detailed answer. However, I'm not looking for workaround to this "issue". I just wanted to point out that if two different applications using the same library produce the same error message from this library, likely the root cause should be sought in the library. Although, it's not always the case. Especially considering that we don't know severity of "setuid failed: Operation not permitted" from original issue description, since PAM produces the same message with different severities in slightly different cases.