Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Newb trying to transfer a simple html doc to Ubuntu Server

  1. #11
    Join Date
    Dec 2009
    Beans
    18

    Re: Newb trying to transfer a simple html doc to Ubuntu Server

    Good point! I'll try that asap and let you know.....

  2. #12
    Join Date
    Dec 2009
    Beans
    18

    Re: Newb trying to transfer a simple html doc to Ubuntu Server

    That looks like it might be part of the problem! If I try to pull up "test2" it comes up with NOT FOUND but "TEST2" comes up "Forbidden" so now it looks like a permissions issue......is there a way to set the permissions on the WWW directory for full control of it and all sub directories?

  3. #13
    Join Date
    Aug 2009
    Location
    Makati City, Philippines
    Beans
    720
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Newb trying to transfer a simple html doc to Ubuntu Server

    Change the permission and ownership of the /var/www/ folder and all its contents.
    Code:
     chown -R username:groupname /var/www 
    chmod -R 644 /var/www/*
    The Philippine Team
    The best Ubuntu derivative: Linux Mint
    Relax. Head to the Community Cafe.

  4. #14
    Join Date
    Sep 2006
    Beans
    7,247
    Distro
    Lubuntu Development Release

    Re: Newb trying to transfer a simple html doc to Ubuntu Server

    Just a refinement on that: Directories need to be executable in order to look up file names and so on.

    Code:
    chown -R username:groupname /var/www 
    find /var/www/ -type f -exec chmod 644 {} \;
    find /var/www/ -type d -exec chmod 755 {} \;
    The directories and regular files need slightly different permissions.

  5. #15
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Newb trying to transfer a simple html doc to Ubuntu Server

    I like using chmod with the rX arguments so I don't do a blanket execute on everything.
    http://articles.slicehost.com/2010/7...-symbolic-mode

    Code:
    chmod -R u=rwX,g=rX,o=rX /path/to/folder
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  6. #16
    Join Date
    Sep 2006
    Beans
    7,247
    Distro
    Lubuntu Development Release

    Re: Newb trying to transfer a simple html doc to Ubuntu Server

    Quote Originally Posted by CharlesA View Post
    I like using chmod with the rX arguments so I don't do a blanket execute on everything.
    http://articles.slicehost.com/2010/7...-symbolic-mode

    Code:
    chmod -R u=rwX,g=rX,o=rX /path/to/folder
    That's even better and simpler. I wonder how many more times I'll have to see it before it soaks in. I may have to weaken the attachment to "find" first.

  7. #17
    Join Date
    Aug 2009
    Location
    Makati City, Philippines
    Beans
    720
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Newb trying to transfer a simple html doc to Ubuntu Server

    Quote Originally Posted by CharlesA View Post
    I like using chmod with the rX arguments so I don't do a blanket execute on everything.
    http://articles.slicehost.com/2010/7...-symbolic-mode

    Code:
    chmod -R u=rwX,g=rX,o=rX /path/to/folder
    All hail the master!

    I learned something new. This will surely come in handy!
    The Philippine Team
    The best Ubuntu derivative: Linux Mint
    Relax. Head to the Community Cafe.

Page 2 of 2 FirstFirst 12

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
  •