file and directory permission

Roby Sadeli liweitian at gmail.com
Sun Dec 20 10:46:32 UTC 2009


Hi there.

I have been using FreeBSD for some time but my skill is getting really rusty.
I install nginx via the ports collection and it works just fine.
The data files (html) is located in /usr/local/www/ and the directory
permission is as follows:
drwxrwxr-x  5 root   wheel    512 Dec 20 15:54 www

and I changed the user/group permission like this:
# chown -R www:www /usr/local/www
# chmod -R 775 /usr/local/www

My id is user and looks like this:
# id user
uid=1001(user) gid=1001(user) groups=1001(user),0(wheel),80(www)

I am trying to create a file in the /usr/local/www and I can't.
Is there something wrong I did here?

TIA for answers.
Roby


More information about the freebsd-questions mailing list