<div dir="ltr">"<span style="font-family:arial,sans-serif;font-size:12.8000001907349px">filter/include/exclude in rsyncd.conf only controls what files on the</span><br style="font-family:arial,sans-serif;font-size:12.8000001907349px"><span style="font-family:arial,sans-serif;font-size:12.8000001907349px">server a client can access": OK say I want to do that and only allow access to file called temp1 on the server. What do I need to enter in the config file? The following does not seem to do anything:</span><div><div style><font face="arial, sans-serif">        include = temp1</font></div><div style><font face="arial, sans-serif">        filter = - *</font></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 8, 2014 at 10:29 PM, Kevin Korb <span dir="ltr"><<a href="mailto:kmk@sanitarium.net" target="_blank">kmk@sanitarium.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
The server has no idea what file the client is sending it (even if it<br>
did the client would be free to lie).  The server only knows what file<br>
the client is asking to change/create/delete on the server.<br>
<br>
You can certainly confine the client to the /n2p/cfg directory through<br>
rsyncd.conf or rrsync but you can't really control what the client<br>
intends to put there.<br>
<br>
filter/include/exclude in rsyncd.conf only controls what files on the<br>
server a client can access.<br>
<div><div class="h5"><br>
On 10/08/2014 10:15 PM, Romel Khan wrote:<br>
> I would like to push a file, /home/cfg/temp, from client to a<br>
> server with rsync in daemon mode to /n2p/cfg directory. How should<br>
> I set the filter/include/exclude parameters on the server side<br>
> rsyncd.conf file so server will disallow receiving any files from<br>
> the client other than /home/cfg/temp?<br>
><br>
><br>
><br>
<br>
</div></div>- --<br>
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~<br>
        Kevin Korb                      Phone:    <a href="tel:%28407%29%20252-6853" value="+14072526853">(407) 252-6853</a><br>
        Systems Administrator           Internet:<br>
        FutureQuest, Inc.               Kevin@FutureQuest.net  (work)<br>
        Orlando, Florida                <a href="mailto:kmk@sanitarium.net">kmk@sanitarium.net</a> (personal)<br>
        Web page:                       <a href="http://www.sanitarium.net/" target="_blank">http://www.sanitarium.net/</a><br>
        PGP public key available on web site.<br>
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v2<br>
<br>
iEYEARECAAYFAlQ18ycACgkQVKC1jlbQAQcoTgCgnRnZ1DDaTqvyxCqWM+NJ1H51<br>
jDcAoOGqc7pShZ/PnD7E7RK+M2rBVjUE<br>
=j3MB<br>
-----END PGP SIGNATURE-----<br>
<span class="HOEnZb"><font color="#888888">--<br>
Please use reply-all for most replies to avoid omitting the mailing list.<br>
To unsubscribe or change options: <a href="https://lists.samba.org/mailman/listinfo/rsync" target="_blank">https://lists.samba.org/mailman/listinfo/rsync</a><br>
Before posting, read: <a href="http://www.catb.org/~esr/faqs/smart-questions.html" target="_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a><br>
</font></span></blockquote></div><br></div>