Server Fault is a question and answer site for system and network administrators. 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

After my initial freakout with getting tomcat sorted I have moved onto something a bit simpler and so far (from what little I know of sysadmin'ing) I've managed to get vsftpd and nginx installed and working.

I have setup a subdomain (as a test) for and I had it correctly being picked up and served by nginx as a virtual host.

My goal was to create a user account for user "ourcompany", let them login and upload files to /var/www/vhosts/ I thought I'd try it with my account (davidsf) first.

But I fear I have messed up the permissions.

Just to recap, I'm on Ubuntu 10.04 LTS, nginx and vsftpd from the repository. I am logging in as my account that is also apart of (I think this is right) the www-data group.

I uploaded a text file to the above path, but I get forbidden by nginx.

drwxr-xr-x 4 root     root     4.0K 2010-07-09 21:35 .
drwxr-xr-x 3 root     root     4.0K 2010-07-09 21:35 ..
drwxr-xr-x 2 root     root     4.0K 2010-07-09 21:35 logs
drwxrwx--x 2 www-data www-data 4.0K 2010-07-09 21:39 public

This is my permissions:


How do I make it so if I create a site, I add a non-shell user that they can access the FTP server and manage their files easily? I'm not able to install any control panels unfortunately.

share|improve this question

Here is yours answer . You should user virtual suers. Look at the link and some fields with #carefull . you should change them. You can use mysql-pam and other user. change root to $cirtualuser name and so on.

share|improve this answer

Your Answer


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