Thanks all for your kind, prompt and clear answers. I followed Killahurtz's instructions and got the following:
Code:
Last login: Mon Sep 15 00:15:57 2008 from 192.168.0.50
arnan@motoko:/var$ sudo chgrp www-data /var/www
[sudo] password for arnan: ********************
arnan@motoko:/var$ sudo chmod 775 /var/www
arnan@motoko:/var$ sudo chmod g+s /var/www
arnan@motoko:/var$ sudo useradd -G www-data arnan
useradd: user arnan exists
arnan@motoko:/var$
arnan@motoko:/var$ ls -lt
total 40
drwxr-xr-x 2 root root 4096 2008-09-15 06:28 backups
drwxr-xr-x 10 root root 4096 2008-09-15 06:28 log
drwxr-xr-x 10 root root 380 2008-09-15 01:04 run
drwxr-xr-x 25 root root 4096 2008-09-15 00:54 lib
drwxrwxrwt 3 root root 60 2008-09-14 03:12 lock
drwxrwsr-x 2 root www-data 4096 2008-09-13 18:37 www
drwxr-xr-x 8 root root 4096 2008-09-13 18:37 cache
drwxr-xr-x 3 root root 4096 2008-09-13 18:37 spool
drwxrwsr-x 2 root mail 4096 2008-09-13 18:32 mail
drwxr-xr-x 2 root root 4096 2008-09-13 18:32 opt
drwxrwsr-x 2 root staff 4096 2008-06-13 16:14 local
drwxrwxrwt 2 root root 4096 2008-06-13 16:14 tmp
I then logged in with my user 'arnan' via SFTP and tried to upload a file to the /var/www but i still got the permission denied thing.
I'm guessing folder ownership should remain root? Or should i change that too?
Thanks!
Bookmarks