Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Examples

&pagelevel(3)&pagelevel

The following prerequisite applies for the examples in this section: The BS2000 IDs MORITZ (POSIX UID=110), GAST (POSIX UID=100) and TSOS (POSIX UID=0)exist on the NFS server.

Example 1

The :DATA:$MORITZ.*.LIB files are mounted as a bs2fs file system. This file system is shared for reading and writing for the clients client01 and client02 and only for reading for the client client03. On the clients a user with the UID 110 is granted access with the rights of the BS2000 ID MORITZ. Every other user is denied access because the bs2anon option is not specified:

# mount -F bs2fs -o rw,ftyp=binary ':DATA:$MORITZ.*.LIB' /bs2mnt/moritz_lib
# share -F nfs -o rw=client01:client02,ro=client03       /bs2mnt/moritz_lib

Example 2

The :DATA:$ MORITZ.*.SRC files are mounted as a BS2000 file system. This file system is shared for reading and writing for the client client04 and only for reading for the client client05. On the clients the user with UID=110 is granted access with the rights of the BS2000 ID MORITZ and all others are granted access with the rights of the BS2000 ID GAST:

# mount -F bs2fs -o rw,ftyp=text ':DATA:$MORITZ.*.SRC' /bs2mnt/moritz_src
# share -F nfs -o rw=client04,ro=client05,bs2anon=GAST /bs2mnt/moritz_src

Example 3

The :HOME:$TSOS.SYSDAT.BCAM.* files are shared for reading and writing for the super user (UID=0) on the client client06; the other users connected to this client are not granted access:

# mount -F bs2fs -o rw,ftyp=text ':HOME:$TSOS.SYSDAT.BCAM.*' /bs2mnt/bcam.dat
# share -F nfs -o rw=client06 /bs2mnt/bcam.dat

Example 4

The :HOME:$SYSAUDIT.*CONSLOG* files are shared for reading for any user connected to client client07, the file contents being converted from EBCDIC.DF.04-1 to ISO 8859-1. In other words the files contain EBCDIC texts and are output on the NFS clients as ASCII texts:

# mount -F bs2fs -o ro,ftyp=text ':HOME:$SYSAUDIT.*CONSLOG*' /bs2mnt/conslog
# share -F nfs -o ro=client07,bs2anon=SYSAUDIT,bs2conv       /bs2mnt/conslog

Example 5

The :HOME:$MAX.* files are shared for reading for every user connected to client client08, provided the access rights permit this, the file contents being converted from EBCDIC.DF.04-1 to ISO 8859-1. In other words the files contain EBCDIC texts and are output on the NFS clients as ASCII texts. In addition, file names with specific special characters are converted:

# mount -F bs2fs -o ro,ftyp=text ':HOME:$MAX.*'   /bs2mnt/max
# share -F nfs -o ro=client08,bs2conv,bs2nameconv /bs2mnt/max