The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
0answers
37 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
1answer
176 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
1answer
583 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. ...
2
votes
1answer
364 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
290 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
663 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 ...
1
vote
1answer
152 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, ...
2
votes
3answers
263 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 ...
-1
votes
2answers
645 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 ...
2
votes
1answer
572 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. ...
1
vote
1answer
353 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
3k 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
197 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
148 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
320 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
342 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 ...
1
vote
1answer
723 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
574 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
1answer
1k 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
1answer
370 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 ...
1
vote
0answers
560 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 ...
7
votes
1answer
10k 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
2k 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 ...
0
votes
1answer
300 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? ...
1
vote
1answer
865 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 ...
5
votes
3answers
5k 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
906 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
366 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
745 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? ...
0
votes
1answer
342 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 ...
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 ...
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, ...
2
votes
2answers
247 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
205 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
453 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 ...
0
votes
2answers
507 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

Setting umask for www-data user (run via sudo) on Ubuntu 10.04 LTS

I run apache as user www-data on Ubuntu 10_04 LTS. I've got /etc/apache2/envvar setup with 'umask 002' so that any new files/dirs created by the daemon have group write permissions enabled. At times, ...
1
vote
1answer
233 views

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 ...
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
485 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 ...
0
votes
2answers
849 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 ...
0
votes
1answer
510 views

Home folder permission in Ubuntu for apache public_html

I read a lot about that here, but I guess I just can't get it. So here is what I got: I have Ubuntu 10.04 installed and I just created vhost for a domain, let's call it example.com. I also created a ...
10
votes
4answers
9k views

How to get full control of umask/PAM/permissions?

// Updated Feb 8 - Outstanding issues in brief: How to umask directories differently from files? How to umask on Nautilus copy/paste? How to set umask for SSHFS? OUR SITUATION Several people from ...
23
votes
7answers
23k 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 ...
1
vote
3answers
527 views

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 ...
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 ...
1
vote
1answer
236 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
11k 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
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
984 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 ...