Copy files with inherited permissions?

Advertisement

lummi
Joined:
Posts:
2

Copy files with inherited permissions?

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!

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,506
Location:
Prague, Czechia

Re: Copy files with inherited permissions?

lummi wrote:

But how can I make it to inherite servers permissions?
Where the permissions should be inherited from?

Reply with quote

lummi
Joined:
Posts:
2

Permission..

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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,506
Location:
Prague, Czechia

Re: Permission..

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.

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.

Reply with quote

Advertisement

You can post new topics in this forum