Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm new to linux and I've set up a web server with Ubuntu Desktop edition so I can practice with the GUI a bit before transitioning to Ubuntu Server.

I've already set up a LAMP stack as well as FTP. Now I just need to know how to transfer my web files to the /var/www folder in Ubuntu. Previously I've worked on Mac OS and there's a central server for all the web files where I can FTP to.

Now after I've managed to connect via FTP to the Ubuntu server, I see all the folders such as Desktop, Downloads, Documents etc but no web folder.

Anyone able to help me understand how do I FTP to the /var/www folder in Ubuntu?


share|improve this question
up vote 5 down vote accepted

You are going to need write access to /var/www, which

sudo adduser LOGIN_ID www-data
sudo chmod g+rwX -R /var/www

will establish. Next thing would be to create a shortcut in your home directory:

sudo ln -s /var/www /home/LOGIN_ID/

After connecting with the FTP server you should now see the www folder alongside the Desktop folder.

share|improve this answer
I've created the shortcut but when I try to access it via my FTP program, Forklift, I get the following message "The symbolic link "/www" can't be resolved because the original item can't be found." – jc.yin Jun 30 '13 at 17:23
Oh actually I've set my program to access SFTP rather than FTP and now it works, perfect answer! – jc.yin Jun 30 '13 at 17:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.