/etc/pam.d/system-auth文件中有错误的条目

0

【以下的问题经过翻译处理】 我们最近安装了AL2,发现/etc/pam.d/system-auth文件中有一个错误的条目。有问题的行如下(包含前导破折号):

-session optional pam_systemd.so

不确定如何继续解决这个问题?这会在某些sudo命令期间导致以下错误:

sudo:PAM(sudo)非法模块类型:-session

profile picture
ESPERTO
posta 5 mesi fa47 visualizzazioni
1 Risposta
0

【以下的回答经过翻译处理】 指定的条目并不是错误条目,而是已被使用。

如果配置文件中的一行以破折号开头,则不会记录错误。这对于可能不存的模块非常有用,例如指纹认证模块可能不存在,但如果存在,应该使用它。

请参考以下网站:

https://www.redhat.com/archives/pam-list/2009-October/msg00028.html

http://wpollock.com/AUnix2/PAM-Help.htm

profile picture
ESPERTO
con risposta 5 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande