Topic "Copy files with inherited permissions?"

Author Message
lummi
[View user's profile]

Joined: 2006-10-11
Posts: 2
Hi all,

How can an retain the file and folder permissions when uploading new files to the server? Right now, when I upload files to server I get myself as Owner and Users as group?
But how can I make it to inherite servers permissions?
Or do I have to change the permissions later on via SSH?
But when I replace allready existing files, the permission is correct.

Please if someone knows let me know and thanks for a wonderful product!
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
lummi wrote:
But how can I make it to inherite servers permissions?

Where the permissions should be inherited from?
_________________
Martin Prikryl
lummi
[View user's profile]

Joined: 2006-10-11
Posts: 2
Well I thought it was possible to inherite the remote servers permissions.
For example, if I upload files to folder htdocs/somefolder/somefiles.something I would like the files that I have uploaded to "inherite" the permissions.
In this case, owner "www-data" and group somegroup.
Not possible?
Or do I have to change the permissions later on after uploading with chown manually?

Regards,
Lummi
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
lummi wrote:
Well I thought it was possible to inherite the remote servers permissions.
For example, if I upload files to folder htdocs/somefolder/somefiles.something I would like the files that I have uploaded to "inherite" the permissions.
In this case, owner "www-data" and group somegroup.
Not possible?

It depends on how your server treats the permissions. But WinSCP does not instruct the server in any way, what the owner/group should be like. So if they are not inherited, then your server obviously does not do that.

Quote:
Or do I have to change the permissions later on after uploading with chown manually?

You may be able to change ownership from WinSCP. See documentation.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License