Are not valid commands, the last field will be ignored. It is equivalent to:
It does not set permissions for a folder, but rather determines with what permissions new files and directories will be created by the user that uses that umask.
What does
produce? Does the folder exist? What does not work exactly?
Last edited by Scrutinizer; 11-14-2019 at 07:00 PM..
Hi, I'm new to unix -solaris.
I've just upgraded a third party software product and am testing
it to see if new files created in a test database directory were being created properly and they aren't. They're owned by the user that created the file, instead of poppa and the group of their files... (2 Replies)
In our file system, the SGID for a directory is set right now. Any new files created in this directory will automatically be assigned the same group from the parent directory.
Is there a way to inherit the file permission from the parent directory as well? The OS is Solaris 2.8.
Example:... (1 Reply)
Hi All,
I have an issue that's eating my head for few days. I would appreciate if anyone could help me out in this to resolve this.
In Solaris 8 container I am facing the below issue.
As oracle user when I do ls -l in /dboracle mountpoint getting permission denied error messages.
$ ls... (3 Replies)
Hi there,
I want to restrict a users account to only a subdirectory, but it does not seem to be working.
For example
/dir1/dir2/dir3/dir4
user A is only allowed to do things in dir4. the permission is 777.
i've set the permissions to 700 on dir3, dir2, and dir1 to prevent them from... (3 Replies)
Hi folks,
I have an query that is let say i have to search in an xml file an tag that is <abcdef> now this xml file is at /opt/usr/local so one fastest way to achieve this is go to this location by cd /opt/usr/local and then do grep like this... grep -i abcdef but for this I must know the... (4 Replies)
Hi.
My example:
I have a filesystem /log. Everyday, log files are copied to /log. I'd like to set owner and permission for files and directories in /log like that
chown -R log_adm /log/*
chmod -R 544 /log/*It's OK, but just at that time. When a new log file or new directory is created in /log,... (8 Replies)
Asking about the permission inherit from the parent directory
I am running the web app with tomcat8, I did use umask 007 to set permission for folder which enable the sub files and folder inherit the permission from the parent directory, I was successful which some directories but the directories... (1 Reply)
Discussion started by: janecaongoc
1 Replies
LEARN ABOUT OSF1
umask
umask(2) System Calls Manual umask(2)NAME
umask - Sets and gets the value of the file creation mask
SYNOPSIS
#include <sys/types.h>
#include <sys/stat.h>
mode_t umask ( mode_t cmask );
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
umask(): POSIX.1, XPG4, XPG4-UNIX
Refer to the standards(5) reference page for more information about industry standards and associated tags.
PARAMETERS
Specifies the value of the file mode creation mask.
DESCRIPTION
The umask() function sets the file mode creation mask of the process to the value of the cmask parameter and returns the previous value of
the mask. The cmask parameter is constructed by logically ORing file permission bits defined in the sys/mode.h header file.
Whenever a file is created (by the open(), mkdir(), or mknod() function), all file permission bits set in the file mode creation mask are
cleared in the mode of the created file. This clearing lets users restrict the default access to their files.
The mask is inherited by child processes.
RETURN VALUES
Upon successful completion, the previous value of the file mode creation mask is returned.
RELATED INFORMATION
Commands: chmod(1), mkdir(1), Bourne shell sh(1b), POSIX shell sh(1p), umask(1)
Functions: chmod(2), mkdir(2), mknod(2), open(2), stat(2)
Standards: standards(5)
delim off
umask(2)