Urgent! FTP default folder setup
by marcello.ligi from LinuxQuestions.org on (#578AR)
Hi I was setting up ftp on my ubuntu and I was following an article online that made me set up the default ftp user folder in a dedicated one instead of the /home.
How do I get back to /home as default folder now?
I set it up like this way
Create the ftp folder:
sudo mkdir /home/sammy/ftp
Set its ownership:
sudo chown nobody:nogroup /home/sammy/ftp
Remove write permissions:
sudo chmod a-w /home/sammy/ftp
Verify the permissions:
sudo ls -la /home/sammy/ftp
Output
total 8
4 dr-xr-xr-x 2 nobody nogroup 4096 Aug 24 21:29 .
4 drwxr-xr-x 3 sammy sammy 4096 Aug 24 21:29


How do I get back to /home as default folder now?
I set it up like this way
Create the ftp folder:
sudo mkdir /home/sammy/ftp
Set its ownership:
sudo chown nobody:nogroup /home/sammy/ftp
Remove write permissions:
sudo chmod a-w /home/sammy/ftp
Verify the permissions:
sudo ls -la /home/sammy/ftp
Output
total 8
4 dr-xr-xr-x 2 nobody nogroup 4096 Aug 24 21:29 .
4 drwxr-xr-x 3 sammy sammy 4096 Aug 24 21:29