09-30-2008
Actually the default mode depends on the program which creates the file; often it's 666 minus umask or 644 minus umask. Very rarely does a program attempt to create a file with the executable bit set.
2 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to propose a change to the run script environment. This would change the effective group of the wsadmin account to prodview with a umask of 027 before running our services. In linux this can be accomplished by the following
#!/bin/ksh
#
# Original shell
#
newgrp prodview <<... (1 Reply)
Discussion started by: sindhu puja
1 Replies
2. UNIX for Dummies Questions & Answers
Hello All,
Below is the content of the XML datafile when i do vi the XML file not sure why the content is showing like this, it could be because the data inside the file is masked or something? is there a way i can decrypt or unmask the data in a human readable format? . When i use my Informatica... (20 Replies)
Discussion started by: Ariean
20 Replies
umask(2) System Calls Manual umask(2)
NAME
umask - set and get file creation mask
SYNOPSIS
DESCRIPTION
sets the process's file mode creation mask to cmask and returns the previous value of the mask. Only the file access permission bits of
the masks are used.
The bits set in cmask specify which permission bits to turn off in the mode of the created file, and should be specified using the symbolic
values defined in stat(5).
EXAMPLES
The following creates a file named in the current directory with permissions so that the file can be written only by its owner, and can be
read or executed only by the owner or processes with group permission, even though group write permission and all permissions for others
are passed in to
RETURN VALUE
The previous value of the file mode creation mask is returned.
SEE ALSO
mkdir(1), sh(1), mknod(1M), chmod(2), creat(2), mknod(2), open(2).
STANDARDS CONFORMANCE
umask(2)