The tag has no usage guidance.

learn more… | top users | synonyms

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

umask for www-data user running PHP on Ubuntu

Setting up a new webserver in Ubuntu 14.04 and trying to wrangle file permissions for PHP generated files. By default, all the directories and files in /var/www are owned/grouped to www-admin. ...
5
votes
1answer
2k views

Does OpenSSH SFTP server use umask or preserve client side permissions after put command (chrooted environment)?

I know this question has been already discussed, but by reading the posts I could not figure the answers, because some said "yes umask can work", and others say "OpenSSH put command always preserve ...
0
votes
1answer
63 views

SFTP clients not respecting default UMASK permissions [duplicate]

Here's my situation: I'm setting up an Ubuntu 14.04 web server for a team to share. I'd like the team to have read/write access to everything inside var/www/html (same as CHMOD 775 on every file and ...
2
votes
1answer
21 views

Any way for openssl to generate private key with 400 (-r--------) permissions from the start?

I use openssl to generate private keys and CSRs in a script. The script needs to generate the key first, then call chmod 400 whatever.key to change the permissions of the private key to something ...
0
votes
0answers
10 views

PureFTPd how to set umask?

I have a server running Ajenti-V and pureFTPd, and I having a hard time to set the umask to be 27 on this server. What is the command for pureFTPd for such a thing? Thanks!
2
votes
1answer
126 views

Proper Way of Setting Umask For php-fpm on Debian/Ubuntu

I'd like to set umask to 002 for the php-fpm process. I'm reading here and here that on Ubuntu/Debian it is supposed to be done by modifying the init script. I'm having doubts however that this is ...
0
votes
0answers
59 views

Preserving file permissions over sshfs when remote umask set correctly

I have a drive on a remote server that I've mounted on my local machine via sshfs. My umask on both my local machine and my remote dir are set to the same thing. When I touch a file either by ...
2
votes
2answers
1k 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)
2
votes
1answer
50 views

Should usergroups be enabled?

All our users are managed with a central LDAP. When my predecessor in managing the infrastructure created the ldap he decided against creating usergroups (meaning groups of the same name and GID as ...
2
votes
3answers
2k 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 -d -m g:group1:rwx /tmp/test ...
2
votes
1answer
251 views

Is it possible to avoid umask 0002?

Is it possible to give an automatic ability to modify files(folders and all recursively) created by one user to another within one specified folder (let's say "shared") on the basis of both users ...
1
vote
2answers
612 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 ...
1
vote
1answer
2k views

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 ...
0
votes
2answers
966 views

Default File Permissions (Passenger, Rails, Ubuntu Server)

I've deployed a Rails application that is using page caching and is run via Passenger on Ubuntu Server. Rails caching simply uses Ruby's File.open to write the cached files. Unfortunately these files ...
2
votes
1answer
690 views

SFTP-server uploaded files having wrong rights

I have been trying to figure out what is wrong with the file rights. When I am uploading files using FileZilla all the files get rights -rw-r--r--. I would want them to have -rwxr-xr-x. I have tried ...
0
votes
2answers
803 views

Setting umask /etc/apache2/envvar not working Ubuntu 10.04

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? ...
9
votes
4answers
4k views

Specify default group and permissions for new files in a certain directory

I have a certain directory in which there is a project shared by multiple users. These users use SSH to gain access to this directory and modify/create files. This project should only be writeable to ...
1
vote
2answers
19k views

Default owner/permissions of created files via VSFTPD

How do I set the default values of directories and files created to be 775 ? My understanding is that I need to modify the umask on VSFTPD, but how do I know what to change it to?
-2
votes
1answer
460 views

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

It is specified in various documentation on the net that linux/unix file base permissions are 666 with regards to how umask manipulates. This is also relevant with regards to the fact that default ...
0
votes
1answer
1k views

How to set umask for php5-fpm in ubuntu 13.10

I am currently running nginx with php5-fpm on my local development ubuntu 13.10 system with 3.12.0 linux kernel. Before update, to set umask to 0002 for php5-fpm I edited /etc/init.d/php5-fpm file ...
5
votes
3answers
7k 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 ...
1
vote
1answer
235 views

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, ...
25
votes
7answers
28k views

How to setup ssh's umask for all type of connections

I've been searching for a way to setup OpenSSH's umask to 0027 in a consistent way across all connection types. By connection types I'm referring to: sftp scp ssh hostname ssh hostname program ...
2
votes
3answers
568 views

rsync pull disregards my umask, why?

My umask is 0002. So when I rsync -r me@remote:new ., why aren't the results group-writable? drwxrwsr-x 10 root developers 4096 Aug 22 12:55 . drwxrwsr-x 12 root developers 4096 Jul 14 ...
5
votes
3answers
8k views

Ways to set umask on Ubuntu for daemon processes

I have an http daemon server process (yaws) that I would like to have server write any new files with a umask of 002, so that another user in the same group can modify, move, or delete files created ...
-1
votes
2answers
849 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
0answers
650 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 ...
2
votes
1answer
824 views

Helping changing FTPD default umask

Default umask when logging in through FTP is 027 . I want to change this to 002 so a process with the same group can consume an uploaded file. Man 'ftpd' page says pass -u 002 to the ftpd command. ...
0
votes
1answer
329 views

ubuntu change default files and folders permission

i have ubuntu 10.04 on my server. when i was create a file by ftp, php and ... files permission is 600 and folders is 700. how can i change default files permission into 644 and folders to 755? ...
3
votes
2answers
5k 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 ...
1
vote
1answer
203 views

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 ...
1
vote
2answers
176 views

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 ...
0
votes
1answer
480 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 ...
0
votes
1answer
426 views

umask in RHEL 6

How can one set the executable bit on files using umask? According to documentation, a umask of 000 should work, but in practice this only works on directories. Also open to other methods of ...
-2
votes
2answers
759 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
442 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 ...
11
votes
2answers
11k views

How do I set default permissions for SFTP for an Ubuntu Server?

We have an Ubuntu 10.04 server. How can I set it so that new files created (or copied) over SFTP or SSH have g+rw and g+rwx permissions (where appropriate)? I'm also using setgid (chmod g+s) so that ...
8
votes
1answer
14k views

How do I set default umask in apache on debian?

I need files created by apache2 to have umask 002, i.e. group rw, by default. I've tried putting umask 002 in /etc/apache2/envvars and although this script does get executed as part of apache start ...
2
votes
1answer
3k 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
1k 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
2answers
1k 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
400 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 # ...
0
votes
2answers
2k views

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 ...
0
votes
1answer
440 views

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

Increasing permissiveness/permissions for umask + openssh + chrooted SFTP server using internal-sftp

The suggestion found at these links works for me: How to setup ssh's umask for all type of connections http://ubuntuforums.org/showthread.php?t=1107974#5 Summary: Use PAM to inject the umask, ...
0
votes
2answers
779 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
2answers
281 views

Why is umask a AND NOT mask operation

Why is umask a $perms AND NOT $mask and not simply $perms AND $mask instead? In other words why is there a NOT in there; why doesn't wasn't it implemented as an and mask? As an example, 666 and 700, ...
2
votes
2answers
213 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
1answer
517 views

Per-user umask over all ssh connections

Following on from How to setup ssh's umask for all type of connections Is it possible to do this on a per-user basis? Here's what I have at the minute: /etc/pam.d/ssh sesssion optional ...