3
votes
2answers
2k views

Setting umask for all users

I'm trying to set the default umask to 002 for all users including root on my CentOS box. According to this and other answers, this can be achieved by editing /etc/profile. However the comments at ...
0
votes
1answer
213 views

create folder and files under User ownership in CakePHP

When CakePHP create a new Folder or File, its always owned by nobody and is set to 0755 or 0644 and for so i cant run php in SuPHP mode under the cPanel server to fix this i always run a Cron which ...
-2
votes
2answers
500 views

Chmod wont stick [closed]

I'm using CentOS on a virtual dedicated server. When I go in as root, and change the chmod value of a folder it works. But, any files I place into that folder do not inherit the chmod I set. This is ...
1
vote
0answers
493 views

CentOS 6 + OpenSSH 5.3 + umask are not working for me

I've been trying to set umask 002 to my sftp users, I already tried setting the umask in the following files: /etc/ssh/sshd_config: Subsystem sftp /usr/libexec/openssh/sftp-server ...
1
vote
1answer
741 views

CentOS - Apache - Is it possible to add umask directive to httpd.conf or vhost.conf file?

Yesterday, I was finally able to get my apache process to write files to a directory by setting the umask to 002 in the /etc/sysconfig/httpd script, but I was wondering if it's possible to set this ...
0
votes
2answers
3k views

Apache umask 002 not changing permissions

I have used [root ~]$ echo "umask 002" >> /etc/sysconfig/httpd [root ~]$ service httpd restart restarted apache many times but whenever i install something from script the directories are ...