Nelson Serafica wrote:
> I installed BackupPC but the problem is how can I restore them when 
> I'm using limited user to download and upload backup?
>
> I use rsync and it can get backup with rwx-r-r permission. As long as 
> it has read permission to files, there's no problem.
> But how can I restore them if the limited user has no write access to 
> files/directories? Can I used sudo? I tried
> to configure sudo by the command visudo and put the ff: backuppc ALL = 
> NOPASSWD: ALL
> So I test it by changing to user backuppc but when I test if I can run 
> root command, it is still Permission Denied
>
> Anyone has an alternative or a remedy? I don't allowed root to access 
> directly via ssh for security purposes
sudo is the way to do it,

you may have missed this setting in "visudo".....

Defaults    requiretty

....you need to comment that out also.

You should also limit what the backuppc user run, by saying ALL you let 
it run all commands. If you get specific you can set it up so that it 
can only be used for restores. See the link below for an example of sudo 
and tar.

http://backuppc.sourceforge.net/faq/ssh.html#how_can_client_access_as_root_be_avoided

If your still having trouble post the relevant parts of your config 
files and logs.

Regards,

Les

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to