You are not logged in.

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

Registered: 2014-08-28
Posts: 31

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


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

Registered: 2012-08-01
Posts: 715

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


Board footer

Powered by FluxBB