Results 1 to 7 of 7

Thread: 403 Forbidden when adding new files to www

  1. #1
    Join Date
    Sep 2010
    Beans
    7

    403 Forbidden when adding new files to www

    I am trying to run a intranet on appache for the first time. My issue is that when ever I add a new file to the WWW folder the permissions default too -rw------ . I would like anyone to be able to view the files. I can change the permissions but I was hoping to default the folder to let new files become readable. Thanks for your help.

  2. #2
    Join Date
    Aug 2010
    Location
    Lancs, United Kingdom
    Beans
    1,098
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: 403 Forbidden when adding new files to www

    How are you creating the files and copying/moving them to /var/www ? If you are using the terminal, what is your umask?
    Code:
    umask
    You might want to change it to 0022.
    Code:
    umask 0022

  3. #3
    Join Date
    Sep 2010
    Beans
    7

    Re: 403 Forbidden when adding new files to www

    Ftping new files into the www directory

  4. #4
    Join Date
    May 2009
    Location
    México
    Beans
    320
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: 403 Forbidden when adding new files to www

    Then change your umask in the FTP configuration
    http://rukiaenix.blogspot.com

    I never really envision the finish of anything that I start. It's risk that fascinates, the moment of infinite possibility.

  5. #5
    Join Date
    Aug 2010
    Location
    Lancs, United Kingdom
    Beans
    1,098
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: 403 Forbidden when adding new files to www

    What ftp client are you using? What is the ftp server? Do both support the umask command? Are you permitted to change the configuration of the ftp server?

  6. #6
    Join Date
    Sep 2010
    Beans
    7

    Wink Re: 403 Forbidden when adding new files to www

    Quote Originally Posted by rukiaenix View Post
    then change your umask in the ftp configuration
    yes this worked thanks so much !!!!!!!!!!!

  7. #7
    Join Date
    May 2009
    Location
    México
    Beans
    320
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: 403 Forbidden when adding new files to www

    You're welcome
    http://rukiaenix.blogspot.com

    I never really envision the finish of anything that I start. It's risk that fascinates, the moment of infinite possibility.

Tags for this Thread

Bookmarks

Posting Permissions

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