2

I updated an old centrino-notebook after Ubuntu 9.10 with 12.04 - now sudo seem to be broken, because after sudo <whatever> I get the error message:

sudo: unable to initialize PAM: No such file or directory

In /var/log there seem to be no pam*.log file any more.

I cannot use sudo command for to change permissions of /etc files.

Radu Rădeanu
  • 174,089
  • 51
  • 332
  • 407
dschinn1001
  • 3,863

1 Answers1

2

Create a file /etc/pam.d/common-session-noninteractive and copy paste the following lines in it

 pkexec nano /etc/pam.d/common-session-noninteractive

Copy & Paste the following lines

 session        [default=1]                     pam_permit.so
 session        requisite                       pam_deny.so
 session        required                        pam_permit.so
 session        required                        pam_unix.so

Save & Exit

Source

Qasim
  • 22,162