How to configure Ubuntu 18.04 when executing systemctl hibernate password challenge is not required.
$ id -a
uid=1000(user1) gid=1000(user1) groups=1000(coka),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),116(lpadmin),126(sambashare)
How to configure Ubuntu 18.04 when executing systemctl hibernate password challenge is not required.
$ id -a
uid=1000(user1) gid=1000(user1) groups=1000(coka),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),116(lpadmin),126(sambashare)
The easiest way would be to add the proper entry to sudo:
username ALL=(ALL:ALL) NOPASSWD: /bin/systemctl hibernate