Hello All

I have created some users and gave permission only to that users to access the server with PAM following the link
Linux allow / restrict system logins to specific user groups only using pam_listfile PAM module
I added the line at the end of the file instead at the begining.
auth required pam_listfile.so onerr=fail item=group sense=allow file=/etc/login.group.allowed

I have added root user to. Now after logging out I am not able to login to the server. Can anyone help me to fix this.

Thanks in advance
santhosh