Chmod wont stick [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for … Read more

Directory and files have 775/644 permissions but php says it is not writable?

I think this has something to do with ownership of the folders, but I have a php app that I am trying to get setup and I cannot install it because it tells me the permissions are not correct. I set the permissions by doing chmod 2775 /var/www/htdocs -R Then I did chown developer:www-data /var/www/htdocs … Read more

setting umask for a directory so that all directories, executable file(.sh , .cmd, .bat) are 750 and regular file 640

need to create and change existing file and directory such that all directories and executable files(*.sh, *.bat, *.cmd ..) are 750 and regular file are 640 . I need to this in shell and python both. I like to set umask to 027 while default is 022 for existing directory …. can’t change default umask. … Read more

Why are newly-created files under /root not executable even though /root is and umask is 022? Is this the default on CentOS? [duplicate]

This question already has an answer here: umask in RHEL 6 (1 answer) Closed 5 years ago. I am building a small set of utility bash functions and aliases that will live on a special /root partition. I’ve noticed that whenever I touch aFile or vim aFile, the result is aFile with the permissions -rw-r–r–. … Read more

File base permissions are 666, why and is this a configurable value? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 8 years ago. Improve this question It is specified in various documentation on the net that linux/unix file base permissions are 666 with regards to how … Read more

Change syslog log file’s owner/group?

Is there a way to have syslog create a log file that’s not owned by root? I’ve got several jboss application servers that I’ve got logging to a server. Everyone’s running CentOS. Right now, all of the logs are going to ‘somelog.log’ and it’s owned by root:root. Can I make that instead be another user? … Read more

Setting umask /etc/apache2/envvar not working Ubuntu 10.04 [duplicate]

This question already has answers here: Ways to set umask on Ubuntu for daemon processes (3 answers) Closed 2 years ago. I am trying to set the default umask to umask 002. I tried adding it to: /etc/apache2/envvar /etc/profile But after restarting Apache it hasn’t changed? Still 0022. Where do I have to put it? … Read more

umask is being ignored on Gentoo while creating new files

I have a server running Gentoo and hosting a drupal installation. Whenever a Drupal update is executed, the directory permissions of the updated module turn from 755 to 744 preventing the application from accessing the files. The umask is defined as 022 under /etc/profile and the Apache server is running under user and group nobody. … Read more