Questions tagged [umask]

89 questions
2
votes
1 answer

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. But my problem is I can't find where ftpd is…
Will
  • 441
  • 5
  • 13
2
votes
1 answer

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 restart my apache server. As an example, after…
arod
  • 582
  • 6
  • 19
2
votes
2 answers

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 gets permission rw-rw-rw. I also tried setting umask…
djdy
  • 583
  • 2
  • 4
  • 15
2
votes
1 answer

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 /usr/lib/openssh/sftp-server to Subsystem sftp…
user68802
  • 203
  • 4
  • 7
2
votes
1 answer

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 contains a sub directory which serves as the web…
duncmc
  • 175
  • 2
  • 8
2
votes
1 answer

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 belonging to the same secondary group (let's say…
Anatoly
  • 21
  • 1
2
votes
2 answers

Understanding Permissions with ProFTPD (Especially Group Write)

I have proftpd running under user proftpd. I have a new virtual server in ProFTPD called "example.com" pointing to /var/www/example.com. I have chowned the /var/www/example.com folder with user "example_com" and group "www-data". I have set the…
ServerChecker
  • 1,518
  • 2
  • 14
  • 35
2
votes
2 answers

Apache umask 002 not changing permissions

I have used [root ~]$ echo "umask 002" >> /etc/sysconfig/httpd [root ~]$ service httpd restart restarted apache many times but whenever i install something from script the directories are still not group writable. What should i do I have checked…
John
2
votes
1 answer

Remote command has different umask

ssh user@host "umask" gives 0174 ssh user@host and the umask from server shell gives 0002 Could you please explain how can it happen? UPD: Actually, it was /etc/passwd overriding umask.
1
vote
1 answer

How to set umask for Apache on Amazon Linux 2 AMI

I want to set umask 0002 for Apache httpd so that certain files that it creates will be writable by other users. The traditional solutions don't seem to work on Amazon Linux 2 AMI.
dln385
  • 121
  • 4
1
vote
1 answer

set umask 000 on Windows?

Sorry if this sounds like a dumb question, but don't have a lot of experience with NFS and Windows together. I have a user on a Win10 ENT box, connected up to a FreeBSD server. And with the Macs, when we get a new one, we have to set the umask to…
LoonyD
  • 23
  • 4
1
vote
1 answer

NFS files and directories created with wrong permissions from MacOS client

I have a simple NFS share setup on CentOS 7 to allow my Mac to manage files in the /var/www/html directory: /var/www/html 192.168.1.107(all_squash,anonuid=1000,anongid=1001,rw,sync) Files and directories are created with the correct UID and GID, but…
Craig Jacobs
  • 173
  • 1
  • 7
1
vote
1 answer

Set umask 0002 for apache user: www-data

I'm running ubuntu 14.04 and would like to have apaches www-data user to create files that are writable by all users within that same group www-data. So far I've tried to add umask 0002 or umask 002 to /etc/apache2/envvar but didn't have any…
jrn
  • 113
  • 5
1
vote
0 answers

openssh sftp server file permissions not being set by umask (but folder perms are)

I am running the openssh sftp server like so: Subsystem sftp /usr/libexec/openssh/sftp-server -u 002 And the folders I upload via sftp get these permissions: drwxrwxr-x 12 developer staff 4096 Dec 10 13:20 one drwxrwxr-x 4 developer…
Christof
  • 121
  • 3
1
vote
1 answer

SFTP clients not respecting default UMASK permissions

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 folder). My issue is that SFTP clients on the Mac…
Marcelo Somers
  • 11
  • 1
  • 1
  • 2