[Unison-hackers] Need fix for chmod problem

Dale R. Worley dworley at pingtel.com
Thu Oct 6 10:09:14 EDT 2005


On Wed, 2005-10-05 at 16:43 +0200, Jerome Vouillon wrote:
> Can you try to create a file and use the chmod Unix command in a way
> that let its permissions unchanged.
> The following two commands should do the job.  Does the chmod fail?
>        touch foobar
>        chmod +r foobar

Yes, the chmod fails with "chmod: changing permissions of `[...]':
Operation not permitted".

I've attached a slightly edited shell transcript of my attempt to use
Unison, and of doing the test chmod.  I've also attached the .prf file I
am using.

Dale

-------------- next part --------------
$ unison pingtel-to-pingpdc -batch
Contacting server...
Looking for changes
  Documents
  Documents/search_files
  Documents/TUI_Flowcharts
  Documents/Snom
  Documents/Grandstream
  Documents/Polycom
  Documents/Cisco
  Documents/rfcs
  Documents/internet-drafts
  Documents/Sipura
  Documents/SIP-B
  Temp
  Temp/Wal-Mart
  Temp/Local Folders
  Temp/0pligyyb.slt
  Temp/call-park-files
  Temp
  Temp/Wal-Mart
  Temp/Local Folders
  Temp/call-park-files
  Temp/0pligyyb.slt
  Documents
  Documents/TUI_Flowcharts
  Documents/Snom
  Documents/Sipura
  Documents/SIP-B
  Documents/search_files
  Documents/rfcs
  Documents/Polycom
  Documents/internet-drafts
  Documents/Grandstream
  Documents/Cisco
Reconciling changes

Pingpdc        dworley            
new file ---->            Documents/internet-drafts/draft-ietf-sipping-gruu-reg-event-00.txt  
Pingpdc      : new file         
  modified at  9:52 on  4 Oct, 2005  size 20336     unknown permissions
dworley      : absent
new file ---->            Documents/rfcs/rfc4168.txt  
Pingpdc      : new file         
  modified at 10:47 on  5 Oct, 2005  size 21079     unknown permissions
dworley      : absent
Propagating updates


UNISON started propagating changes at 09:58:48 on 06 Oct 2005
[BGN] Copying Documents/internet-drafts/draft-ietf-sipping-gruu-reg-event-00.txt
  from /home/dworley/Pingpdc
  to /pingpdc/Data/Users/dworley
[BGN] Copying Documents/rfcs/rfc4168.txt
  from /home/dworley/Pingpdc
  to /pingpdc/Data/Users/dworley
Failed with exception Util.Transient("Error in setting permissions:\nOperation not permitted [chmod(/pingpdc/Data/Users/dworley/Documents/internet-drafts/.#draft-ietf-sipping-gruu-reg-event-00.txt.0.unison.tmp)]")
Failed: Error in setting permissions:
Operation not permitted [chmod(/pingpdc/Data/Users/dworley/Documents/internet-drafts/.#draft-ietf-sipping-gruu-reg-event-00.txt.0.unison.tmp)]
Failed with exception Util.Transient("Error in setting permissions:\nOperation not permitted [chmod(/pingpdc/Data/Users/dworley/Documents/rfcs/.#rfc4168.txt.0.unison.tmp)]")
Failed: Error in setting permissions:
Operation not permitted [chmod(/pingpdc/Data/Users/dworley/Documents/rfcs/.#rfc4168.txt.0.unison.tmp)]
UNISON finished propagating changes at 09:58:48 on 06 Oct 2005


Saving synchronizer state
Synchronization complete

$ cat /dev/null >/pingpdc/Data/Users/dworley/Documents/internet-drafts/.#draft-ietf-sipping-gruu-reg-event-00.txt.0.unison.tmp

[[ 777 is the mode displayed by 'ls' for all files in this directory. ]]

$ chmod 777 /pingpdc/Data/Users/dworley/Documents/internet-drafts/.#draft-ietf-sipping-gruu-reg-event-00.txt.0.unison.tmp
chmod: changing permissions of `/pingpdc/Data/Users/dworley/Documents/internet-drafts/.#draft-ietf-sipping-gruu-reg-event-00.txt.0.unison.tmp': Operation not permitted

$ chmod +r /pingpdc/Data/Users/dworley/Documents/internet-drafts/.#draft-ietf-sipping-gruu-reg-event-00.txt.0.unison.tmp
chmod: changing permissions of `/pingpdc/Data/Users/dworley/Documents/internet-drafts/.#draft-ietf-sipping-gruu-reg-event-00.txt.0.unison.tmp': Operation not permitted
-------------- next part --------------
root = /home/dworley/Pingpdc
root = /pingpdc/Data/Users/dworley

# For some reason, Linux can't set the time on an SMB share.
times = false
# And the permissions are meaningless.
perms = 0
# Do not copy user/group, since both accounts are users on their machines.

# This is unison 2.9.1.
servercmd = /home/dworley/bin/i686/unison

# Do not synchronize backup files.
ignore = Name *~
ignore = Name .*~


More information about the Unison-hackers mailing list