On Thu, Aug 20, 2015 at 11:52 AM, Paul Gilmartin <
[email protected]> wrote:

> On Thu, 20 Aug 2015 16:26:30 +0000, J O Skip Robinson wrote:
>
> >No unique catalog for USS objects. System level OMVS all have the same
> HLQ pointing to a general purpose user catalog. Individual USS files
> typically have the user's HLQ or some other HLQ associated with the
> application; these all go into the user catalog associated with the alias.
> >
> But beware.  There are warnings that using user HLQs for UNIX repositories
> engenders
> an opportunity for escalation of privileges, etc.  Provided the user can
> reverse-engineer
> the HFS/zFS format, dismount the UNIX FS, and tweak the SUID bit, etc.
> (Do mount maps provide a NOSUID attribute?)
>
> >I've never investigated this, but I suspect that HFS/ZFS in general are
> much more stable than traditional MVS files. No GDGs, no temporary
> allocate/delete processes in batch. Allocate once, use forever at the MVS
> file level because the dynamic activity is all in the USS directory
> structure. I see no reason for a unique catalog.
> >
> Temporary data sets (are we discussing the same thing?) are among the
> Classic
> features I miss most in UNIX.
>

​I have, somewhat, addressed this by using AUTOMOUNT. I have a /tmp2
directory under AUTOMOUNT with a control file like:

name *
type ZFS
Filesystem TSSPV.&SYSNAME..TMP.<uc_name>.ZFS
mode rdwr
allocuser space(20,10) cyl dataclas(DCSTD)
parm FSFULL(70,10)
delay 10
duration 10
setuid No

Then, in /etc/profile:

luser=${LOGNAME}
typeset -l luser #lower case it
if [ $luser = tempunix ]; then
   export TMPDIR=/tmp/unassigned
   test -d ${TMPDIR} || mkdir -m 700 ${TMPDIR}
else
   export TMPDIR=/tmp2/${luser}
fi
export TMP=${TMPDIR}
export TEMP=${TMPDIR} # some bad people
export TEMPDIR=${TMPDIR} # more bad programmers

This takes care of most UNIX programs.



>
> -- gil
>
>
-- 

Schrodinger's backup: The condition of any backup is unknown until a
restore is attempted.

Yoda of Borg, we are. Futile, resistance is, yes. Assimilated, you will be.

He's about as useful as a wax frying pan.

10 to the 12th power microphones = 1 Megaphone

Maranatha! <><
John McKown

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to