Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jan 2010
    Posts
    79
    Thanks
    1
    Thanked 0 Times in 0 Posts

    permissions denied with perl/cgi script

    My /usr/lib/cgi-bin/script.cgi must create a directory in my /home/myname directory, but in firefox appears:
    Software error:

    Cannot mkdir: Permission denied at /usr/lib/cgi-bin/script.cgi line 17.

    For help, please send mail to the webmaster (webmaster@localhost), giving this error message and the time and date of the error.
    I have the same problem also when I want make a folder in /var/www directory

    What is the problem?
    Last edited by dark0s; 02-23-2010 at 11:49 PM.

  • #2
    Super Moderator
    Join Date
    May 2005
    Location
    Southern tip of Silicon Valley
    Posts
    2,944
    Thanks
    2
    Thanked 170 Times in 165 Posts
    The script is being run by the web server user account which doesn't have proper access writes to create the directory.

  • #3
    New Coder
    Join Date
    Jan 2010
    Posts
    79
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I want to give to www-data user (apache2 user) permissions for make directory in specific directory.
    How can solve this problem?


  •  

    Posting Permissions

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