Job Management Partner 1/File Transmission Server/FTP Description, Reference and Operator's Guide
When file transmission is performed by a user to whom the function for limiting directory access is applied, some user environment settings might be necessary depending on the functions that are used. The following functions require user environment settings:
- When auto-start programs are to be started during file transmission
- When a file list (LIST command) or file status (STAT command) is to be acquired (if the remote FTP client is JP1/FTP, no setting is required)
If you use either of these functions, specify the following settings:
- You need the commands listed below under the home directory of the user who uses each function. Copy each command including the path under the home directory. Set the settings, such as file access permissions and link status, to the same values as for the source.
Commands used for starting auto-start programs:
Commands used for acquiring a file list (LIST command or NLST command whose arguments begins with a hyphen (-)) and a file status (STAT command):
- /bin/sh
- /usr/bin/sh (not required in Linux)
- /bin/sh
- /bin/ls
- /usr/bin/sh (not required in Linux)
- /usr/bin/ls (not required in Linux)
- Example
- When user1 is a user to whom the function for limiting directory access is applied (operation performed as a superuser):
- In HP-UX or AIX
- # cd /
- # tar cvf /tmp/work.tar usr/bin/sh usr/bin/ls
- # cd ~user1
- # tar xvf /tmp/work.tar
- # ln -s ./usr/bin bin
- In Solaris
- # cd /
- # tar cvf /tmp/work.tar sbin/sh usr/bin/ls
- # cd ~user1
- # tar xvf /tmp/work.tar
- # ln -s ./usr/bin bin
- # cd usr/bin
- # ln -s ../../sbin/sh ../../usr/bin/sh
- In Linux
- # cd /
- # tar cvf /tmp/work.tar bin/sh bin/ls
- # cd ~user1
- # tar xvf /tmp/work.tar
- Copy the shared library that is used by the commands copied in step 1 to the home directory exactly as is including the paths. To check the shared library used by the commands, use the ldd command (for details about the ldd command, see the OS documentation).
- Example
- When user1 is a user to whom the function for limiting directory access is applied (operation performed as a superuser):
- # ldd ~user1/usr/bin/sh
- In HP-UX or Solaris, copy dynamic loaders in the same manner as for other commands and the shared library. The following show an example when user1 is a user to whom the function for limiting directory access is applied (operation performed as a superuser).
- Example
- When copying dynamic loaders (dld.so, uld.sol) for HP-UX:
- # cp -p /usr/lib/hpux32/dld.so ~user1/usr/lib/hpux32/dld.so
- # cp -p /usr/lib/hpux32/uld.so ~user1/usr/lib/hpux32/uld.so
- Example
- When copying a dynamic loader (ld.so.1) for Solaris:
- # cp -p /usr/lib/ld.so.1 ~user1/usr/lib/ld.so.1
All Rights Reserved. Copyright (C) 2010, Hitachi, Ltd.