pam_open_session: Error in service module

0

I needed to edit /etc/security/limits.conf to add the line "tomcat hard nofile 7168" so was planning on keeping the original and editing a copy:

$ sudo mv /etc/security/limits.conf /etc/security/limits.conf.20220708
$ sudo cp /etc/security/limits.conf.2* /etc/security/limits.conf
sudo: pam_open_session: Error in service module
sudo: policy plugin failed session initialization
$

I cannot su to root (no passwords) and on opening a connection from the AWS console (https://eu-west-3.console.aws.amazon.com/ec2/v2/connect/root/i-091336859aa81c170) I see the connection happening but it then hangs without a prompt nor accepting input.

Please advise!

답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠