The umask tag has no wiki summary.
1
vote
1answer
49 views
Properly Setting Red Hat Daemon Umask
I've been trying to figure out the proper location to set daemon umasks in RedHat 5. All my searches lead to setting it in /etc/init.d/functions or /etc/sysconfig/init.
What are the pros/cons of ...
3
votes
0answers
76 views
Default umask 077 not applied at session start
I cannot get the default umask for a session to be 0077.
I have edited /etc/login.defs and set the value to 077 there:
UMASK 077
Also I've made sure the following entry exists in ...
1
vote
0answers
88 views
Apache created files and its permissions for CentOS 6.x
In short, I have an authenticated HTTP-POST that:
posts a jpg image (created as 666 apache:www) into /directory1 (777 ftpuser:www)
creates /directory2 (created as 666 apache:www) in a 777 ...
0
votes
3answers
100 views
Why is umask setting a different permission for a directory and file I have created?
Consider:
[user@server1 ~]$ umask
0770
[user@server1 ~]$ mkdir TEST2; touch TEST2.txt;
[user@server1 ~]$ ls -l
d------rwx 2 user group_name 4096 Mar 5 05:16 TEST2
-------rw- 1 user group_name 0 ...
1
vote
2answers
67 views
How can I change the umask for one command only?
How can I interactively execute a command in Linux (zsh, if it matters) with a different umask from the default, for one command only? Perhaps a combination of commands combined in a single line? The ...
1
vote
1answer
98 views
How are default permissions determined (on OS X)?
My (limited) understanding of basic Unix is that any files that are created will be created based on the permissions of the creating user. In particular, the group assigned will be the creating user's ...
2
votes
2answers
47 views
Read umask for a user
Plenty of examples on how to set umask for a user... but how do you read (or uncover) the default umask for a given user (say the logged in user)
3
votes
1answer
64 views
How to display the permissions of a new file in the status line of the Vim editor?
With the following piece of code I get the permissions for an existing file:
augroup Get_file_perm
autocmd!
autocmd BufWinEnter,FileChangedShell * let w:file_perm=getfperm(expand('%:p'))
augroup ...
0
votes
4answers
286 views
umask is not working for directories
I have an odd problem with umask.
My current setting is:
$ umask
0022
$ umask -S
u=rwx,g=rx,o=rx
This only works for files though and not directories:
$ touch abc
$ ll abc
0 -rw-rw-rw- 1 user1 ...
2
votes
2answers
112 views
Pre-defined umask under a given path [duplicate]
Possible Duplicate:
How to set default file permissions for all folders/files in a directory?
Say I have default umask, umask1. I would like all files/folders that I create/modify under a ...
1
vote
1answer
287 views
What is the difference between cmask and umask?
What is the difference between the umask setting that can be found in /etc/profile and the cmask setting that can be found in /etc/default/init?
What is the difference between the two? When will one ...
3
votes
2answers
127 views
What is the proper solution to a web server trying to write to a directory?
So, I have a box with a "deploy" user. This deploy user owns a code repository and wordpress is running on this box...
When wordpress attempts to do something like upload a plugin, it is using the ...
3
votes
1answer
304 views
umask changes to 0002 after cd
I've noticed an odd behavior on my Ubuntu 12.04 LTS system. This is my first experience with Ubuntu; previously I used Fedora and never had this problem.
I have set my umask in .bashrc to 0027. But ...
2
votes
1answer
435 views
No effect of umask and chmod on mounted drives
The windows drives are mounted at boot-time using pysdm. The setting were
nls=iso8859-1,users,umask=002,sync,user,dirsync,uid=mtk
When I try to change the permission of files using chmod, I don't ...
1
vote
3answers
863 views
Why is the default umask value for useradd in openSuSE set to 022?
I recently built a very simple test environment with oepnSuSE.
As I tried to configure a shared directory, wihtout using ACLs, but with SetGID on that directory instead for some reason, I noticed ...
4
votes
2answers
2k views
How to set umask for a system-user?
Is it possible to set the umask for a system-user (created with useradd --system username)?
1
vote
1answer
81 views
Why are directories created with permissions 2070 and files with 060 in a directory with setgid bit?
I have the following directory:
$ ll -d neptune
drwxrws---+ 5 beamin psych 4096 Mar 7 16:18 neptune
$ getfacl neptune
# file: neptune
# owner: beamin
# group: psych
# flags: -s-
user::rwx
...
2
votes
1answer
145 views
Permissions UMASK for New Directories
I have a directory "dir1" who's owner is "owner1" and it has 775 permissions.
Another user in the same group as "owner1" is called "owner2"
Whenever a file is written to "dir1" by "owner2" I need ...
3
votes
2answers
491 views
Using umask to set group permissions
A long time ago an old friend showed me a way to use an octal or hex umask with a group I think using /etc/profile. I'm not sure.
I'm trying to create group on Debian so that every member of that ...
1
vote
1answer
680 views
AIX ftpd - how to set umask for a given user?
I know how can I change the umask settings for all the users using ftpd, but how can I change the umask for a given user using FTPD?
AIX/6100-05-02-1034
FTP server (Version 4.2)
2
votes
1answer
257 views
On AIX 6100-05-02-1034 how can I create custom umask for a specific directory?
On AIX 6100-05-02-1034 how can I create custom umask for a specific directory?
3
votes
2answers
2k views
How can I have a separate umask for directory or user?
I want a separate umask for a directory or a user. How can I do this?
Edit:
I am using Debian 6.
The reason why I want to do this is, I want all my SFTP users to create files with write on group. ...
2
votes
2answers
1k views
How to make scp respect umask
My scp doesn't respect umask setting of the user it's sending files to. Is there a setting somewhere or should I use a different solution?
10
votes
3answers
690 views
Why are files in my home dir being created as world-writable despite a more-restrictive umask?
I've realized that the permissions for new files and directories behave a bit strangely. First of all, umask seems to return the right answer:
$ umask
0002
This means full access for my user and ...
3
votes
1answer
484 views
How to have correct permissions of files from usb disks?
Does anyone have the following problem?
I have an Ubuntu box at work and also one at home.
I always copy folders/files to/from an usb disk to/from my boxes.
I have to change permissions of ...
4
votes
4answers
2k views
Downsides of umask 077?
What are the cons, for having a restrictive umask of 077? A lot of distros (I believe all, except Red Hat? ) have a default umask of 022, configured in /etc/profile. This seems way too insecure for a ...
