.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "PAGSH 1" .TH PAGSH 1 2024-03-20 OpenAFS "AFS Command Reference" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME pagsh, pagsh.krb \- Creates a new PAG .SH SYNOPSIS .IX Header "SYNOPSIS" \&\fBpagsh\fR .PP \&\fBpagsh.krb\fR .SH DESCRIPTION .IX Header "DESCRIPTION" The \fBpagsh\fR command creates a new command shell (owned by the issuer of the command) and associates a new \fIprocess authentication group\fR (PAG) with the shell and the user. A PAG is a number guaranteed to identify the issuer of commands in the new shell uniquely to the local Cache Manager. The PAG is used, instead of the issuer's UNIX UID, to identify the issuer in the credential structure that the Cache Manager creates to track each user. .PP Any tokens acquired subsequently (presumably for other cells) become associated with the PAG, rather than with the user's UNIX UID. This method for distinguishing users has two advantages: .IP \(bu 2 It means that processes spawned by the user inherit the PAG and so share the token; thus they gain access to AFS as the authenticated user. In many environments, for example, printer and other daemons run under identities (such as the local superuser \f(CW\*(C`root\*(C'\fR) that the AFS server processes recognize only as \f(CW\*(C`anonymous\*(C'\fR. Unless PAGs are used, such daemons cannot access files in directories whose access control lists (ACLs) do not extend permissions to the system:anyuser group. .IP \(bu 2 It closes a potential security loophole: UNIX allows anyone already logged in as the local superuser \f(CW\*(C`root\*(C'\fR on a machine to assume any other identity by issuing the UNIX \fBsu\fR command. If the credential structure is identified by a UNIX UID rather than a PAG, then the local superuser \&\f(CW\*(C`root\*(C'\fR can assume a UNIX UID and use any tokens associated with that UID. Use of a PAG as an identifier eliminates that possibility. .PP The (mostly obsolete) \fBpagsh.krb\fR command is the same as \fBpagsh\fR except that it also sets the KRBTKFILE environment variable, which controls the default Kerberos v4 ticket cache, to \fI/tmp/tktpX\fR where \fIX\fR is the number of the user's PAG. This is only useful for AFS cells still using Kerberos v4 outside of AFS and has no effect for cells using Kerberos v5 and \fBaklog\fR or \fBklog.krb5\fR. .SH CAUTIONS .IX Header "CAUTIONS" Each PAG created uses two of the memory slots that the kernel uses to record the UNIX groups associated with a user. If none of these slots are available, the \fBpagsh\fR command fails. This is not a problem with most operating systems, which make at least 16 slots available per user. .PP In cells that do not use an AFS-modified login utility, use this command to obtain a PAG before issuing the \fBklog\fR command (or include the \&\fB\-setpag\fR argument to the \fBklog\fR command). If a PAG is not acquired, the Cache Manager stores the token in a credential structure identified by local UID rather than PAG. This creates the potential security exposure described in "DESCRIPTION". .PP If users of NFS client machines for which AFS is supported are to issue this command as part of authenticating with AFS, do not use the \fBfs exportafs\fR command's \fB\-uidcheck on\fR argument to enable UID checking on NFS/AFS Translator machines. Enabling UID checking prevents this command from succeeding. See \fBklog\fR\|(1). .PP If UID checking is not enabled on Translator machines, then by default it is possible to issue this command on a properly configured NFS client machine that is accessing AFS via the NFS/AFS Translator, assuming that the NFS client machine is a supported system type. The \fBpagsh\fR binary accessed by the NFS client must be owned by, and grant setuid privilege to, the local superuser \f(CW\*(C`root\*(C'\fR. The complete set of mode bits must be \&\f(CW\*(C`\-rwsr\-xr\-x\*(C'\fR. This is not a requirement when the command is issued on AFS client machines. .PP However, if the translator machine's administrator has enabled UID checking by including the \fB\-uidcheck on\fR argument to the \fBfs exportafs\fR command, the command fails with an error message similar to the following: .PP .Vb 2 \& Warning: Remote setpag to has failed (err=8). . . \& setpag: Exec format error .Ve .SH EXAMPLES .IX Header "EXAMPLES" In the following example, the issuer invokes the C shell instead of the default Bourne shell: .PP .Vb 1 \& # pagsh \-c /bin/csh .Ve .SH "PRIVILEGE REQUIRED" .IX Header "PRIVILEGE REQUIRED" None .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fBaklog\fR\|(1), \&\fBfs_exportafs\fR\|(1), \&\fBklog\fR\|(1), \&\fBtokens\fR\|(1) .SH COPYRIGHT .IX Header "COPYRIGHT" IBM Corporation 2000. All Rights Reserved. .PP This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.