0% found this document useful (0 votes)
273 views7 pages

Lab 05

This document provides instructions for configuring network settings and an FTP server on a Linux system. It outlines steps to: 1) Check network configuration using ip, hostname, and ifconfig commands. 2) Access anonymous FTP sites and test FTP client login from Linux and Windows. 3) Install and configure an FTP server using ProFTPD, and upload/download files between Windows and Linux hosts. 4) Demonstrate how chroot jails can restrict FTP users to their home directories for added security, and comments on implementing this on the ProFTPD server.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
273 views7 pages

Lab 05

This document provides instructions for configuring network settings and an FTP server on a Linux system. It outlines steps to: 1) Check network configuration using ip, hostname, and ifconfig commands. 2) Access anonymous FTP sites and test FTP client login from Linux and Windows. 3) Install and configure an FTP server using ProFTPD, and upload/download files between Windows and Linux hosts. 4) Demonstrate how chroot jails can restrict FTP users to their home directories for added security, and comments on implementing this on the ProFTPD server.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

TSA2151 SYSTEM ADMINISTRATION & MAINTENANCE

LAB 5

Name Hemanilashinii Tharmalingam


Student ID 1191101916
Group 1CL

Internet Ready Environment – Network Configuration and Using FTP Server

Network Configuration
1. Understanding how network configuration works under the hood in Linux distributions is
invaluable and can come in handy in several scenarios. Typically, Ethernet devices register
themselves with name such as ethX, emX, ensX, pXpX, or enpXsY, where X and X are the
device or index numbers, respectively.
a) Use ip command. Find your Ethernet devices, IP address and IPv6 address. -ip address
show

b) Use hostname command to find IP address -hostname -I

c) Install and use ifconfig command. Find your Ethernet devices, IP address and IPv6
address -sudo apt install net-tools -y; ifconfig

FTP Anonymous Access


2. File Transfer Protocol (FTP) is one of the oldest and most commonly used protocols found
on the Internet today. Access to an FTP server can be managed in two ways either
Anonymous or Authenticated. Find and login any site in the Internet that provide
Anonymous FTP login. Use Ubuntu or Debian mirror to find anonymous FTP site.

a) Use text based login in Linux to access the anonymous FTP site -
password -abc.com
exit - bye command
b) Use browser in Windows to access the anonymous FTP site

3. Authenticated Access using ProFtpd FTP server in Windows and Linux.

a) Install proftpd as FTP server in your system. Use sudo apt install
proftpd-basic -y and use ftp client in terminal to test the installation.
b) Access FTP server from Windows host using any graphical FTP client such as
Windows/File Explorer, FileZila, gFTP or any FTP clients. Upload any files from
windows machine to the FTP server. fttp://192.168.56.101 -file explorer

c) In Linux, using terminal, use ls command to look for files from windows machine
that has been uploaded as question 4b above.
FTP Security: Using chroot jail

4. A chroot on Unix operating systems is an operation that changes the apparent root directory
for the current running process and its children. The programs that run in this modified
environment cannot access the files outside the designated directory tree. This essentially
limits their access to a directory tree and thus they get the name “chroot jail”.

a) Using ftp terminal command, identify you FTP server whether it implement chroot jail.
i) Login to FTP server and use pwd and ls command.

ii) Go to root directory and use pwd and ls command. -cd /, pwd, ls
iii) Login to FTP using GUI client such as FileZilla.

iv) Give your comment on chroot jail implementation.


chroot jail is not implemented coz you can access the root server directory

b) Edit the proftpd configuration sudo nano /etc/proftpd/proftpd.conf . Set the


chroot jail by uncomment the #DefaulRoot ~ and save/exit using CTRL+O and
CTRL+X. Restart the FTP server using sudo systemctl restart
proftpd.service.

i) Login to FTP server and use pwd and ls command.


ii) Go to root directory and use pwd and ls command.

iii) Login to FTP using GUI client such as FileZilla.


iv) Give your comment
chroot jail is already implemented coz we cannot go to server root directory and our
home is our root directory.

Note:
​ Save your Lab tutorial as Group-Lab5-ID-Name-.pdf and upload to Google Classroom.

You might also like