Questions tagged [umask]

89 questions
1
vote
1 answer

Debian - File Permissions and umask

This might be a noob question, but here goes ^^: I've just set up a debian wheezy server, and Installed laravel on it. Anyway, I'm having some trouble both as to what the file permissions should be, for laravel (files in general), so that they can…
Jazerix
  • 111
  • 4
1
vote
1 answer

Proper way to set default permissions

I have Debian Squeeze server with set of users. All users must be able to work with shared files. So what I did is to set to all of these users same main group (e.g. editors) Then put files into /home/editors/, set permissions with that folder to…
Alexey Kamenskiy
  • 794
  • 1
  • 9
  • 23
1
vote
2 answers

umask seems to vary by user

I've got a development Ubuntu system for which I have several users: myself (with full sudo) and about 5 other users. (I've set up the system so everything in this respect is still at its default setting) I'm trying to set the system up so that…
paullb
  • 185
  • 1
  • 9
1
vote
1 answer

What is the best place to put umask setting for php-fpm in Centos 6?

For the following two places of php-fpm init configuration on Centos 6, which one do you think is the most suitable to put in, for example, umask = 077 ? /etc/init.d/php-fpm OR /etc/sysconfig/php-fpm Any other suggestions are also welcome. Thank…
tonytz
  • 153
  • 1
  • 5
  • 11
1
vote
1 answer

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 umask directive at the config layer? I am seeking…
Mike Purcell
  • 1,708
  • 7
  • 32
  • 54
1
vote
1 answer

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 # # Umask which is used by useradd and newusers for…
Ben
  • 3,800
  • 18
  • 65
  • 96
1
vote
2 answers

Setting umask 002 for the apache, lighttpd, ... didn't work?

I'm trying to make the files that created by webserver (Apache, lighttpd, ...) can be writable by the ftp users. Adding apache to nobody group and the vise versa. umask 002 for ftp works fine. But the webserver seems to ignore my umask setting in…
quanta
  • 51,413
  • 19
  • 159
  • 217
1
vote
1 answer

Changing default permssion on ubuntu 10.4 server

I have a a Joomla CMS which is a PHP script that needs to write new files and directories, I changed the umask value and I ended up re-installing the system :-s. Can you please guide me step by step on how to set the default permissions for…
Sakhar
  • 11
  • 1
1
vote
2 answers

Apache 2.2 umask in FreeBSD

I have Apache 2.2 running under FreeBSD 7 (and 8). It runs with the system default umask of 022, and I need it to be 002 so that www group members can make changes without having to chase it with chmod. I put www into a login class with an…
dukeOfOak
  • 23
  • 3
1
vote
2 answers

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 files. So I put in my…
Chen Levy
  • 283
  • 3
  • 13
1
vote
1 answer

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 is that I create files that PHP and Apache can't…
Xeoncross
  • 4,449
  • 12
  • 43
  • 56
1
vote
0 answers

How are Linux ACLs different for files versus sockets

With umask 0022, using default ACL entries default:user::rwx, default:group::rwx, default:mask::rwx and default:other::rwx for a directory, files created with touch (e.g.) have a mask of rw, and sockets created with nc -lU (e.g.) have a mask of r-x…
Larry
  • 11
  • 2
1
vote
1 answer

Debian umask defaulting to 0077

I only noticed this because when I installed tree it noted /usr/bin/mandb: can't search directory /usr/local/man/man1/: Permission denied. I checked /usr/local/man/man1 and confirmed that it's set to a restrictive 0700 permission. I'm running Debian…
bankman22
  • 13
  • 4
0
votes
2 answers

linux/lighttpd: setting umask for webdav?

I'm running lighttpd on my linux server. I have set up webdav, and I want to set the umask to a specific value only for the webdav site, and not for any other sites running under my lighttpd server. Is there any way to tell webdav under lighttpd to…
HippoMan
  • 222
  • 1
  • 10
0
votes
2 answers

Different software saves files with different file permissions

I've got bizzare issue. There's a dir created by me with permissions 755. I'm working with a piece of software. After I'm done I save the output of my work to the same folder. Files get saved with permissions 644 (?). With different program I'm…
excessive
  • 3
  • 1
  • 2