您尚未登录。

#1 2023-12-05 10:31:57

弯弓射小白
会员
注册时间: 2022-10-04
帖子: 92

pambase的问题

cat /etc/pam.d/system-login
...............
-session   optional   pam_systemd.so
-------------------------
cat /etc/pam.d/system-auth
.................
-account   [success=1 default=ignore]  pam_systemd_home.so
..........
-session   optional                    pam_systemd_home.so
..........
-password  [success=1 default=ignore]  pam_systemd_home.so

我想问下,这一句话前面加“-”是什么意思?是屏蔽还是啥?


风吹又日晒,自由又自在

离线

#2 2023-12-05 10:38:24

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,495
个人网站

Re: pambase的问题

man 5 pam.conf 说:

If the type value from the list above is prepended with a - character the PAM library will not log to the system log if it is not possible to load the module because it is missing in the system. This can be useful especially for modules which are not always installed on the system and are not required for correct authentication and authorization of the login session.

离线

#3 2023-12-05 10:50:15

弯弓射小白
会员
注册时间: 2022-10-04
帖子: 92

Re: pambase的问题

什么意思?


风吹又日晒,自由又自在

离线

#4 2023-12-05 11:05:51

弯弓射小白
会员
注册时间: 2022-10-04
帖子: 92

Re: pambase的问题

还有我每次登录的时候,在log中总会有提示:systemd-homed[774]: Activation failed: Required key not available,这是我哪里配置有错了?


风吹又日晒,自由又自在

离线

#5 2023-12-05 11:51:21

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,495
个人网站

Re: pambase的问题

不用 homed 是会报错的。

离线

#6 2023-12-05 12:51:41

弯弓射小白
会员
注册时间: 2022-10-04
帖子: 92

Re: pambase的问题

就按系统的配置不用管吗


风吹又日晒,自由又自在

离线

页脚