Permission problem
Results 1 to 2 of 2

Thread: Permission problem

  1. #1
    Junior Member
    Join Date
    May 2006

    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 :

    #useradd -g john www
    #chown -R www:john /home/www/
    #chmod 755 /home/www/
    $cd /home/www/
    $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/ (as a test) but still got "permission denied" problem.

    BTW what is the secure permission for virtual hosting directory?

  2. #2
    Just Another Geek
    Join Date
    Jul 2002
    Rotterdam, Netherlands
    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..
    Oliver's Law:
    Experience is something you don't get until just after you need it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts