umask

linux: getting umask of an already running process?

How can I check the umask of a program which is currently running? [update: another process, not the current process.] ...

In linux, is there a way to set a default permission for newly created files and directories under a directory?

I have a bunch of long-running scripts and applications that are storing output results in a directory shared amongst a few users. I would like a way to make sure that every file and directory created under this shared directory automatically had u=rwxg=rwxo=r permissions. I know that I could use umask 006 at the head off my various scr...

scp file not setting correct owner

Does SCP have a problem setting file permissions or have I misconfiguration my server? Updated (19/Mar/09): Actually: There is no problem - I have just misunderstood the way permissions work - they don't change when the file contents are changed Use case: There is a file on a server that I want to edit called "importantFile.txt". The ...

PHP mkdir() and fopen() does not work - permissions problem? umask problem?

The following PHP script fails to create the directory. It will also fail to create the file (when the directory already exists). ini_set('error_reporting', E_ALL); define('ABSPATH', $_SERVER['DOCUMENT_ROOT']); echo ABSPATH . '<br /><br />'; $dir_to_make = ABSPATH . '/aaatest'; $file_to_make = ABSPATH . '/aaatest/aaatest.txt'; echo u...