ownership and permissions using rsync in daemon mode

kevin mullen kevin at paradatafinancial.com
Fri Oct 18 16:04:32 MDT 2013


That worked like a champ. Thank you.

From: Kevin Korb [via Samba] [mailto:ml-node+s2283325n4655305h40 at n4.nabble.com]
Sent: Friday, October 18, 2013 2:41 PM
To: Kevin Mullen
Subject: Re: ownership and permissions using rsync in daemon mode

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

When fake super is active rsync stores all ownership and permission
info within extended attributes instead of the filesystem.

On 10/18/13 13:42, kevin mullen wrote:

> I've tried as best I can to get this worked out, and crawled the
> web and the documentation but I just can't seem to figure out how
> to maintain ownership and permissions from the sending side using
> rsync in daemon mode.  I feel I have to be missing something stupid
> with the proper use of uid/gid/fake super. I'm trying to automate
> synchronizing some program binaries between a production and warm
> spare environment. I can't use pre-shared ssh certificates. In the
> sample below the user install/staff is on both machines.
>
> Setup:
>
> Daemon side: AIX 6.1.8 64 bit. Rsync 3.06 and rsync 3.1.0.
>
>
> Running from inetd:
>
> rsync   stream  tcp     nowait  root    /usr/bin/rsync rsyncd
> –daemon
>
>
> # pg rsyncd.conf motd file = none log file = /var/log/rsyncd.log
> secrets file = /etc/rsyncd.secrets
>
> [r2a15] path = /usr/A15 uid = root gid = system fake super = yes
> hosts allow = 172.22.22.2 hosts deny = * list = true read only =
> false write only = true auth users = username
>
>
> sender side: AIX 6.1.4 64 bit rsync 3.0.6
>
> Run from command prompt as root
>
> /usr/bin/rsync -av --progress --stats --delete –z /usr/A15/*
> username at 192.168.1.202::r2a15<mailto:username at 192.168.1.202::r2a15>
>
> Source sample: -rwxrwxrwx    1 install  staff         25856 Jul 30
> 11:03 LNTIM2 -rwxrwxrwx    1 install  staff         27392 Jul 30
> 11:11 LNTIM3 -rwxrwxrwx    1 install  staff         29440 Oct 18
> 10:46 LNTIM4
>
> Destination result on new file write (doesn’t exist on daemon
> server)
>
> -rwx------    1 root     system        25856 Jul 30 11:03 LNTIM2
> -rwx------    1 root     system        27392 Jul 30 11:11 LNTIM3
> -rwx------    1 root     system        28928 Sep 30 14:23 LNTIM4
>
>
>
>
> -- View this message in context:
> http://samba.2283325.n4.nabble.com/ownership-and-permissions-using-rsync-in-daemon-mode-tp4655301.html
>
>
Sent from the Samba - rsync mailing list archive at Nabble.com.
>

- --
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._,-*~
        Kevin Korb Phone:    (407) 252-6853
        Systems Administrator Internet:
        FutureQuest, Inc. [hidden email]</user/SendEmail.jtp?type=node&node=4655305&i=0>  (work)
        Orlando, Florida [hidden email]</user/SendEmail.jtp?type=node&node=4655305&i=1> (personal)
        Web page: http://www.sanitarium.net/
        PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._,-*~
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/<http://www.enigmailnet/>

iEYEARECAAYFAlJhfgIACgkQVKC1jlbQAQeQFQCcC+YmHmthX0yG4yUzCB3i02NR
04kAoI1rnDF4YKtP1H6anQJcAWTCLL00
=EHfg
-----END PGP SIGNATURE-----
--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
________________________________
If you reply to this email, your message will be added to the discussion below:
http://samba.2283325.n4.nabble.com/ownership-and-permissions-using-rsync-in-daemon-mode-tp4655301p4655305.html
To unsubscribe from ownership and permissions using rsync in daemon mode, click here<http://samba.2283325.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4655301&code=a2V2aW5AcGFyYWRhdGFmaW5hbmNpYWwuY29tfDQ2NTUzMDF8MjAyMjE5NTUyOQ==>.
NAML<http://samba.2283325.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>




--
View this message in context: http://samba.2283325.n4.nabble.com/ownership-and-permissions-using-rsync-in-daemon-mode-tp4655301p4655313.html
Sent from the Samba - rsync mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20131018/ab0b01c3/attachment.html>


More information about the rsync mailing list