Build an anonymous ftp server on SCOOpenServer507

Source: Internet
Author: User
Set up an anonymous ftp server on SCOOpenServer507-Linux Enterprise Application-Linux server application information. The following is a detailed description. Author: snow888

The FTP server in the SCO system supports anonymous FTP accounts. However, due to the inherent security issues of this mechanism, you should carefully check the relevant content before providing such services. When a client accesses anonymous FTP, the FTP server executes the system to call chroot, which restricts the client from moving outside the file system (that is, the file system where the FTP main directory is located. The following describes how to build an anonymous server in SCO OpenServer 5.0.7:

1. Use scoadmin-> Account Manager to create ftp users and ftp groups.

(Please note that when selecting whether to enter the password, you should select "Remove Passwd". Do not enter the password)

Ii. Access ~ The ftp directory, which is required to create system operations.
(Note: Here ~ Ftp represents the Home Directory of your ftp user. For example, if the main directory of the ftp user I created is/usr/ftp ~ Ftp is the/usr/ftp directory)
# Mkdir bin
# Mkdir dev
# Mkdir etc
# Mkdir lib
# Mkdir pub
# Mkdir-p usr/lib
# Chmod-R 555 *
# Chown-R ftp: ftp *

3. Modify permissions and copy the files required for running.
# Cp/bin/ls./bin
# Cp/bin/sh./bin
# Cp/etc/passwd./etc
# Cp/etc/group./etc
# Cp/lib/libprot. so.1./lib
# Cp/usr/lib/libc. so.1./usr/lib
# Cp/usr/lib/libcurses. so.1./usr/lib
# Cp/usr/lib/libm. so.1./usr/lib
# Cp/usr/lib/libresolv. so.1./usr/lib
# Cp/usr/lib/libsocket. so.1./usr/lib
# Cp/usr/lib/libsocket. so.2./usr/lib
# Chmod 111./bin /*
# Chmod 444./etc /*
# Chmod 555./lib /*
# Chmod 555./usr/lib /*
# Chown bin: bin./bin /*
# Chown bin: bin./usr/lib /*
# Chown bin: bin./lib /*
# Chmod 755./pub (if you want to enable the File Upload permission, you can set it to 777)

Iv. Configuration ~ The character device file in the ftp/dev directory.
# Find/dev/socksys-print | cpio-pdumv.
# Find/dev/zero-print | cpio-pdumv.

5. Create a directory link for the anonymous transmission service under the/usr/internet/ip/0.0.0.0 directory.
# Rm-f/usr/internet/ip/0.0.0.0/sco_ftp
# Ln-s/usr/ftp/usr/internet/ip/0.0.0.0/scp_ftp

(Final Statement: we do not recommend setting up ftp Anonymous services on SCO OpenServer 5.0.X series)
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.