.TH tmpdir 1 "6 April 1999" "Local tools"
.SH NAME
tmpdir \- choose, or check a choice of, temporary directory
.TH tmpdir 1 "6 April 1999" "Local tools"
.SH NAME
tmpdir \- choose, or check a choice of, temporary directory
.B tmpdir
program finds a secure place for temporary files, creating one if
necessary. The criteria it uses to choose a place are as follows:
.B tmpdir
program finds a secure place for temporary files, creating one if
necessary. The criteria it uses to choose a place are as follows:
The temporary directory must be owned by the user, and have mode 700
(i.e., readable, writable and searchable only by the owner).
The temporary directory must be owned by the user, and have mode 700
(i.e., readable, writable and searchable only by the owner).
The path through the filesystem to the temporary directory must be
secure against modifications by other malicious users. See the
.BR chkpath (1)
The path through the filesystem to the temporary directory must be
secure against modifications by other malicious users. See the
.BR chkpath (1)
.B tmpdir
gives up: if your home directory's not secure (or full) than a secure
temporary directory is the least of your worries.
.B tmpdir
gives up: if your home directory's not secure (or full) than a secure
temporary directory is the least of your worries.
Don't try to find a temporary directory; just see whether
.I dir
is secure, and exit successfully if it is (and unsuccessfully if it
Don't try to find a temporary directory; just see whether
.I dir
is secure, and exit successfully if it is (and unsuccessfully if it