Questions tagged [umask]

89 questions
0
votes
0 answers

DEBIAN SFTP change UMASK not working

I have a user let call him bob connecting via sftp with bob account. using for client ftp-kr in VSCODE(osx) and server debian 9, I would like to setup a umask like for ftp service. I tried adding umask 022 and also tried umask 0022 in both…
jotyhista
  • 57
  • 1
  • 1
  • 7
0
votes
1 answer

How do I get a server side umask to be honored in scp -r when creating directories?

I am trying to setup an scp receiver that allows select users, based on ssh keys, to scp files to a specific server as a user different than themselves. This is to satisfy access restrictions by corporate figures. [8^) The ultimate setup would…
0
votes
0 answers

PHP error logs and files being created with different umask

I have the umask set up on my Apache2 server using umask 002. This is added to the end of /etc/apache2/envvars during the docker container build. I have the following script to test: // Create file if ($fp = fopen(time() . '.txt', 'w')) { …
Wildcard27
  • 131
  • 6
0
votes
1 answer

using umask to set default file settings

I am setting default umask of linux box for the first time. I log in as root user on a Centos 6 server. I want these default values: owner: read/execute/write (7) group: read/execute (5) other: read (4) To get umask value, I deduct targets from…
user747
  • 3
  • 1
0
votes
1 answer

internal-sftp -u 002 is ignored for copied files

I configured OpenSSH like this Subsystem sftp internal-sftp Match Group sftp ForceCommand internal-sftp -u 002 AuthorizedKeysFile /home/sftp/ssh/%u ChrootDirectory %h X11Forwarding no AllowTcpForwarding no This configuration…
RafaelKr
  • 101
  • 4
0
votes
1 answer

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 and added --umask arg to start-stop-daemon…
baldrs
  • 103
  • 1
  • 5
0
votes
1 answer

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 set the normal permissions for the new created…
user143807
0
votes
1 answer

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 automatically setting +rwx on a particular user's created…
SeanFromIT
  • 212
  • 1
  • 5
0
votes
1 answer

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 from accessing the files. The umask is defined as…
drcelus
  • 1,254
  • 4
  • 14
  • 28
0
votes
1 answer

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? upload file by CuteFtp my username is not ROOT suphp…
Hamid Tanhaei
0
votes
2 answers

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? Thanks
Bob
  • 1
  • 1
0
votes
1 answer

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 the logs are going to 'somelog.log' and it's owned…
David
  • 103
  • 3
0
votes
1 answer

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 pam.umask.so umask=0027 Thanks.
The Pixel Developer
  • 857
  • 3
  • 10
  • 20
0
votes
2 answers

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 directories having permission rwx--x--x). Is this possible?
Cody
  • 1
  • 1
0
votes
2 answers

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 2011-03-30 14:03…