View Full Version : [ubuntu] No permissions to /var/www
April 1st, 2010, 11:26 PM
Hello guys! Small question, been racking my brians! Hope somebody can point me in the right direction.
I'm trying to SFTP to a local server and getting permissions errors from my user account, i've tried sudo chmod 777 to /var/www and not had much luck, doesn't seem to make any difference.
Is there anything else i can check?
Many thanks to you all for reading.
April 1st, 2010, 11:28 PM
sorry just an update, i can delete, but cannot create folders or upload files?
April 1st, 2010, 11:29 PM
Did that sudo chmod work?
When you log into the box via ssh, does it let you write a file in that directory?
What does ls -al show on that dir?
April 2nd, 2010, 12:12 AM
Hello thanks for your help.
I cannot create a directory via SSH using mkdir without a sudo. Maybe this is my problem, i get a permissions error.
This is my output
user@test:/var$ ls -al www/
drwxrwxrwx 2 user user 4096 2010-04-01 23:28 .
drwxr-xr-x 17 root root 4096 2010-03-19 11:35 ..
-rw-r--r-- 1 root root 7 2010-03-21 18:56 index.htm
April 2nd, 2010, 12:33 AM
Just had the same problem.
1) Fellowusers suggest that in sys>admin>groups> www-data your users should have permission so thick those first... This didn't help for me.
2) Then they suggest you should be root... Ok, I started a root window. Terminal : gksudo nautilus. But when I tried to drop a file from a usb as root to a regular window with /var/www , this didn't work either...
Finally I dropped the file in my file system and kicked it up a level at the time till I met www.
It worked, not as handy, but since these permissions entered ubuntu life became a little less easy...;)
Hope this helps cheers guys !
April 2nd, 2010, 12:50 AM
this is very strange, I've had this working before I'm sure maybe if I enable the root account and use that but I'd rather not!
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.