biscuitehh / pam-watchid

PAM plugin module that allows the Apple Watch to be used for authentication
The Unlicense
715 stars 68 forks source link

Operation not permitted. #6

Closed foxt closed 4 years ago

foxt commented 4 years ago

I had to append a '.2' to the end of the file name adding to the PAM config, however whenever I try to run sudo after setting this up, I just get a PAM operation permitted error. I figured out how to revert changes (use Finder) but I can't get this library to work.

Aayush9029 commented 4 years ago

try this

open /etc/pam.d

right click sudo filename > get info ~scroll down (click lock) change from readonly to read and write

edit the file once again ~ revert back to read only

foxt commented 4 years ago

@Aayush9029

I figured out how to revert changes (use Finder) but I can't get this library to work.

tthoma24 commented 4 years ago

Are you able to edit /etc/pam.d/sudo with a command-line text editor, like vi or emacs?

foxt commented 4 years ago

Are you able to edit /etc/pam.d/sudo with a command-line text editor, like vi or emacs?

Yes.

tthoma24 commented 4 years ago

And once you do that, what happens? What is the error you run into when running a command with sudo?

foxt commented 4 years ago

Operation not permitted from PAM.

tthoma24 commented 4 years ago

It’s working okay for me. Would you be able to provide the following:

-OS major and minor version (e.g 10.15.5) -Contents of your /etc/pam.d/sudo -The command you run and the exact output from the terminal when you run it

foxt commented 4 years ago

Nevermind, it just started working now.