PAM_UMASK



PAM_UMASK


NAME
pam_umask − PAM module to set the file mode creation mask

SYNOPSIS

pam_umask.so [debug] [silent] [usergroups] [umask=mask]

DESCRIPTION

pam_umask is a PAM module to set the file mode creation mask of the current environment. The umask affects the default permissions assigned to newly created files.

The PAM module tries to get the umask value from the following places in the following order:

• umask= argument

• umask= entry of the users GECOS field

• pri= entry of the users GECOS field

• ulimit= entry of the users GECOS field

• UMASK= entry from /etc/default/login

• UMASK entry from /etc/login.defs

OPTIONS
debug

Print debug information.

silent

Don´t print informative messages.

usergroups

If the user is not root and the username is the same as primary group name, the umask group bits are set to be the same as owner bits (examples: 022 −> 002, 077 −> 007).

umask=mask

Sets the calling process´s file mode creation mask (umask) to mask & 0777. The value is interpreted as Octal.

MODULE TYPES PROVIDED
Only the session type is provided.

RETURN VALUES
PAM_SUCCESS

The new umask was set successfully.

PAM_SERVICE_ERR

No username was given.

PAM_USER_UNKNOWN

User not known.

EXAMPLES
Add the following line to /etc/pam.d/login to set the user specific umask at login:

session optional pam_umask.so umask=0022

SEE ALSO
pam.conf
(5), pam.d(5), pam(8)

AUTHOR
pam_umask was written by Thorsten Kukuk <kukuk@thkukuk.de>.



More Linux Commands

manpages/authunix_create_default.3.html
authunix_create_default(3) - library routines for remote pro
These routines allow C programs to make procedure calls on other machines across the network. First, the client calls a procedure to send a data packet to the s

manpages/glActiveTextureARB.3gl.html
glActiveTextureARB(3gl) - select active texture unit........
glActiveTextureARB selects which texture unit subsequent texture state calls will affect. The number of texture units an implementation supports is implementati

manpages/XvListImageFormats.3.html
XvListImageFormats(3) - return list of image formats support
XvListImageFormats(3) returns the XvImageFormatValues supported by the specified port. This list should be freed with XFree(3). Returned Values XvImageFormatVal

manpages/git-mailsplit.1.html
git-mailsplit(1) - Simple UNIX mbox splitter program........
Splits a mbox file or a Maildir into a list of files: 0001 0002 .. in the specified directory so you can process them further from there. Important Maildir spli

manpages/gpgv2.1.html
gpgv2(1) - Verify OpenPGP signatures - Linux manual page....
gpgv2 is an OpenPGP signature verification tool. This program is actually a stripped-down version of gpg which is only able to check signatures. It is somewhat

manpages/Tk_BindEvent.3.html
Tk_BindEvent(3) - invoke scripts in response to X events....
These procedures provide a general-purpose mechanism for creating and invoking bindings. Bindings are organized in terms of binding tables. A binding table cons

manpages/cyrus.conf.5.html
cyrus.conf(5) - Cyrus configuration file - Linux man page...
/etc/cyrus.conf is the configuration file for the Cyrus master process. It defines the startup procedures, services and events to be spawned by master. The /etc

manpages/gnutls_strerror_name.3.html
gnutls_strerror_name(3) - API function - Linux manual page
Return the GnuTLS error code define as a string. For example, gnutls_strerror_name (GNUTLS_E_DH_PRIME_UNACCEPTABLE) will return the string GNUTLS_E_DH_PRIME_UNA

manpages/significandl.3.html
significandl(3) - get mantissa of floating-point number.....
The significand() function returns the mantissa of x scaled to the range [1,2). It is equivalent to scalb(x, (double) -ilogb(x)) This function exists mainly for

manpages/prctl.2.html
prctl(2) - operations on a process - Linux manual page......
prctl() is called with a first argument describing what to do (with values defined in &lt;linux/prctl.h&gt;), and further arguments with a significance depending on t

manpages/XvQueryExtension.3.html
XvQueryExtension(3) - return version and release of extensio
XvQueryExtension(3) returns the version and release numbers for the Xv video extension currently loaded on the system. The extension major request number, event

manpages/atd.8.html
atd(8) - run jobs queued for later execution (Man Page).....
atd runs jobs queued by at(1). OPTIONS -l Specifies a limiting load factor, over which batch jobs should not be run, instead of the compile-time choice of 0.8.





We can't live, work or learn in freedom unless the software we use is free.