|
|
my anonymous ftp setup in detail
here is my current ftp setup. i believe everything is in working order. if anything is out of whack or not working for you, let me know, and i'll see what i can do.
CAUTION: Please work on backups of your files! i'm not responsible for anything you do to your system. anything in italics is a comment on this page, and should not be put into any files. replace any instance of user with your username. these are files which we'll deal with in the /etc directory /etc/ add this line to the end of the crontab file, which will run a script to change the permissions of all files in the upload directory every 60 minutes /etc/crontab this file contains usernames who while be chroot() to their home directory /etc/ftpchroot this file contains usernames who while be denied ftp access to prevent security breaches /etc/ftpusers this file is displayed to all users when the connection is first established (command 220) /etc/ftpwelcome this file contains the message displayed when a user logs in (especially telnet or ssh) /etc/motd this is the home directory for ftp users ~ftp/ ~ftp/System/ ~ftp/System/Library/ ~ftp/System/Library/Frameworks/ ~ftp/System/Library/Frameworks/System.framework/ ~ftp/System/Library/Frameworks/System.framework/Versions/ ~ftp/System/Library/Frameworks/System.framework/Versions/B/ ls is copied from /bin/ls and upload_permissions must be created ~ftp/bin/ this is a shell script to change the uploaded files' owner, group, and permissions (you can change them to whatever you wish). this script is run from the root crontab. if it is run from anything other than root, it will fail due to lack of permission. ~ftp/bin/upload_permissions this is your drop box, people can upload, but cannot view these files ~ftp/dropbox/ ~ftp/etc/ this file is displayed to anonymous users upon login (command 230) ~ftp/etc/motd this is your public directory. you can put any files you wish others to download here ~ftp/pub/ ~ftp/usr/ these are copied from /usr/lib/dyld and /usr/lib/libSystem.B.dylib respectively ~ftp/usr/lib/ for more info, check out the man files for the following commands: man ftpd -david schlosnagle http://www.david-s.net/
my anonymous ftp setup in detail
I did all this and it seems to run great...
my anonymous ftp setup in detail
HI |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|