beautypg.com

6 shell commands, 6 shell commands -5 – Allied Telesis Telesyn AlliedView NMS System 9.0 User Manual

Page 57

background image

Shell Commands

Solaris

10-5

AlliedView NMS Installation Guide (Appendix A - Enabling Anonymous FTP)

10.3.6 Shell Commands

The following shell commands will configure anonymous FTP service suitable for AlliedView NMS on most
Solaris installations. Due to variations in system administration from one system to another, this procedure can-
not be guaranteed to work on all Solaris systems.

You are advised to create and configure the ftp account interactively in case errors occur.

#

# You must be logged-in as root to configure anonymous FTP

#

useradd ftp

cd /etc

#The following is ONE line

sed -e 's/^\(ftp:x\):\([0-9]\{1,\}\).*$/\1:\2:\2:Anonymous FTP:\/opt\/

ftp:nosuchshell/' passwd > passwd~

#

sed -e 's/^ftp.*$/ftp:NP:6445::::::/' shadow > shadow~

#

# Verify the settings before making them permanent.

#

more passwd~

more shadow~

#

# Make the verified settings permanent

#

# CAUTION: ANY ERRORS HERE MAY BE IMPOSSIBLE TO FIX.

#

chmod 660 /etc/passwd /etc/shadow

mv passwd~ passwd

mv shadow~ shadow

mv passwd~ passwd

chmod 440 /etc/passwd /etc/shadow

The rest of the shell commands, which also must be executed while logged-in as root, are listed in the

file

bin/AT_configure_ftp.sh

. Any system-specific errors from these commands are typically harmless. In fact,

on certain installations, some of the shared libraries are obsolete, so “file not found” errors will be expected. The
last four commands in the file are to be used with Solaris 9 and 10, so skip them to use on Solaris 8.