Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] org.freedesktop.portal.Screenshot portal does not exist when using PAM with fprintd or modified greetd #960

Open
MartianInGreen opened this issue Oct 26, 2024 · 1 comment

Comments

@MartianInGreen
Copy link

When using a system with PAM (and fprintd) enabled org.freedesktop.portal.Screenshot portal does not exist.

Originally stemming from pop-os/cosmic-screenshot#68 I think this is most likely a cosmic-comp issue.

This is regardless of the actual login method used for first login, so happens both when login in with a fingerprint and password as long as the option to login with a fingerprint is enabled (but failed).

This might also be related somehow to the fact that I don't thing cosmic-greeter is handling finger print auth correctly? On first login there is just a confirm button you have to press and hold your finger on the fingerprint reader and pray it works.

PAM configuration (at /etc/pam.d/cosmic-greeter)

# Account management.
account required /nix/store/m5mhqggiq2pgq0q92pw8lwzilk08kary-linux-pam-1.6.1/lib/security/pam_unix.so # unix (order 10900)

# Authentication management.
auth sufficient /nix/store/znz29vh4d4a3vswpzkh4v7izz28g18m6-fprintd-1.94.3/lib/security/pam_fprintd.so # fprintd (order 11400)
auth sufficient /nix/store/m5mhqggiq2pgq0q92pw8lwzilk08kary-linux-pam-1.6.1/lib/security/pam_unix.so likeauth try_first_pass # unix (order 11600)
auth required /nix/store/m5mhqggiq2pgq0q92pw8lwzilk08kary-linux-pam-1.6.1/lib/security/pam_deny.so # deny (order 12400)

# Password management.
password sufficient /nix/store/m5mhqggiq2pgq0q92pw8lwzilk08kary-linux-pam-1.6.1/lib/security/pam_unix.so nullok yescrypt # unix (order 10200)

# Session management.
session required /nix/store/m5mhqggiq2pgq0q92pw8lwzilk08kary-linux-pam-1.6.1/lib/security/pam_env.so conffile=/etc/pam/environment readenv=0 # env (order 10100)
session required /nix/store/m5mhqggiq2pgq0q92pw8lwzilk08kary-linux-pam-1.6.1/lib/security/pam_unix.so # unix (order 10200)
session required /nix/store/m5mhqggiq2pgq0q92pw8lwzilk08kary-linux-pam-1.6.1/lib/security/pam_limits.so conf=/nix/store/d5jz0d6fnf0v2gz6hzhy290lsmk1ggcj-limits.conf # limits (order 12200)
@Drakulix
Copy link
Member

Honestly sounds more like an xdg-desktop-portal-cosmic bug. Ping @ids1024 any idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants