1
vote
1answer
47 views

How to set umask for php-fpm in fedora 19

I cannot find where to set umask (to set proper permissions to files created by php scripts) in Fedora 19. (specifically, I want new files to have the permissions 664)
-1
votes
2answers
499 views

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 ...
1
vote
1answer
250 views

Setting per-directory umask using ACLs

We want to mimic the behavior of a system-wide 002 umask on a certain directory foo, in order to ensure the following result: All sub-directories created underneath foo will have 775 permissions All ...
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
0answers
80 views

Python script not executing after setting executable permission

i am having a python script #!/usr/bin/env python in top of my script? following is the permission i had set -rwxr-xr-x 1 user1 user2 6423 Nov 15 15:12 test i tried executing the script as user1 ...
0
votes
1answer
206 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 ...
1
vote
1answer
557 views

NFSv3 + ACL: mask is gone on clients

I'm sharing a NFS folder among a user group. The default umask on the clients is 0700, and this is a problem because newly created files won't be readable/writable by another users. So, I'm using ...
-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 ...
0
votes
1answer
316 views

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 ...
2
votes
1answer
1k views

How to set default group permission in Ubuntu for www-data (apache's user)?

I have not been able to set a umask for www-data (apache's user). I tried to put umask 002, like in many other examples I found, in /etc/init.d/apache2 script, or in /etc/apache2/envvars.... Then I ...
1
vote
1answer
728 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 ...
4
votes
3answers
4k views

Can I override my umask using ACLs to make all files created in a given directory world readable?

Assume that my umask is 0077. I have a directory, foo, that I want to have special permissions applied to it. All files I create in foo should be world readable, and all directories should be world ...
4
votes
2answers
705 views

How can I change the umask for a user when he logs on to an alternate group?

I want the umask to be more permissive for users when they switch to a non-default group. Just to demonstrate what I mean: $ id uid=500(beamin) gid=500(beamin) groups=10(wheel) $ umask 0022 $ sg ...
1
vote
1answer
321 views

Modifying umask for all users not functioning

I have modified /etc/login.defs and set the umask to 002 but it fails to be changed when I exit or logout and log back in. My bashrc file does NOT contain any umask settings. from /etc/login.defs # ...
2
votes
2answers
193 views

umask in Ubuntu Server 10

This is on a test machine, not production. I included the following in a user's .bashrc: umask 000 I relogged in. When I go to create a file in my home directory, say using vi test.txt, the file ...
0
votes
2answers
424 views

In Linux, how do I umask differently for files and directories?

I wish to have something in my .bashrc that will mask the file permissions as 022 (resulting in new files having permission rwxr--r--) and the directory permissions as 066 (resulting in new ...
2
votes
1answer
3k views

Set default umask for everything in Debian Squeese, included sftp

How can I change the umask for ssh and sftp in debian squeeze. I have changed the umask from 022 to 002 in /etc/profile and /etc/login.defs and modified Subsystem sftp ...
0
votes
2answers
446 views

wrong “permission denied” in linux?

root@SERVER:~# cat /etc/passwd | grep www-data www-data:x:33:33:www-data:/var/www:/bin/sh root@SERVER:~# ls -al /cluster/www/html/tmp/reportexport_274.xml -rwxrwxrwx 1 www-data www-data 908 ...
2
votes
1answer
2k views

Setting default file permissions in shared directory using ACL and umask

We have a Linux box running Ubuntu 10.04. It's primary function is a web server and it is configured with (I think) a conventional LAMP stack. Developers have access to a common directory "dev" which ...
2
votes
2answers
1k views

Conflicts between ACLs and umask

I have a directory which can be read and written by a couple of unix groups. This is achieved by using ACLs. Let's assume I did it like this: mkdir /tmp/test setfacl -m g:group1:rwx /tmp/test ...
1
vote
1answer
932 views

vsftpd seems to disreguard umask

I configured my vsftpd to allow virtual users to upload file. However I wanted all uploaded files to not be downloadable, thus depriving a potential attacker the usefulness of storing his nefarious ...
0
votes
2answers
374 views

Proper umask on linux webservers?

Most VPS have a team of 1+ user(s) that don't do anything but configure the system and work on the web site and/or database. I would assume all the team members would be a group like "developers" so ...
1
vote
1answer
242 views

All users of a group can edit each others files (Linux)

I want anyone in group www-data to have write access to /var/www. For example, if 'a' and 'b' are in group www-data and 'a' creates a file in /var/www - then 'b' will be able to edit it. The problem ...