Results 1 to 2 of 2

Thread: Permission problem

  1. #1
    Junior Member
    Join Date
    May 2006
    Posts
    22

    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?

  2. #2
    Just Another Geek
    Join Date
    Jul 2002
    Location
    Rotterdam, Netherlands
    Posts
    3,401
    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
  •