scp permissions problem



Hi All!

This really is a file permissions problem ... although I'm not sure how

to solve it. Any assistance would be greatly appreciated.

I have a series of load balanced servers. Each of the servers is
arranged exactly the same and handles file uploads from users as
follows:

1) User submits file to www1 server
2) www1 server saves file with permissions showing user "www" is the
owner, dir owner is the group for the file ("sg" in this case).
3) cron script on www1 scp's the file to www2 server.
3a) cron executes scp -p origfile sg@www1:destfile
3b) destfile appears on www2 with ownership sg/sg, same permissions as
origfile

All of this works great up until the following happens ...

4) User resubmits the file to www2 server
5) www2 attempts to update file located on www2 server with new
version, but cannot modify file (attempting to overwrite a file owned
by sg/sg with a file to be owned by www/sg).
6) User continues to see old image, new image is not replicated

Where am I going wrong here? Any assistance would be appreciated.

Stephen

.



Relevant Pages

  • Re: User uploading files to load balanced server cluster
    ... This really is a file permissions problem ... ... Any assistance would be greatly appreciated. ... User submits file to www1 server ... cron script on www1 scp's the file to www2 server. ...
    (comp.lang.php)
  • Re: User uploading files to load balanced server cluster
    ... This really is a file permissions problem ... ... Any assistance would be greatly appreciated. ... User submits file to www1 server ... cron script on www1 scp's the file to www2 server. ...
    (comp.lang.php)
  • User uploading files to load balanced server cluster
    ... This really is a file permissions problem ... ... Any assistance would be greatly appreciated. ... User submits file to www1 server ... cron script on www1 scp's the file to www2 server. ...
    (comp.lang.php)
  • Re: Copy files and folders with all security and share permissions
    ... > Do you know a utility to copy files and folders with all permissions from ... > server to another ... > Thanks for your assistance ...
    (microsoft.public.win2000.general)
  • RE: Windows 2003 Server - Everyone Group
    ... this folder only accessable by the users in the "special" group. ... Configure User and Group Access on an Intranet in Windows Server ... NTFS files system permissions control ... group that you want to set permissions for, click Check Names to verify the ...
    (microsoft.public.win2000.networking)