You are not logged in.

#1 2016-08-13 06:48:54

_JZA_
Member
Registered: 2014-08-28
Posts: 28

Set custom permissions on scp of files

I have a website on a small vps, and created a screeshot directory wtihing to share the screenshots from my local laptop. The issue I am having is premissions so when the scp inserts the file the image have the right permissions. I used a sticky bit so that the group of the folder i consistent with the world readable group on www-data.

However my permissions are very restricted, at rw-------

I wonder what to do if it needs another sitcky bit or a umask so that the files are at least world readable.

here is my current state:

drwxr-sr-x  2 user  www-data    4096 Aug 13 06:35 shots
$ cd shots/
-rw------- 1 user www-data  18204 Aug 13 06:35 Spectacle.NA9809.png

Offline

#2 2016-08-13 17:00:13

mpan
Member
Registered: 2012-08-01
Posts: 494
Website

Re: Set custom permissions on scp of files

If -p isn’t doing what you want, just use chmod afterwards.


Sometimes I seem a bit harsh — don’t get offended too easily! PGP: 7C848198AE93D3BB

Offline

Board footer

Powered by FluxBB