Score:0

pam_authenticate error, doas problem

mp flag

I wanted to try doas (https://github.com/slicer69/doas) I have done everything thats on github page but when I try to use doas it gave me this error

doas: pam_authenticate: Permission denied
David avatar
cn flag
What version of Ubuntu are you using?
David avatar
cn flag
Did you read the note under install for Linux? Note to Linux users: Some Linux distributions, such as CentOS, will block doas from using PAM authentication by default. If this happens, it is usually possible to work around the issue by running the following command as the administrator: cp /etc/pam.d/sudo /etc/pam.d/doas
jifitailu avatar
mp flag
I did, but I dont run centOS I use LTS of ubuntu
David avatar
cn flag
I says such as not only. Please follow the instructions.
jifitailu avatar
mp flag
I run the command it worked, thank you
David avatar
cn flag
I made it an answer please accept Up votes are nice but accept is better.
Score:2
cn flag

As stated in the documentation for the install of this app for Linux based systems, in this case Ubuntu you must do the following:

Note to Linux users: Some Linux distributions, such as CentOS, will block doas from using PAM authentication by default. If this happens, it is usually possible to work around the issue by running the following command as the administrator: cp /etc/pam.d/sudo /etc/pam.d/doas.

CentOS is only uses as an example.

Score:0
mp flag

cp /etc/pam.d/sudo /etc/pam.d/doas

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.