Results 1 to 3 of 3

Thread: New File Permissions on 10.04.1 Server

  1. #1
    Join Date
    Apr 2012
    Beans
    2

    New File Permissions on 10.04.1 Server

    I'm driving myself crazy trying to figure this out. I hope someone can shed some light on my problem.

    I need to know the simplest way to set default file permissions on a folder I created: /var/www/uploads

    So when someone accesses the site they insert some information and then upload a file to the server, inside that uploads folder. Everything works, including the upload except permissions.

    The newly uploaded file has default permissions (-fw------) and cannot be read inside a web browser. Please! Someone, what is the easiest way to do this and how? I've just about broken my neck trying to figure out acl. Thanks.

  2. #2
    Join Date
    Mar 2012
    Beans
    8

    Re: New File Permissions on 10.04.1 Server

    Have you tried to change permission on folder with -r option? Something like

    sudo chown -R www-data:www-data /var/www/uploads

    if you want web users to own folder and everything in it. Also chmod should do the thing.

  3. #3
    Join Date
    Apr 2012
    Beans
    2

    Re: New File Permissions on 10.04.1 Server

    I have tried that, but it doesn't set the permissions for new files. They still don't have permissions

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
  •