Questions tagged [umask]

89 questions
0
votes
2 answers

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 are being written with mode 666. The umask for…
0
votes
1 answer

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 user "example". So I want to host my domain in…
John Gold
  • 3
  • 1
0
votes
2 answers

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 they could all work on files in the web root as…
Xeoncross
  • 4,449
  • 12
  • 43
  • 56
0
votes
1 answer

I cannot find where 0002 umask is being set on Ubuntu 20.04

My user account has a non-standard umask setting of 0002, and I cannot find the config file where this is being set. I have searched in /etc and ~/.bash* with sudo grep -iIr umask. Running umask in a bash shell over ssh is showing 0002, and…
0
votes
0 answers

php-fpm 8.1 on ubuntu 22.04 lamp stack ignores directory ACLs

I've been running a pretty fine lamp stack hosting multiple sites. Pools are running okay. Each website has it's own pool and runs as it's own system-user. These system-users are created without /home/.. directories and without shell. Each users has…
Q2Q
  • 1
  • 1
0
votes
0 answers

NFS mount using /etc/idmapd.conf has permission denied for mapped user

With an NFS4 mount, using /etc/idmapd.conf to map the nobody user and group to user123, files look like they should be accessible to user123 but instead give a Permission denied. The files are accessible to root. Is there another mechanism I should…
David
  • 101
  • 2
0
votes
0 answers

Can someone explain this ACLs and umask over NFSv3 behaviour?

I have ACLs on a dir exported by NFSv3: $ getfacl t1 # file: t1 # owner: root # group: some_group # flags: -s- user::rwx group::rwx other::--- default:user::rwx default:group::rwx default:mask::rwx default:other::--- A member of some_group creates…
uli42
  • 305
  • 1
  • 4
  • 9
0
votes
1 answer

Remote ssh login does not respect pam umask

My server is on Ubuntu 22.04.1, and recently I discovered that the result of the umask command is 0002 instead of 0022 in an SSH session (non-root), which is odd because I have not messed with any related settings. I have checked and to the best of…
tearfur
  • 1
  • 1
0
votes
0 answers

Setting UMask in systemd override.conf is ignored

I'm using amavisd on fedora33 and trying to change the file permissions on the socket it creates so nagios and nrpe can read the file in the amavis group. The file permissions currently are as such: # ls -l /run/amavisd/amavisd.sock srwxr-x--- 1…
Alex Regan
  • 143
  • 6
-1
votes
1 answer

setting umask for a directory so that all directories, executable file(.sh , .cmd, .bat) are 750 and regular file 640

need to create and change existing file and directory such that all directories and executable files(*.sh, *.bat, *.cmd ..) are 750 and regular file are 640 . I need to this in shell and python both. I like to set umask to 027 while default is 022…
-1
votes
1 answer

Why are newly-created files under /root not executable even though /root is and umask is 022? Is this the default on CentOS?

I am building a small set of utility bash functions and aliases that will live on a special /root partition. I've noticed that whenever I touch aFile or vim aFile, the result is aFile with the permissions -rw-r--r--. This is highly undesirable if…
tacos_tacos_tacos
  • 3,250
  • 18
  • 63
  • 100
-1
votes
1 answer

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

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 ACL permissions enforce a rw mask for files created…
MetaChrome
  • 133
  • 10
-1
votes
2 answers

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 the permissions by doing chmod 2775 /var/www/htdocs…
john h.
  • 135
  • 1
  • 5
-2
votes
2 answers

Chmod wont stick

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 what I used: chmod -Rv 777 files the return was…
please delete me
  • 127
  • 1
  • 1
  • 5
1 2 3 4 5
6