Tag Info

New answers tagged

1

if the function of UMASK is to set CHMOD values umask is not the same as chmod. The process umask describes which permission bits will be automatically cleared when files are first created. It works like this: actual permission = requested permission & ~umask Typically, applications request permissions like 0666 for a regular file, and the umask ...


0

If you want an underlying shell command to run with certain permissions it would be possible to accomplish this by chaining the commands in a single system call. os.system("umask 055") os.system("ls -alh > test") Becomes: os.system("umask 055; ls -alh > test") or, if you only want to run the second command if the previous exited successfully: ...



Top 50 recent answers are included