Download presentation
Presentation is loading. Please wait.
Published byJoshua Wilcox Modified over 9 years ago
1
System Administration HW2 - File System Server ylin
2
Computer Center, CS, NCTU 2 FTP Install a FTP server for FreeBSD Pure-FTPd: /usr/ports/ftp/pure-ftpd/ ProFTPD: /usr/ports/ftp/proftpd/ Settings 1.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
Computer Center, CS, NCTU 3 FTP Settings (cont’d) 2.Create a system user “sysadm” (2%) Could login by ssh Password is your student id 3.Create a virtual user “ftp-vip” FTP over TLS 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
Computer Center, CS, NCTU 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
Computer Center, CS, NCTU 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
Computer Center, CS, NCTU 6 Requirement ZFS on /home/ftp Samba share /home/ftp/public to windows Mount windows directory at /home/ftp/windows
7
Computer Center, CS, NCTU 7 How to hand in DEMO
8
Computer Center, CS, NCTU 8 Deadline 2011/11/6 18:00 You do not need to submit anything
9
Computer Center, CS, NCTU 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!
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.