sudo: no tty present and no askpass program specified (rsnapshot FreeNAS)

Status
Not open for further replies.

Oko

Contributor
Joined
Nov 30, 2013
Messages
132
By default sudo typically ask for password and more over requires tty. However there is a situation in which this is not desirable. Namely let suppose that I am trying to use rsnapshot to backup something from my FreeNAS box. As you know rsnapshot has to log with ssh-key only and most commonly become a root for the purpose of backup in order to read directories. It also doesn't use tty. Obviously this is very dangerous and bunch of options have to be specified in ssh-key to limit the potential vector of attack. Is there a way to change sudo defaults in FreeNAS?
 

Oko

Contributor
Joined
Nov 30, 2013
Messages
132
I would like to leave the electronic trace if people are trying to use rsnapshot to backup their FreeNAS servers. Yes it is very easy to pull data from a FreeNAS box using rsnapshot Perl script to a backup server. Just create a backup user on FreeNAS box and upload the key. There is nothing special about backing up FreeNAS box. However the major problem that I see right now is being able to edit sudo options as described above.

Why would one want to backup FreeNAS server using rsnapshot is a philosophical question and I concur that rsnapshot is probably not what first comes to mind nor that is should be a first option.
 
Status
Not open for further replies.
Top