On 7/8/2013 10:03 AM, Martin Kos wrote:
to clarify what the problem/symtpom is:

i have added /var/lib/php5 to VOYAGE_SYNC_DIRS
somehow the directory has wrong permissions. for php to work it should
have 1733 permission. if i change the permissions on a running system
(chmod 1733 /var/lib/php5), everything is fine. the changes, only the
permissions, are reset, but the content of the directory is right.

what is the right way to change the permissions of a directory in
VOYAGE_SYNC_DIRS? so i thought that the problem is with the rsync of the
directory, but i am not sure.

greets
  KoS

Am 08.07.2013 15:48, schrieb Martin Kos:
Hi John

thanks for your answer. but please check first the mentioned line of
voyage-sync (line 182) which has the following rsync command:
rsync -a -q --delete-after /$SYNC_DIR/. /.sync/$SYNC_DIR &
  ---> -a is archive mode, equivalent to −rlptgoD
so the -o is already included.
the problem is that the SOURCE of the sync is NOT $SYNC_DIR but
$SYNC_DIR/. and i suppose that the prevents rsync from taking the
permissions of $SYNC_DIR into account but instead just the ones from all
subdirectories & files ?
(this is based on voyage 0.8, haven't checked the 0.9 serie!)

greets
  KoS

Am 05.07.2013 19:53, schrieb John Coltrane:
Hi,

by haveing a short look into rsync's manpage you can see that rsync has

o support for copying links, devices, owners, groups, and permis‐
sions

so this should easily be fixable.

Hope that helps


On 07/05/2013 12:24 PM, Martin Kos wrote:
Hi

I noticed that the permissions of directories listed in VOYAGE_SYNC_DIRS
are not being synced.

the voyage-sync script does set the owner of the directory, but doesn't
chmod the directory. and rsync is only syncing the "content" of the
directory, not the "root" directory.

am i right with my assumption that this is a bug?

greets
   KoS


_______________________________________________
Voyage-linux mailing list
Voyage-linux@list.voyage.hk
http://list.voyage.hk/mailman/listinfo/voyage-linux

_______________________________________________
Voyage-linux mailing list
Voyage-linux@list.voyage.hk
http://list.voyage.hk/mailman/listinfo/voyage-linux



_______________________________________________
Voyage-linux mailing list
Voyage-linux@list.voyage.hk
http://list.voyage.hk/mailman/listinfo/voyage-linux



_______________________________________________
Voyage-linux mailing list
Voyage-linux@list.voyage.hk
http://list.voyage.hk/mailman/listinfo/voyage-linux
first you have to stop the sync system  /etc/rc.d/ voyage-sync stop
then you remount rw
chmod the dir to the propper setting. then you remount ro and
voyage-sync start


_______________________________________________
Voyage-linux mailing list
Voyage-linux@list.voyage.hk
http://list.voyage.hk/mailman/listinfo/voyage-linux

Reply via email to