Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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 – user8290 Nov 27 '11 at 0:27

1 Answer 1

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


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.