12.07.2015 Views

USS News in z/OS V1R13

USS News in z/OS V1R13

USS News in z/OS V1R13

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong><strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>Robert Her<strong>in</strong>gTechnical Support Competence CenterRobert.Her<strong>in</strong>g@de.ibm.comIBM TSCC SW Ma<strong>in</strong>z 14.03.12 © 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>Overview zFS news - overview and <strong>in</strong>stallation changes zFS performance comparisons <strong>in</strong> sysplex shar<strong>in</strong>g <strong>USS</strong> news – <strong>USS</strong> and RACF changes Ported Tools sudo TECC offer<strong>in</strong>gs2 IBM TSCC SW Ma<strong>in</strong>z 14.03.12© 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>zFS news - overview and <strong>in</strong>stallationchangesIBM TSCC SW Ma<strong>in</strong>z 14.03.12 © 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>New zFS functions zFS Direct I/O (DIO)– Performance improvement for <strong>USS</strong> sysplex shar<strong>in</strong>g zFS <strong>in</strong>ternal restart– Improvement for zFS <strong>in</strong>ternal failures zFS automatic re-enablement of disabledaggregates– Improvement for zFS aggregate failures zFS DASD space considerations– zFS changed the way of stor<strong>in</strong>g data4 IBM TSCC SW Ma<strong>in</strong>z 14.03.12© 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>Changes <strong>in</strong> zFS <strong>in</strong>stallation zFS load modules moved to a PDSE library– named SYS1.SIEALNKE, for example UNIX command zfsadm uses a sticky bit ON script– Named IOEZADM that executes module IOEZADM– Sometimes confus<strong>in</strong>g– An external l<strong>in</strong>k <strong>in</strong> /usr/local/b<strong>in</strong> can be better5 IBM TSCC SW Ma<strong>in</strong>z 14.03.12© 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>Command zfsadm$> command -V zfsadmzfsadm is cached /b<strong>in</strong>/zfsadm$> cat /b<strong>in</strong>/zfsadm | tail -3PATH=$PATH:/usr/lpp/dfs/global/b<strong>in</strong>IOEZADM "$@"$> ls -l /usr/lpp/dfs/global/b<strong>in</strong>/IOEZADM | awk '{pr<strong>in</strong>t $1}'-rwxr-xr-t$> zfsadmIOEZ00233I IOEZADM: Type 'IOEZADM help' or 'IOEZADM help -topic' for help.$> IOEZADM helpIOEZADM: FSUM7351 not found$>6 IBM TSCC SW Ma<strong>in</strong>z 14.03.12© 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>Command zfsadm ...$> sudo ln -e IOEZADM /usr/local/b<strong>in</strong>/zfsadm$> export PATH$> command -V zfsadmzfsadm is /usr/local/b<strong>in</strong>/zfsadm$> zfsadmIOEZ00233I zfsadm: Type 'zfsadm help' or 'zfsadm help -topic'for help.$> zfsadm help | head -l2IOEZ00229I zfsadm: Commands are:aggr<strong>in</strong>fo Obta<strong>in</strong> <strong>in</strong>formation on an attached aggregate$> #Be careful when us<strong>in</strong>g the bash shell$>7 IBM TSCC SW Ma<strong>in</strong>z 14.03.12© 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>zFS statement of direction z/<strong>OS</strong> <strong>V1R13</strong> is planned to be the last release tosupport multi-file system zFS aggregates, <strong>in</strong>clud<strong>in</strong>gzFS clones.– zFS multi-file system aggregates are be<strong>in</strong>g removed.– Also, the zFS clone function is be<strong>in</strong>g removed.8 IBM TSCC SW Ma<strong>in</strong>z 14.03.12© 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>zFS performance comparisons <strong>in</strong> sysplexshar<strong>in</strong>gIBM TSCC SW Ma<strong>in</strong>z 14.03.12 © 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>zFS performance comparisons Based on DIO for sysplex-aware mounted R/W zFSfile systems– A client system can have the same performance for dataaccess– Requirement MR1211023911 addressed to zFS solved This is not true for metadata access– Complex f<strong>in</strong>ds should still be run on the ow<strong>in</strong><strong>in</strong>g system– Ignor<strong>in</strong>g this can still lead to zFS ownership movement10 IBM TSCC SW Ma<strong>in</strong>z 14.03.12© 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong><strong>USS</strong> news – <strong>USS</strong> and RACF changesIBM TSCC SW Ma<strong>in</strong>z 14.03.12 © 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>Symbolic l<strong>in</strong>ks for version root filesystem New support <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>– This elim<strong>in</strong>ates post-<strong>in</strong>stallation actions by def<strong>in</strong><strong>in</strong>gsymbolic l<strong>in</strong>ks for utilities to use the version root filesystem <strong>in</strong> read-only mode.– A ServerPac delivery is provided with the /usr/lib/cron,/usr/mail and /usr/spool directories as symbolic l<strong>in</strong>ks to/var.– For a CBPDO <strong>in</strong>stallation the required directories andsymbolic l<strong>in</strong>k structure are created dur<strong>in</strong>g execution of theBPXMKDIR REXX exec <strong>in</strong> SYS1.SAMPLIB.– For both a health check that is provided, OA35605 andOA35636, and named Z<strong>OS</strong>MIG<strong>V1R13</strong>_RO_SYMLINKS.12 IBM TSCC SW Ma<strong>in</strong>z 14.03.12© 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>Symbolic l<strong>in</strong>ks for version root filesystem... New symbolic l<strong>in</strong>ks for directories– /usr/lib/cron → ../../var/cron– /usr/spool → ../var/spool– /usr/mail → ../var/mail New symbolic l<strong>in</strong>ks for uucp files– /usr/lib/uucp/Systems → ../../../var/uucp/System– ...13 IBM TSCC SW Ma<strong>in</strong>z 14.03.12© 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>Lost XCF message detection XCF ordered message delivery is utilized along withassign<strong>in</strong>g sequence numbers to messages.– Each message sequence number is checked.– A lost or duplicate message results <strong>in</strong> a two system dump.– BPXPRMxx parmlib keyword for this support:L<strong>OS</strong>TMSG(ON|OFF)– SETOMVS command update:SETOMVS L<strong>OS</strong>TMSG=ON|OFF You may see a performance penalty <strong>in</strong> high z/<strong>OS</strong>UNIX traffic environments.14 IBM TSCC SW Ma<strong>in</strong>z 14.03.12© 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>Script utility to log session The script command records shell session activity.– It is similar to other UNIX and L<strong>in</strong>ux platforms.– It works with the /b<strong>in</strong>/sh and /b<strong>in</strong>/tcsh shells.– It works <strong>in</strong> the OpenSSH, rlog<strong>in</strong>, telnet and OMVS shellenvironments. Command usage:script [-aq] [file] Use either exit or Ctrl-D to exit the shell process. The script command does not support sett<strong>in</strong>g 3270passthrough mode.15 IBM TSCC SW Ma<strong>in</strong>z 14.03.12© 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>Script utility to log session... Example session$> scriptScript command is started. The file is typescript.$> iduid=888(HERING) gid=2(SYS1) groups=1047(<strong>USS</strong>TEST)$> oedit .profileFOMF0141I Unable to set 3270 passthrough mode$> exitScript command is complete. The file is typescript.$> cat ~/typescriptScript command is started on Tue Mar 13 19:08:32 2012.$> iduid=888(HERING) gid=2(SYS1) groups=1047(<strong>USS</strong>TEST)$> oedit .profileFOMF0141I Unable to set 3270 passthrough mode$> exitScript command is complete on Tue Mar 13 19:09:53 2012.$>16 IBM TSCC SW Ma<strong>in</strong>z 14.03.12© 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>Enhancement for D OMVS,W File latch contention is displayed <strong>in</strong> a new table. Filter<strong>in</strong>g options have been added.– This limits the amount of data be<strong>in</strong>g displayed.– Filter<strong>in</strong>g options:• LATCHES | Llatch activity• MESSAGES | M sent and received cross system• OTHER | Odisplay the other waiters table• AGE | Adisplay waiters wait<strong>in</strong>g > 5m<strong>in</strong>• SPECIAL | Sspecial files <strong>in</strong> other waiters table17 IBM TSCC SW Ma<strong>in</strong>z 14.03.12© 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>RACF support for z/<strong>OS</strong> UNIX user mounts Mount security requirements– Read access to SUPERUSER.FILESYS.USERMOUNT(<strong>in</strong> class UNIXPRIV)– RWX access permission to the mount po<strong>in</strong>t directory– If sticky bit is set, user must be owner of the mp directory.– The mount po<strong>in</strong>t directory must be empty.– RWX access permission to the file system root directory.– If sticky bit is set, user must be owner of the file systemroot directory.18 IBM TSCC SW Ma<strong>in</strong>z 14.03.12© 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>RACF support for z/<strong>OS</strong> UNIX user mounts... Unmount security requirements– Read access to SUPERUSER.FILESYS.USERMOUNT– User must have mounted the file system. Us<strong>in</strong>g the new supportRDEFINE UNIXPRIV SUPERUSER.FILESYS.USERMOUNTUACC(NONE)PERMIT SUPERUSER.FILESYS.USERMOUNTCLASS(UNIXPRIV) ID(userid) ACCESS(READ)SETROPTS RACLIST(UNIXPRIV) REFRESH Appropriate values <strong>in</strong> BPXPRMxx parmlib member– MAXUSERMOUNTSYS(xx) and MAXUSERMOUNTUSER(yy)19 IBM TSCC SW Ma<strong>in</strong>z 14.03.12© 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>RACF support for z/<strong>OS</strong> UNIX user mounts... Display<strong>in</strong>g <strong>in</strong>formation about user mount support– D OMVS,F,UID=PRIV|USER|uid– D OMVS,USERMOUNTS– F BPXOINIT,FILESYS=DISPLAY,GLOBAL| …FILESYSTEM=fsn|ALL– ISHELL shows nonprivileged user mount <strong>in</strong>formation.– Updated z/<strong>OS</strong> UNIX shell command df -v displays theuser ID and the effective UID for a nonprivileged usermounted file system.20 IBM TSCC SW Ma<strong>in</strong>z 14.03.12© 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>RACF support for z/<strong>OS</strong> UNIX user mounts... Perform<strong>in</strong>g a nonprivileged user mount$> cn d omvs,o | grep MAXUSERMOUNTSYSMAXUSERMOUNTSYS = 5 MAXUSERMOUNTUSER= 5$> /usr/sb<strong>in</strong>/mount -f HERING.TEST.ZFS testFOMF0504I mount error: 79 119B063BEINVAL: The parameter is <strong>in</strong>correctJrNoSetUID: N<strong>OS</strong>ETUID was not specified on the nonprivilegeduser mount <strong>in</strong>terface.$> /usr/sb<strong>in</strong>/mount -s nosetuid -f HERING.TEST.ZFS testFOMF0504I mount error: 88 119B063CENOTEMPTY: The directory is not emptyJrNonEmptyMntPtDir: The mount po<strong>in</strong>t directory is not empty.$> mkdir -m700 testumnt$> /usr/sb<strong>in</strong>/mount -s nosetuid -f HERING.TEST.ZFS testumnt$>21 IBM TSCC SW Ma<strong>in</strong>z 14.03.12© 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>Additional mount and unmount enhancements BPXPRMxx parmlib statement for non-empty mountpo<strong>in</strong>t directories:NONEMPTYMOUNTPT (NOWARN|WARN|DENY)– This sett<strong>in</strong>g can be dynamically changed us<strong>in</strong>g the SETOMVS or SETOMVS commands.– If NONEMPTYMOUNTPT is set to WARN a syslogwarn<strong>in</strong>g message is provided if a file system is mountedon a nonempty directory.22 IBM TSCC SW Ma<strong>in</strong>z 14.03.12© 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>Additional mount and unmount enhancements... Example commands on NONEMPTYMOUNTPT$> cn "d omvs,o" | grep NONEMPTYMOUNTPTSWA = ABOVE NONEMPTYMOUNTPT = NOWARN$> sudo /usr/sb<strong>in</strong>/mount -f her<strong>in</strong>g.test.zfs test$> sudo /usr/sb<strong>in</strong>/unmount test$> cn "setomvs nonemptymountpt=deny"BPXO015I THE SETOMVS COMMAND WAS SUCCESSFUL.$> sudo /usr/sb<strong>in</strong>/mount -f her<strong>in</strong>g.test.zfs testFOMF0504I mount error: 88 55B063CENOTEMPTY: The directory is not emptyJrNonEmptyMntPtDir: The mount po<strong>in</strong>t directory is not empty.$> cn "setomvs nonemptymountpt=warn"BPXO015I THE SETOMVS COMMAND WAS SUCCESSFUL.$> sudo /usr/sb<strong>in</strong>/mount -f her<strong>in</strong>g.test.zfs test$>23 IBM TSCC SW Ma<strong>in</strong>z 14.03.12© 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>Additional mount and unmount enhancements... Updates for the shell command /usr/sb<strong>in</strong>/mount– This also applies to the TSO MOUNT command.– File system type is dynamically determ<strong>in</strong>ed if option -t isnot used and file system option –o was specified.• This may cause problems if old HFS option is used!– File system name length is now verified and the mountfails if the name is larger than 44 characters.– File system name is changed to uppercase letters ifoption –t is not used and type is determ<strong>in</strong>ed to be zFS.24 IBM TSCC SW Ma<strong>in</strong>z 14.03.12© 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>Additional mount and unmount enhancements... Demonstrat<strong>in</strong>g new mount behavior <strong>in</strong> some cases$> sudo /usr/sb<strong>in</strong>/mount -f her<strong>in</strong>g.test.zfs test$> zfsowner her<strong>in</strong>g.test.zfszFS Owner : SC74 - Aggregate read-only=N, sysplex-aware=Y$> mkdir -m755 test/test2$> sudo /usr/sb<strong>in</strong>/mount -f her<strong>in</strong>g.test2.zfs -o norwshare test/test2$> zfsowner her<strong>in</strong>g.test2.zfszFS Owner : SC74 - Aggregate read-only=N, sysplex-aware=N$>25 IBM TSCC SW Ma<strong>in</strong>z 14.03.12© 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>Additional mount and unmount enhancements... Updates for the shell command /usr/sb<strong>in</strong>/unmount– The default behavior has been changed to unmount a filesystem only if the path specified is a mount po<strong>in</strong>t.– A new option –m has been created to reta<strong>in</strong> the orig<strong>in</strong>albehavior.• This means that the path specified can be any file ordirectory conta<strong>in</strong>ed <strong>in</strong> the file system.26 IBM TSCC SW Ma<strong>in</strong>z 14.03.12© 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>Additional mount and unmount enhancements... New unmount process<strong>in</strong>g on path specification$> sudo /usr/sb<strong>in</strong>/mount -qv test----A- HERING.TEST2.ZFS /u/her<strong>in</strong>g/test/test2----A- HERING.TEST.ZFS /u/her<strong>in</strong>g/test$> sudo /usr/sb<strong>in</strong>/unmount test/test2$> sudo /usr/sb<strong>in</strong>/unmount test/test2FOMF0512I Path is not a mountpo<strong>in</strong>t: test/test2$> sudo /usr/sb<strong>in</strong>/unmount -m test/test2$> sudo /usr/sb<strong>in</strong>/unmount testFOMF0512I Path is not a mountpo<strong>in</strong>t: test$>27 IBM TSCC SW Ma<strong>in</strong>z 14.03.12© 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>z/<strong>OS</strong> UNIX System Services file system access New control for access to z/<strong>OS</strong> UNIX mounted filesystems– The check<strong>in</strong>g is done based on the MVS identity.– This check<strong>in</strong>g is supported for zFS and NFS.– Adm<strong>in</strong>istrator does not require UNIX command expertise. It provides compliance and audit verification forRACF-centric <strong>in</strong>stallations. You can build user groups with <strong>USS</strong> shar<strong>in</strong>g!28 IBM TSCC SW Ma<strong>in</strong>z 14.03.12© 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>z/<strong>OS</strong> UNIX System Services file system access... Us<strong>in</strong>g the new <strong>in</strong>terface– Access control <strong>in</strong>dependent of permission, ACLs, UID 0– Used only if a profile covers the file system name– Successful access cont<strong>in</strong>ues with exist<strong>in</strong>g UNIX checks– RACF AUDITOR attribute bypasses the check.– UPDATE access is required to the FSACCESS classresource name.– Check<strong>in</strong>g is only performed if the FSACCESS class isactive.29 IBM TSCC SW Ma<strong>in</strong>z 14.03.12© 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>RACF setup and an exampleRACF set-up commandsSETROPTS CLASSACT(FSACCESS)SETROPTS RACLIST(FSACCESS)ICH14063I SETROPTS command complete.RDEFINE FSACCESS HERING.TESTNEW.ZFS UACC(NONE)ICH10006I RACLISTED PROFILES FOR FSACCESS WILL NOT REFLECT THEADDITION(S) UNTIL A SETROPTS REFRESH IS ISSUED.PERMIT HERING.TESTNEW.ZFS CLASS(FSACCESS) ID(HERING)ACCESS(UPDATE)ICH06011I RACLISTED PROFILES FOR FSACCESS WILL NOT REFLECT THEUPDATE(S) UNTIL A SETROPTS REFRESH IS ISSUEDSETROPTS RACLIST(FSACCESS) REFRESHICH14063I SETROPTS command complete.31 IBM TSCC SW Ma<strong>in</strong>z 14.03.12© 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>RACF setup and an example...Sample commands$> iduid=888(HERING) gid=2(SYS1) groups=1047(<strong>USS</strong>TEST)$> /usr/sb<strong>in</strong>/mount -qv test.access 2>/dev/null----A- HERING.TESTNEW.ZFS /u/her<strong>in</strong>g/test.access$> cat test.access/testfileaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaazzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz$> su - -s lafitte#> rexx "say userid()"LAFITTE#> id -u0#> cat /u/her<strong>in</strong>g/test.access/testfilecat: /u/her<strong>in</strong>g/test.access/testfile: EDC5111I Permission denied.#> exit$>32 IBM TSCC SW Ma<strong>in</strong>z 14.03.12© 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>RACF setup and an example...Operlog error messageICH408I USER(LAFITTE ) GROUP(SYS1 ) NAME(JEAN-LOUIS LAFITTE )/u/her<strong>in</strong>g/test.access/testfileCL(DIRSRCH ) FID(E2C2D6E7F1D508650000000000010001)INSUFFICIENT AUTHORITY TO OPENACCESS INTENT(--X) ACCESS ALLOWED(FSACCESS ---)EFFECTIVE UID(0000000000) EFFECTIVE GID(0000000002)33 IBM TSCC SW Ma<strong>in</strong>z 14.03.12© 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>Ported Tools „sudo“ utilityIBM TSCC SW Ma<strong>in</strong>z 14.03.12 © 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>Overview The sudo utility is an open source tool.– It allows a system adm<strong>in</strong>istrator to delegate authority• to run some or all commands as a superuser and is• provid<strong>in</strong>g an audit trail of the commands and their arguments It is a very good solution for granularity andflexibility <strong>in</strong> many situations. The sudo utility is commonly available on otherUNIX/L<strong>in</strong>ux platforms.35 IBM TSCC SW Ma<strong>in</strong>z 14.03.12© 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>Usage examples for sudoUID = 20GID = 21Groups = 21,22MVS ID = JOECase #1sudoUID = 0GID = 1Groups = 1,2MVS ID = BPXROOTCase #2sudoUID = 0GID = 1Groups = 1,2MVS ID = JOEUID = 0GID = 3Groups = 3,4MVS ID = ADMINCase #3sudoUID = 0GID = 3Groups = 3,4MVS ID = ADMIN38 IBM TSCC SW Ma<strong>in</strong>z 14.03.12© 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>Compar<strong>in</strong>g several z/<strong>OS</strong> UNIX <strong>in</strong>terfacesCommand / Authoriyz/<strong>OS</strong> UNIXID ChangeMVS IDChangeShell AccessCommandControlsudo Optional Optional Optional Optionalsu Yes Yes Yes Nosu-s(i.e. SURROGAT)su (i.e.BPX.SUPERUSER)Yes Yes Yes NoYes No Yes NoUNIXPRIV No NO No Partial39 IBM TSCC SW Ma<strong>in</strong>z 14.03.12© 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>Installation considerations The sudoers grammar can be confus<strong>in</strong>g.– Therefore, use examples. Make user specifications as specific as possible. Specify commands with arguments or use “”– to ensure commands are run without arguments. M<strong>in</strong>imize shell access and shell escapes. See z/<strong>OS</strong> IBM Ported Tools for z/<strong>OS</strong>: SupplementaryToolkit for z/<strong>OS</strong> Feature User's Guide andReference, SA23-2234 for more <strong>in</strong>formation.40 IBM TSCC SW Ma<strong>in</strong>z 14.03.12© 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>Some specific sett<strong>in</strong>gs and comments By default, sudo will <strong>in</strong>itialize the group vector tothe list of groups the target user is <strong>in</strong>.– To change this use follow<strong>in</strong>g sett<strong>in</strong>g <strong>in</strong> the sudoers file:Defaults preserve_groups– You can achieve the same when us<strong>in</strong>g sudo option -P. With follow<strong>in</strong>g entry <strong>in</strong> the sudoers file you can setthe editor to be used via envvar „SUDO_EDITOR“:Defaults env_keep=SUDO_EDITOR– For edit<strong>in</strong>g use sudo -e or sudoedit.41 IBM TSCC SW Ma<strong>in</strong>z 14.03.12© 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>Some specific sett<strong>in</strong>gs and comments... The follow<strong>in</strong>g user privilege specification <strong>in</strong> thesudoers file achieve a behavior similar to allow<strong>in</strong>gthe user read access to BPX.SUPERUSER:HERING ALL = NOPASSWD: ALL42 IBM TSCC SW Ma<strong>in</strong>z 14.03.12© 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>sudo command example Entry <strong>in</strong> sudoers file for team BACKUPS allow<strong>in</strong>g torun a specific pax command:Defaults umask=077User_Alias BACKUPS = june, fred, maryBACKUPS ALL = (adm<strong>in</strong>) /b<strong>in</strong>/pax -x pax ...-wf /u/code/src.pax /u/code/src Sudo command allowed:sudo –u adm<strong>in</strong> pax -x pax -wf .../u/code/src.pax /u/code/src– The backup team is not allowed to view the data and– is not allowed to run other pax commands.43 IBM TSCC SW Ma<strong>in</strong>z 14.03.12© 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>TECC Offer<strong>in</strong>gsKunden<strong>in</strong>dividuelle Workshops & moreIBM TSCC SW Ma<strong>in</strong>z 14.03.12 © 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>Workshop Portfolio des TECC SW– Microsoft W<strong>in</strong>dows Server und Client <strong>OS</strong> (2008 R2, W<strong>in</strong>dows 7)– L<strong>in</strong>ux (SuSE L<strong>in</strong>ux Enterprise Server 10 & 11))– z/VM– DB2 for z/<strong>OS</strong>– z/<strong>OS</strong> – Network<strong>in</strong>g, also: - z/<strong>OS</strong> On Demand Workshop Kundenreferenz– für Banken - Softwarehaus - Handel - Versicherung - Dienstleister - Industrie ...– z/<strong>OS</strong> Release Update & SYSREXX– z/<strong>OS</strong> Advanced Problem Determ<strong>in</strong>ation - Websphere, LE, <strong>USS</strong>, JAVA– z/<strong>OS</strong> Workshop zFS / <strong>USS</strong> / NFS– z/<strong>OS</strong> Advanced System Customization - <strong>USS</strong> Sysplex Shar<strong>in</strong>g– HFS to zFS Conversion Workshop– Basic IPCS, <strong>USS</strong> and LE Debug– z/<strong>OS</strong>MF Implementation & Hands On45 IBM TSCC SW Ma<strong>in</strong>z 14.03.12© 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>Kontakt - Info Marco StrausHechtsheimer Str.255131 Ma<strong>in</strong>zEmail:mstraus@de.ibm.com Hans HerzogHechtsheimer Str.255131 Ma<strong>in</strong>zEmail:hans.herzog@de.ibm.com46 IBM TSCC SW Ma<strong>in</strong>z 14.03.12© 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>Redbook InformationIBM TSCC SW Ma<strong>in</strong>z 14.03.12 © 2009 IBM Corporation


<strong>USS</strong> <strong>News</strong> <strong>in</strong> z/<strong>OS</strong> <strong>V1R13</strong>Redbook <strong>in</strong>formation z/<strong>OS</strong> Distributed File Service zSeries File SystemImplementation z/<strong>OS</strong> <strong>V1R13</strong>, SG24-6580-05– Draft version available (December 26, 2011) zFS Reorganization Tool, REDP-4769-00– F<strong>in</strong>al version available (January 24, 2012) z/<strong>OS</strong> Version 1 Release 13 Implementation, SG24-7946-00– Draft version available (November 2, 2011) Available from IBM Redbooks– http://www.redbooks.ibm.com/48 IBM TSCC SW Ma<strong>in</strong>z 14.03.12© 2009 IBM Corporation

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!