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!

No hay respuestas

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas