Re: [BackupPC-users] [newb] ssh rsync with restricted permissions

2011-04-14 Thread Carl Wilhelm Soderstrom
On 04/14 02:46 , Christopher Hunt wrote: > Isn't it the case, however, that when you run rsync over ssh that the > client machine logs into the [BackupPC-server] as root? No, because the connections are initiated from the BackupPC server. The client does not log into the server, unless you

Re: [BackupPC-users] [newb] ssh rsync with restricted permissions

2011-04-14 Thread Christopher Hunt
On 4/14/2011 2:26 PM, yilam wrote: > [...] > That looks like an invocation using rsyncd; which I would avoid. The time to > use rsyncd is when backing up Windows, because cygwin ssh+rsync is buggy and > doesn't work. > > Keep in mind that BackupPC has both: > $Conf{XferMethod} = 'rsyncd'; > $Conf

[BackupPC-users] [newb] ssh rsync with restricted permissions

2011-04-14 Thread yilam
[...] That looks like an invocation using rsyncd; which I would avoid. The time to use rsyncd is when backing up Windows, because cygwin ssh+rsync is buggy and doesn't work. Keep in mind that BackupPC has both: $Conf{XferMethod} = 'rsyncd'; $Conf{XferMethod} = 'rsync'; You should use 'rsync' for

Re: [BackupPC-users] [newb] ssh rsync with restricted permissions

2011-04-07 Thread Carl Wilhelm Soderstrom
Sorry about the delay getting back to you on this. Disappeared into the ever-increasing backlog of mail in my inbox. On 03/30 02:45 , yilam wrote: > Well I tried your setup (need I say I am new to backuppc?) with on the client: > > * /etc/sudoers: > Cmnd_Alias BACKUP = /usr/bin/rsync --serve

Re: [BackupPC-users] [newb] ssh rsync with restricted permissions

2011-04-07 Thread Bowie Bailey
On 4/6/2011 2:59 PM, yilam wrote: >> 'm deliberately top-posting to ask, did you setup everything the >> "standard" way and get it working? If not, try that first and then >> start changing things. The above (below) suggestion may simply be >> failing due to some other setup issue, not the security

Re: [BackupPC-users] [newb] ssh rsync with restricted permissions

2011-04-06 Thread Les Mikesell
On 4/6/2011 1:59 PM, yilam wrote: >> 'm deliberately top-posting to ask, did you setup everything the >> "standard" way and get it working? If not, try that first and then >> start changing things. The above (below) suggestion may simply be >> failing due to some other setup issue, not the security

[BackupPC-users] [newb] ssh rsync with restricted permissions

2011-04-06 Thread yilam
> 'm deliberately top-posting to ask, did you setup everything the > "standard" way and get it working? If not, try that first and then > start changing things. The above (below) suggestion may simply be > failing due to some other setup issue, not the security issue that > concerns you. And I am n

Re: [BackupPC-users] [newb] ssh rsync with restricted permissions

2011-04-05 Thread Steve
I'm deliberately top-posting to ask, did you setup everything the "standard" way and get it working? If not, try that first and then start changing things. The above (below) suggestion may simply be failing due to some other setup issue, not the security issue that concerns you. And I am not exp

[BackupPC-users] [newb] ssh rsync with restricted permissions

2011-04-05 Thread yilam
Can really nobody help me out, or should I start a new subject? Thanks tom +-- |This was sent by sneak...@gmx.net via Backup Central. |Forward SPAM to ab...@backupcentral.com. +---

[BackupPC-users] [newb] ssh rsync with restricted permissions

2011-03-30 Thread yilam
Well I tried your setup (need I say I am new to backuppc?) with on the client: * /etc/sudoers: Cmnd_Alias BACKUP = /usr/bin/rsync --server --daemon * buclient my-host = NOPASSWD: BACKUP * ~buclient/.ssh/authorized_keys2 no-pty,no-agent-forwarding,no-X11-forwarding,no-port-forwarding

Re: [BackupPC-users] [newb] ssh rsync with restricted permissions

2011-03-21 Thread Carl Wilhelm Soderstrom
On 03/18 06:46 , Neal Becker wrote: > I'm interested in setting up linux->linux backup. I don't like the idea of > giving permission for machine1 as user backup to ssh to machine2 as root. > What > are the options? > > 1. Can ssh be restricted so that the only command user backup can run is

Re: [BackupPC-users] [newb] ssh rsync with restricted permissions

2011-03-18 Thread gregwm
On 2011-03-18 05:46, Neal Becker wrote: > I'm interested in setting up linux->linux backup. I don't like the idea of > giving permission for machine1 as user backup to ssh to machine2 as root. > What > are the options? > > 1. Can ssh be restricted so that the only command user backup can run is

Re: [BackupPC-users] [newb] ssh rsync with restricted permissions

2011-03-18 Thread Les Mikesell
On 3/18/2011 6:57 AM, Neal Becker wrote: > Neal Becker wrote: > >> I'm interested in setting up linux->linux backup. I don't like the idea of >> giving permission for machine1 as user backup to ssh to machine2 as root. >> What are the options? >> >> 1. Can ssh be restricted so that the only comman

Re: [BackupPC-users] [newb] ssh rsync with restricted permissions

2011-03-18 Thread Neal Becker
Well before your post I tried: command="rsync" But this fails. It seems BPC wants to run some other commands besides just rsync. The failure said something about not being able to get the filelist. Mike Loseke wrote: > You can prefix the key in /root/.ssh/authorized_keys with something > like

Re: [BackupPC-users] [newb] ssh rsync with restricted permissions

2011-03-18 Thread Mike Loseke
You can prefix the key in /root/.ssh/authorized_keys with something like the following: no-pty,no-agent-forwarding,no-X11-forwarding,no-port-forwarding,command="rsync --server --sender -vlogDtprze.iL --ignore-errors --numeric-ids --inplace . /" ssh-rsa ... This will force a ssh connection to st

Re: [BackupPC-users] [newb] ssh rsync with restricted permissions

2011-03-18 Thread Neal Becker
Neal Becker wrote: > I'm interested in setting up linux->linux backup. I don't like the idea of > giving permission for machine1 as user backup to ssh to machine2 as root. > What are the options? > > 1. Can ssh be restricted so that the only command user backup can run is > rsync? 2. Is there a

[BackupPC-users] [newb] ssh rsync with restricted permissions

2011-03-18 Thread Neal Becker
I'm interested in setting up linux->linux backup. I don't like the idea of giving permission for machine1 as user backup to ssh to machine2 as root. What are the options? 1. Can ssh be restricted so that the only command user backup can run is rsync? 2. Is there an easy way (using acls?) to gi