1 / 9

System Administration HW2 - File System Server

System Administration HW2 - File System Server. cychao. FTP. Install a FTP server for FreeBSD Pure-FTPd: /usr/ports/ftp/pure-ftpd/ ProFTPD: /usr/ports/ftp/proftpd/ Settings Anonymous Login Chrooted ( /home/ftp is your root directory) Can download from /home/ftp/public

sana
Download Presentation

System Administration HW2 - File System Server

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. System Administration HW2- File System Server cychao

  2. FTP • Install a FTP server for FreeBSD • Pure-FTPd: /usr/ports/ftp/pure-ftpd/ • ProFTPD: /usr/ports/ftp/proftpd/ • Settings • Anonymous Login • Chrooted (/home/ftp is your root directory) • Can download from /home/ftp/public • Can upload & mkdir but no download or delete from /home/ftp/upload • Hidden directory /home/ftp/hidden • There is a directory called “treasure” inside • Client can’t list in /home/ftp/hidden/ but can in hidden/treasure

  3. FTP • Settings (cont’d) • Create a system user “sysadm” (2%) • Could login by ssh • Password is your student id • Create a virtual user “ftp-vip” • Chrooted (/home/ftp is your root directory) • Password is your student-id • Can login from 140.113.17.225 & your ip only • Full access to /home/ftp • Hidden directory is visible to ftp-vip

  4. Samba Install Samba /usr/ports/net/samba35 Share a directory on FreeBSD as normal Windows folders Windows user can direct access (drag & drop) files on FreeBSD via 網路芳鄰, but only owner can read/write files. Admin can read/write all files .exe .bin .vbs could not upload Guest account could browse FreeBSD mount windows partition

  5. ZFS Create a zfs file system with mirror Do zfs snapshot Do zfs rollback Set compression Reboot and everything is fine (zfs still mount)

  6. Requirement • ZFS on /home/ftp • Samba share /home/ftp/public to windows • Mount windows directory at /home/ftp/windows

  7. How to hand in DEMO

  8. Deadline 2011/10/25 18:00 You do not need to submit anything

  9. Help IRC channel #nctuNASA on freenode Newsgroup cs.course.sysadmin BBS bs2.to board CS-SysAdmin Email ta@nasa.cs.nctu.edu.tw Goto CSCC to ask professional 3F!

More Related