3.14.2 User environment settings with the function for limiting directory access enabled
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:
-
Automatic startup of programs during file transmission
-
Acquisition of a file list (using the LIST command or the NLST command whose argument begins with a single-byte hyphen (-)) or acquisition of a file status (using the STAT command)
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:
-
/bin/sh
-
/usr/bin/sh (not required in Linux)
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
-
/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 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 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