Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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 am using Ubuntu Server 11.04, how can I make it so a user can only access /var/www/site1?

share|improve this question
    
I don't know. Maybe chroot or something. – Anonymous Nov 26 '11 at 23:44
1  
help.ubuntu.com/11.04/serverguide/C/ftp-server.html – user8290 Nov 27 '11 at 0:27

I am not sure but sudo chown -R a_user /var/www/site1 might work.

Or if you want any other users to access the directory and its content sudo -R chmod 744 /var/www/site1 might help.

share|improve this answer

Your Answer

 
discard

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.