You are not logged in.

#1 2022-08-09 15:38:35

parsody
Member
Registered: 2022-04-21
Posts: 34

[SOLVED]persist option not working with opendoas built from source.

im building from source bc i want to change password prompt .

changed

snprintf(doas_prompt, sizeof(doas_prompt), "\rdoas (%.32s@%.32s) password: ", myname, host);

to

snprintf(doas_prompt, sizeof(doas_prompt), "\rPassword: ", myname, host);

in pam.c

installed opendoas from repos and backed up /etc/pam.d/doas restored the same after buiding from source.

doas is working with custom prompt but persist doesn't work

doas -C /etc/doas.conf

doesn't output any errors

posting here instead of opendoas bugtracker bc dev said they can't help with pam configurations of all distros.

this is my /etc/doas.conf http://0x0.st/o2KN.conf there is a blank line as described in arch wiki
this is /etc/pam.d/doas http://0x0.st/o2KI.txt

SOLVED: you need to buid opendoas with --with-timestamp option as in

./configure --with-timestamp

Last edited by parsody (2022-08-10 04:54:46)

Offline

Board footer

Powered by FluxBB