diff options
author | Steffen Nurpmeso <steffen@sdaoden.eu> | 2021-01-30 23:10:12 +0100 |
---|---|---|
committer | Steffen Nurpmeso <steffen@sdaoden.eu> | 2021-01-30 23:13:41 +0100 |
commit | 254e705c27a7ac96d70ebe275e68fbd4acc5c87e (patch) | |
tree | 3e660e69e0d54334f1868b882d3aa7e870ef0169 /pam_xdg/pam_xdg.8 | |
parent | b9c269e2db079cc1a2f34dcbcfb85265293afaca (diff) | |
download | contrib-254e705c27a7ac96d70ebe275e68fbd4acc5c87e.tar.gz contrib-254e705c27a7ac96d70ebe275e68fbd4acc5c87e.tar.xz |
pam_xdg: new port: all-around carefree XDG Base Directories package
Diffstat (limited to 'pam_xdg/pam_xdg.8')
-rw-r--r-- | pam_xdg/pam_xdg.8 | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/pam_xdg/pam_xdg.8 b/pam_xdg/pam_xdg.8 new file mode 100644 index 000000000..013fb7ea1 --- /dev/null +++ b/pam_xdg/pam_xdg.8 @@ -0,0 +1,85 @@ +.\"@ pam_xdg - manage XDG Base Directories (runtime dir life time, environ). +.\" +.\" Copyright (c) 2021 Steffen Nurpmeso <steffen@sdaoden.eu>. +.\" SPDX-License-Identifier: ISC +.\" +.\" Permission to use, copy, modify, and/or distribute this software for any +.\" purpose with or without fee is hereby granted, provided that the above +.\" copyright notice and this permission notice appear in all copies. +.\" +.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +. +.Dd January 30, 2021 +.Dt PAM_XDG 8 +.Os +. +. +.Sh NAME +.Nm pam_xdg.so +.Nd PAM module that manages XDG Base Directories +. +. +.Sh SYNOPSIS +. +.Nm +.Op Ar rundir +.Op Ar notroot +. +. +.Sh DESCRIPTION +. +.Nm +is a PAM module that manages creation and deletion of the +.Ev XDG_RUNTIME_DIR +directory, as well as injection of environment variables denoting all +directories specified by the +.Lk https://specifications.\:freedesktop.\:org/basedir-\:\ +spec/\:basedir-\:spec-\:latest.html "XDG Base Directory Specification" +into user sessions. +. +.Pp +When linked into the PAM system, the runtime directory will be created as +.Ql /run/user/`id -u` +once a user creates his or her first login session, and it will be +removed recursively once the last such session ends. +Unless +.Ar rundir +was given all XDG related environment variables will be created in the +user session with their default or computed values, otherwise only +.Ev XDG_RUNTIME_DIR . +If +.Ar notroot +was given the module will bypass itself for root account logins, that +is, no actions will be performed. +. +.Pp +In order to make use of this script, place the following in the control +file of desire under +.Pa /etc/pam.d , +best maybe +.Pa /etc/pam.d/common-session +if that exists (possibly adjusting paths): +. +.Bd -literal -offset indent +session optional pam_xdg.so notroot +.Ed +. +. +.Sh "SEE ALSO" +. +.Xr pam.conf 5 , +.Xr pam.d 8 , +.Xr pam 8 +. +. +.Sh AUTHORS +. +.An "Steffen Nurpmeso" Aq steffen@sdaoden.eu . +. +.\" s-ts-mode |