The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
54 views

Where does Debian take the default umask from?

With a fresh ssh login: $ umask 0007 But: $ find . -maxdepth 1 -name '.*' -type f | xargs grep 007 | less $ # grep 007 /etc/profile # # grep -i umask /etc/login.defs # UMASK ...
1
vote
1answer
44 views

Why does umask use this complicated numeric system?

I am trying to learn how to use umask but it seems so complicated. Besides all the subtractions that I have to make in my head seperately for directories and files every time I see a mask value, the ...
0
votes
1answer
199 views

666 permission even after making umask= 0000

I made my umask = 0000. However when I am creating a file it has 666 permission. Although directories get 777 , that's alright. Also my aim is to create file/dir with permissions 774, I guess umask ...
1
vote
2answers
2k views

How to set umask globally?

I am using a private user group setup, i.e. a user foo's home directory is owned by foo:foo, not foo:users. For this to work, I need to set the umask to 002 globally. After a quick grep -RIi umask ...
0
votes
2answers
6k views

How to set umask for a folder and it's subfolder?

I'm working on the same directory with some friends and they access it via SSH. I added us in the same group and defined a sticky bit to keep the user:group values the same. But when a user create a ...
0
votes
1answer
169 views

group permissions for scp

We have a server running as a firebird user. We want to scp files to the server that are need by firebird but copied as another user: it-test. What is the best way to set that up on the ...
1
vote
0answers
96 views

OS X: change root umask for su?

In recent versions of OS X (10.6+), the sudo command by default takes the "union" (bitwise or) of 0022 and the caller's user mask. This can lead to problems if the umask is more restrictive than 0022: ...
1
vote
1answer
1k views

I get 700 when I make a test file, but umask is 0002? Why isn't it 664 ?

Where do the default values of 666 and 777, for files and directories respectively, get stored? umask 0002 touch dummy ls -l Tells me that dummy's permissions are 700 as opposed to the expected ...
6
votes
2answers
4k views

How does local_umask and file_open_mode work?

I had some problems with the filepermissions when local users uploaded their files via vsftp to a server. I wanted the files to have all 766 permissions. After a lot of trial and error I found out ...
1
vote
0answers
228 views

SVN export yields different file permissions on 2 systems with same umask

I have a machine with Ubuntu 10.10 and a machine with Ubuntu 11.10. When I do a svn export on the 10.10 machine, this gives all directories a 755 permission. The 11.10 machine sets the directories to ...
0
votes
1answer
1k views

How can I mount ext3 with restricted permissions, like setting uid, gid and umask?

I want to mount an ext3 filesystem on a device with uid, gid, umask options set. When I use these options during mount, I get an error. Below is the command I am using to mount: mount -t ext3 -o ...
2
votes
1answer
569 views

What is the equivalent of umask in Finder?

It is not entirely a problem with Finder. It happens system-wise. Whenever I create a file in osx, the permission is always set to owner read/write and the rest read only -rw-r--r-- 1 me mygroup ...
3
votes
1answer
2k views

How do you apply umask settings to an account that doesn't log in?

On my Ubuntu 11.04x64 server, I have service accounts running which do not log in and do not have home directories. These service accounts are responsible for running processes which are invoked as ...
10
votes
1answer
5k views

git: how can i config git to ignore file permissions changes

I have some git projects in a linux server. i use Mac and linux to do my programming. the problem is that the mac filesystem's permissions doesn't really work well like in linux so all the files ...
7
votes
3answers
8k views

How to set default permissions for files moved or copied to a directory?

My question is similar to How to set the default file permissions on ALL newly created files in linux - but differs in important ways: I want all files created in (or copied to or moved to) a certain ...
0
votes
2answers
254 views

Why does different parameters for umask result in the same file permissions?

I tried changing umask settings for some files as: umask 0012 for file c: -rw-rw-r-- 1 unipro unipro 0 2010-10-15 11:30 c umask 0013 for file d: -rw-rw-r-- 1 unipro unipro 0 2010-10-15 ...
6
votes
1answer
2k views

Can I set the umask on a specific directory?

I have a fairly restrictive umask setting (0077). This is fine, except I have one directory in which I'd like a more permissive setting (0002) to all files created anywhere under that directory. Is ...