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

redis: Not a user managed by systemd-homed: No home for user redis known #1821

Open
sergey-safarov opened this issue Nov 20, 2022 · 3 comments

Comments

@sergey-safarov
Copy link

I use Fedora 37 core dist.
When I configured Redis resource then I can see failed systemd resource for use for redis user home directory initialization.

[root@wc-0 ~]# systemctl status [email protected]
× [email protected] - User Manager for UID 974
     Loaded: loaded (/usr/lib/systemd/system/[email protected]; static)
     Active: failed (Result: exit-code) since Sun 2022-11-20 03:31:42 UTC; 11min ago
       Docs: man:[email protected](5)
    Process: 1430433 ExecStart=/usr/lib/systemd/systemd --user (code=exited, status=224/PAM)
   Main PID: 1430433 (code=exited, status=224/PAM)
        CPU: 247ms

Nov 20 03:31:42 wc-0.sbc.la.nga911.com systemd[1]: Starting [email protected] - User Manager for UID 974...
Nov 20 03:31:42 wc-0.sbc.la.nga911.com systemd[1430433]: pam_systemd_home(systemd-user:account): Not a user managed by systemd-homed: No home for user redis known
Nov 20 03:31:42 wc-0.sbc.la.nga911.com systemd[1430433]: PAM failed: Authentication service cannot retrieve authentication info
Nov 20 03:31:42 wc-0.sbc.la.nga911.com systemd[1430433]: [email protected]: Failed to set up PAM session: Operation not permitted
Nov 20 03:31:42 wc-0.sbc.la.nga911.com systemd[1430433]: [email protected]: Failed at step PAM spawning /usr/lib/systemd/systemd: Operation not permitted
Nov 20 03:31:42 wc-0.sbc.la.nga911.com systemd[1]: [email protected]: Main process exited, code=exited, status=224/PAM
Nov 20 03:31:42 wc-0.sbc.la.nga911.com systemd[1]: [email protected]: Failed with result 'exit-code'.
Nov 20 03:31:42 wc-0.sbc.la.nga911.com systemd[1]: Failed to start [email protected] - User Manager for UID 974.

And user info

[root@wc-0 ~]# getent passwd redis
redis:x:974:974:Redis Database Server:/var/lib/redis:/sbin/nologin
@oalbrigt
Copy link
Contributor

Does /var/lib/redis exist, and is it owned by the redis user?

@sergey-safarov
Copy link
Author

yes it is

[root@bcf-0 ~]# ls -dl  /var/lib/redis
drwxr-x---. 2 redis redis 22 Oct 27 14:27 /var/lib/redis
[root@bcf-0 ~]# ls -l  /var/lib/redis
total 4
-rw-r--r--. 1 redis redis 521 Oct 27 14:27 dump.rdb

@oalbrigt
Copy link
Contributor

Is the user present in /etc/shadow?

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