0
votes
1answer
49 views

Doesn't umask apply to files?

I have set the umask to 0. So: $umask 0000 I do echo 'test' > test.txt And test.txt is created. If I do: ls -l test.txt I see: $ls -l test.txt -rw-rw-rw- 1 jim None 5 Jun 30 22:50 ...
1
vote
0answers
246 views

Apache created files and its permissions for CentOS 6.x

In short, I have an authenticated HTTP-POST that: posts a jpg image (created as 666 apache:www) into /directory1 (777 ftpuser:www) creates /directory2 (created as 666 apache:www) in a 777 ...
3
votes
1answer
124 views

How to display the permissions of a new file in the status line of the Vim editor?

With the following piece of code I get the permissions for an existing file: augroup Get_file_perm autocmd! autocmd BufWinEnter,FileChangedShell * let w:file_perm=getfperm(expand('%:p')) augroup ...
2
votes
2answers
440 views

Pre-defined umask under a given path [duplicate]

Possible Duplicate: How to set default file permissions for all folders/files in a directory? Say I have default umask, umask1. I would like all files/folders that I create/modify under a ...