-
Permission problem
Hi guys,
I have virtual hosting on my apache2, working great but I couldn't create file inside virtual home directory..always says" permission denied"
This is what I did :
As root I did :
Code:
#useradd -g john www
#chown -R www:john /home/www/reality.test.com
#chmod 755 /home/www/reality.test.com
exit
$cd /home/www/reality.test.com
$touch test
$touch: cannot touch `test' : permission denied
$ls -l
drwxr-xr-x www john 4096 2006-07-04 10.45 htdocs
$
Ok I even change permision to chmod 777 /home/www/reality.test.com (as a test) but still got "permission denied" problem.
BTW what is the secure permission for virtual hosting directory?
-
I'm assuming john is the user?
Try chown john:www (it's user:group)..
Also id john to see if he's really a member of www..
Don't forget to logoff/logon john when you change his groupmembership..