ftp server setup
Sun Confidential: Internal Only
64
Sun Fire 3800 - 6800 Quick Reference Guide
SunService Sun Microsystems, Inc. All Rights Reserved. Enterprise Services
ftp server setup
The customer may be happy to allow you to do a flashupdate or a
showresetstate using user passwords. For example:
flashupdate
-f
ftp://root:[email protected]/11xxxx-01
all
showresetstate -v -f ftp://admin:[email protected]//home/admin/reset_info
However, he may not. You may need to setup an ftp server. The procedure
is wrapped up in the ftpd man page.
Edit /etc/passwd & /etc/shadow
To set up anonymous ftp, add the following entry to the /etc/passwd file. In
this example, /export/ftp was chosen to be the anonymous ftp area, and the
shell is the non-existent file /nosuchshell. This prevents users from logging in
as the ftp user.
ftp:x:30000:30000:Anonymous FTP:/export/ftp:/nosuchshell
Add the following entry to the /etc/shadow file:
ftp:NP:6445::::::
Run the shell script from the ftpd man page
A way of doing this is as follows:
# man ftpd > /var/tmp/ftp_script
Edit the file to extract the script. It starts in the usual manner...
#!/bin/sh
# script to setup anonymous ftp area
#
# verify you are root
/usr/bin/id | grep -w ’uid=0’ >/dev/null 2>&1
.
and finishes...
.
#fi
#chown root ${ftphome}/pub
#chmod 1755 ${ftphome}/pub