<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yui_3_16_0_1_1441924636565_10026">Hi</div><div><br></div><div id="yui_3_16_0_1_1441924636565_10027">I would like to have changes (chown) in the destination. <br></div><div id="yui_3_16_0_1_1441924636565_10029">However, some files did not changed size or rights. All files should have new owner. <br></div><div id="yui_3_16_0_1_1441924636565_10031"><br></div><div id="yui_3_16_0_1_1441924636565_10033">Thanks, <br></div><div>Regards,</div><div>CJ<br></div><div id="yui_3_16_0_1_1441924636565_10035"><span></span></div>  <br><div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font face="Arial" size="2"> Em Quinta-feira, 10 de Setembro de 2015 20:26, Kevin Korb <kmk@sanitarium.net> escreveu:<br> </font> </div>  <br><br> <div class="y_msg_container">-----BEGIN PGP SIGNED MESSAGE-----<br clear="none">Hash: SHA1<br clear="none"><br clear="none">Rsync does not change anything on the source.  Only on the target.<br clear="none"><br clear="none">Only root can change the ownership of a file.<br clear="none"><br clear="none">On 09/10/2015 07:16 PM, Celso de Sousa Junior wrote:<br clear="none">> Hi Kevin,<br clear="none">> <br clear="none">> Thank you very much. I changed my user in the remote machine (su).<br clear="none">> <br clear="none">> Then, by trying again with rsync but with no modification in the<br clear="none">> source folder, I see that file ownership continues the same.<br clear="none">> <br clear="none">> Would be possible for rsync to change the ownership in this case (I<br clear="none">> am not root) ?<br clear="none">> <br clear="none">> Thanks, Regards, CJ<br clear="none">> <br clear="none">> <br clear="none">> <br clear="none">> <br clear="none">> Em Quinta-feira, 10 de Setembro de 2015 20:01, Kevin Korb <br clear="none">> <<a shape="rect" ymailto="mailto:kmk@sanitarium.net" href="mailto:kmk@sanitarium.net">kmk@sanitarium.net</a>> escreveu:<br clear="none">> <br clear="none">> <br clear="none">> The syntax looks correct.  However, note that only root can chown. <br clear="none">> You must be running rsync on the target end as root for --chown or <br clear="none">> --owner to work.  If you aren't using root access then just run<br clear="none">> the target rsync as the user you want the files to be owned by and<br clear="none">> it will have no choice.<br clear="none">> <br clear="none">> On 09/10/2015 06:42 PM, Celso de Sousa Junior wrote:<br clear="none">>> Hi,<br clear="none">> <br clear="none">>> Please, I am using rsync to synchronize local machine with<br clear="none">>> remote machine.<br clear="none">> <br clear="none">>> I already have some files copied. Now I have to change the <br clear="none">>> ownership from existing files in the destination folder.<br clear="none">> <br clear="none">>> I tried the following options but it did not worked. Can you<br clear="none">>> please help me with other options or alternatives ?<br clear="none">> <br clear="none">>> --perms --chown=user:group --chmod=777 --exclude-from=$EXCLUDES <br clear="none">>> -avzi --rsync-path="/usr/local/bin/rsync" -e ssh<br clear="none">> <br clear="none">>> Thanks, Regards, CJ<br clear="none">> <br clear="none">> <br clear="none">> <br clear="none">> <br clear="none">> -- Please use reply-all for most replies to avoid omitting the<br clear="none">> mailing list. To unsubscribe or change options: <br clear="none">> <a shape="rect" href="https://lists.samba.org/mailman/listinfo/rsync" target="_blank">https://lists.samba.org/mailman/listinfo/rsync </a>Before posting,<br clear="none">> read: <a shape="rect" href="http://www.catb.org/~esr/faqs/smart-questions.html" target="_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a><br clear="none">> <br clear="none">> <br clear="none">> <br clear="none"><br clear="none">- -- <br clear="none">~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,<br clear="none">- -*~<br clear="none">    Kevin Korb            Phone:    (407) 252-6853<br clear="none">    Systems Administrator        Internet:<br clear="none">    FutureQuest, Inc.        <a shape="rect" ymailto="mailto:Kevin@FutureQuest.net" href="mailto:Kevin@FutureQuest.net">Kevin@FutureQuest.net</a>  (work)<br clear="none">    Orlando, Florida        <a shape="rect" ymailto="mailto:kmk@sanitarium.net" href="mailto:kmk@sanitarium.net">kmk@sanitarium.net</a> (personal)<br clear="none">    Web page:            <a shape="rect" href="http://www.sanitarium.net/" target="_blank">http://www.sanitarium.net/</a><br clear="none">    PGP public key available on web site.<br clear="none">~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,<br clear="none">- -*~<br clear="none">-----BEGIN PGP SIGNATURE-----<br clear="none">Version: GnuPG v2<br clear="none"><br clear="none">iEYEARECAAYFAlXyEZ4ACgkQVKC1jlbQAQdIWACgz9Cn9Nh6Ar78E3fpf4hcVbNE<br clear="none">aeoAoLe54DEQcpMe1S2T+DyY7XvBJRTt<br clear="none">=5BHQ<div class="yqt8875471342" id="yqtfd19776"><br clear="none">-----END PGP SIGNATURE-----<br clear="none"></div><br><br></div>  </div> </div>  </div></div></body></html>