Remote replication and allowing sudo without password

mihies

Dabbler
Joined
Jan 6, 2022
Messages
32
Hi,

The documentation for setting up remote replication at setting up remote replication says that admin user needs paswordless sudo commands. However, if one doesn't want to allow all of them, it is possible to select specific ones, specifically Allowed sudo commands with no password -> /var/sbin/zfs.
Said path doesn't seem to exist, but /usr/bin/zfs exists. So I wonder if that's because of obsolete documentation, a typo or something else?

Allowing all sudo commands without password sounds risky to me. Using default admin user as well, I guess creating a dedicated admin user with paswordless sudo command only to zfs is the best option.
 

Davvo

MVP
Joined
Jul 12, 2022
Messages
3,222
As far as I know it's not possibile to create an admin user without password.
Also, iirc, SCALE doesn't allow the use of the root account anymore.
 

mihies

Dabbler
Joined
Jan 6, 2022
Messages
32
As far as I know it's not possibile to create an admin user without password.
Also, iirc, SCALE doesn't allow the use of the root account anymore.
Ah, no, that's not a problem. Admin has password, but you have to check the option that it is allowed to sudo commands without requiring explicit password. You know, when one tries sudo, one has to type in password again otherwise.
Also no need for root, admin is fine.
 
Top