summaryrefslogtreecommitdiff
path: root/modules/pam_umask
diff options
context:
space:
mode:
Diffstat (limited to 'modules/pam_umask')
-rw-r--r--modules/pam_umask/.cvsignore2
-rw-r--r--modules/pam_umask/README58
-rw-r--r--modules/pam_umask/pam_umask.896
3 files changed, 2 insertions, 154 deletions
diff --git a/modules/pam_umask/.cvsignore b/modules/pam_umask/.cvsignore
index 621104aa..d53ba152 100644
--- a/modules/pam_umask/.cvsignore
+++ b/modules/pam_umask/.cvsignore
@@ -6,3 +6,5 @@
.libs
Makefile
Makefile.in
+README
+pam_umask.8
diff --git a/modules/pam_umask/README b/modules/pam_umask/README
deleted file mode 100644
index 69003ec3..00000000
--- a/modules/pam_umask/README
+++ /dev/null
@@ -1,58 +0,0 @@
-pam_umask — PAM module to set the file mode creation 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 user ID is equal to the group ID, 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.
-
-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
-
-
-AUTHOR
-
-pam_umask was written by Thorsten Kukuk <kukuk@thkukuk.de>.
-
diff --git a/modules/pam_umask/pam_umask.8 b/modules/pam_umask/pam_umask.8
deleted file mode 100644
index 43160d63..00000000
--- a/modules/pam_umask/pam_umask.8
+++ /dev/null
@@ -1,96 +0,0 @@
-.\" Title: pam_umask
-.\" Author:
-.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
-.\" Date: 08/06/2006
-.\" Manual: Linux\-PAM Manual
-.\" Source: Linux\-PAM Manual
-.\"
-.TH "PAM_UMASK" "8" "08/06/2006" "Linux\-PAM Manual" "Linux\-PAM Manual"
-.\" disable hyphenation
-.nh
-.\" disable justification (adjust text to left margin only)
-.ad l
-.SH "NAME"
-pam_umask \- PAM module to set the file mode creation mask
-.SH "SYNOPSIS"
-.HP 13
-\fBpam_umask.so\fR [debug] [silent] [usergroups] [umask=\fImask\fR]
-.SH "DESCRIPTION"
-.PP
-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.
-.PP
-The PAM module tries to get the umask value from the following places in the following order:
-.TP 3n
-\(bu
-umask= argument
-.TP 3n
-\(bu
-umask= entry of the users GECOS field
-.TP 3n
-\(bu
-pri= entry of the users GECOS field
-.TP 3n
-\(bu
-ulimit= entry of the users GECOS field
-.TP 3n
-\(bu
-UMASK= entry from /etc/default/login
-.TP 3n
-\(bu
-UMASK entry from /etc/login.defs
-.sp
-.RE
-.SH "OPTIONS"
-.PP
-.TP 3n
-\fBdebug\fR
-Print debug information.
-.TP 3n
-\fBsilent\fR
-Don't print informative messages.
-.TP 3n
-\fBusergroups\fR
-If the user is not root, and the user ID is equal to the group ID, 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).
-.TP 3n
-\fBumask=\fR\fB\fImask\fR\fR
-Sets the calling process's file mode creation mask (umask) to
-\fBmask\fR
-& 0777. The value is interpreted as Octal.
-.SH "MODULE SERVICES PROVIDED"
-.PP
-Only the
-\fBsession\fR
-service is supported.
-.SH "RETURN VALUES"
-.PP
-.TP 3n
-PAM_SUCCESS
-The new umask was set successfull.
-.TP 3n
-PAM_SERVICE_ERR
-No username was given.
-.TP 3n
-PAM_USER_UNKNOWN
-User not known.
-.SH "EXAMPLES"
-.PP
-Add the following line to
-\fI/etc/pam.d/login\fR
-to set the user specific umask at login:
-.sp
-.RS 3n
-.nf
- session optional pam_umask.so umask=0022
-
-.fi
-.RE
-.sp
-.SH "SEE ALSO"
-.PP
-
-\fBpam.conf\fR(5),
-\fBpam.d\fR(8),
-\fBpam\fR(8)
-.SH "AUTHOR"
-.PP
-pam_umask was written by Thorsten Kukuk <kukuk@thkukuk.de>.