27.12.2012 Views

The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM

The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM

The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

You should now have all the z/<strong>VM</strong> product install files in place under the directory<br />

/ftp/zvm61/cpdvd/.<br />

6.5.2 Installing and configuring the FTP server<br />

An FTP server must be installed and configured. <strong>The</strong> vsftpd FTP server is recommended.<br />

This section shows how to configure it as an anonymous FTP server. To accomplish these<br />

tasks, per<strong>for</strong>m the following steps:<br />

► Use the rpm -qa command to see if the RPM is installed:<br />

# rpm -qa | grep ftpd<br />

► No output shows that it is not installed. Use the yum -y command to install the package:<br />

# yum -y install vsftpd<br />

Loaded plugins: rhnplugin<br />

This system is not registered with RHN.<br />

...<br />

Installed:<br />

vsftpd.s390x 0:2.2.2-6.el6<br />

► Make a backup of the vsftpd configuration file, /etc/vsftpd/vsftpd.conf:<br />

# cd /etc/vsftpd<br />

# cp vsftpd.conf vsftpd.conf.orig<br />

► Modify the configuration file to set the directory that anonymous user will be logged in to<br />

/ftp/zvm61/ using the anon_root variable. Also disable local (non-anonymous) logins by<br />

commenting out the local_enable=YES and write_enable=YES lines.<br />

# Example config file /etc/vsftpd/vsftpd.conf<br />

#<br />

# <strong>The</strong> default compiled in settings are fairly paranoid. This sample file<br />

# loosens things up a bit, to make the ftp daemon more usable.<br />

# Please see vsftpd.conf.5 <strong>for</strong> all compiled in defaults.<br />

#<br />

# READ THIS: This example file is NOT an exhaustive list of vsftpd options.<br />

# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's<br />

# capabilities.<br />

#<br />

# Allow anonymous FTP? (Beware - allowed by default if you comment this out).<br />

anonymous_enable=YES<br />

# set the home directory of anonymous FTP to /ftp/zvm61<br />

anon_root=/ftp/zvm61<br />

#<br />

# Uncomment this to allow local users to log in.<br />

# local_enable=YES<br />

#<br />

# Uncomment this to enable any <strong>for</strong>m of FTP write command.<br />

# write_enable=YES<br />

...<br />

► Set the vsftpd service to start at boot time with the chkconfig command and <strong>for</strong> this<br />

session with the service command:<br />

# chkconfig vsftpd on<br />

# service vsftpd start<br />

Starting vsftpd <strong>for</strong> vsftpd: [ OK ]<br />

An anonymous FTP server should now be running with the z/<strong>VM</strong> 6.1 directory in /cpdvd<br />

(relative to the anonymous FTP root directory).<br />

Chapter 6. Configuring an NFS/FTP server 99

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!