Creating an FTP Server Manually

Posted: 01/30/2012 in G.N.A.HackTeam, Mac Hacking
Tags: , , , , , , , , , , , , , ,

In this article I will be showing you how to create an FTP Server on Mac OS X Manually (!!!)

Let’s Show It:

Here are the steps you should follow:

1. Create Standard user in System Preferences > Accounts

2. Use terminal for the following:

cd /Users/Shared

mkdir FTP

sudo chown -R username FTP <— replace username with name you created in Accounts (usually its lowercase…)

sudo chmod -R 777 FTP

touch FTP/ftpworking <— This is just so when you login later you can tell you are logged in to the correct dir, you can delete when done.

sudo nano -w /etc/ftpchroot and enter * then press CTRL+X and press Y to save <– This locks the user to their home dir.

3. Right click username in System Preferences > Accounts and select Advanced Options

4. Change Home Directory to /Users/Shared/FTP and click OK

5. Enable FTP in System Preferences > Sharing (File Sharing – Set to FTP not AFP)

6. Add /Users/Shared/FTP to Shared Folders and remove any other and add users/ set permissions as required

7. Use Terminal to login as the user to make sure all is ok:

ftp 21 and input username & password as requested

ls -l to do a directory listing

If all is ok you will see the file ftpworking you created above.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s