Welcome toChina Server Net
About us | Add to Favorites | Contact us | 中文版
Need not purchase software UNIX to fall can erect FTP server
From;    Author:Stand originally
Need not purchase software UNIX to fall can erect FTP server (1)   is current, UNIX platform gained the favour of numerous enterprise, nevertheless, serve support to can offer FTP, many enterprises purchased the FTP server software that is based on UNIX platform technically. Make the same score Taichun in UNIX actually, adopt certain technics, can build FTP server

Need not purchase software UNIX to fall can erect FTP server (1)

Current, UNIX platform gained the favour of numerous enterprise, nevertheless, serve support to can offer FTP, many enterprises purchased the FTP server software that is based on UNIX platform technically. Make the same score Taichun in UNIX actually, adopt certain technics, can build FTP server, and need not purchase special software again. Below, I introduce simply how to issue erect FTP server in UNIX platform to everybody.

One, of affirmatory FTP Server share list

Build list of job of a FTP for FTP Server, here set is / Home/ftp.

2, the Shell program that writes FTP Server initiative setting (Setup)

With editor tool (like Vi) write program of a Shell, use at undertaking installing to the system.

# ! / Bin/sh

Case $# In

0) Ftphome= "`grep '^ftp:'/ Etc/passwd Cut -d: - F6` "

; ;

1) If ["$1" = "start" ] ; Then

Ftphome= "`grep '^ftp:'/ Etc/passwd Cut -d: - F6` "

Else

Ftphome=$1

Fi

; ;

*) Echo "Usage: $0 [anon-ftp-root] "

Exit 1

; ;

Esac

If [-z "${ftphome}" ] ; Then

Echo "$0: Ftphome Must Be Non-null "

Exit 2

Fi

If ["${ftphome}" = "/" -o "${ftphome}" = "/usr" ] ; Then

1 2 3 4