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 11 of 11
  1. #1
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts

    Exclamation What file attributes should be used for files on my website.

    What file attributes should be used for files on my website.

    Should I leave them unprotected or archived, read only or what. I have never considered it before.

    Frank
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,511
    Thanks
    8
    Thanked 1,090 Times in 1,081 Posts
    Frank,
    Not sure of your question.

    If you keep them in a directory, nobody can view the list of files if
    the directory has an "index.html" or "index.php" file in it.
    Or, you could use .htaccess to password protect that directory.

    I guess we're not sure what type of files you mean.

  • #3
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    Quote Originally Posted by mlseim View Post
    Frank,
    Not sure of your question.

    If you keep them in a directory, nobody can view the list of files if
    the directory has an "index.html" or "index.php" file in it.
    Or, you could use .htaccess to password protect that directory.

    I guess we're not sure what type of files you mean.
    Just the HTML and CSS files of my website. I think the same as you do that they are already protected by my site password. I am a little bit wary. A couple of years ago, all the files on my site got protected even from me and I had to get the Company to erase them for me so that I could replace them as required.

    It was shortly after the new NTFS file system started I think. I had probably accidently selected the wrong attributes.

    I'll probably leave them unprotected.

    Frank
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #4
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,511
    Thanks
    8
    Thanked 1,090 Times in 1,081 Posts
    I'm just guessing on this.
    When you create a new directory, your webhost automatically
    sets the permission of the new directory to 644.

    You don't need to set permission of a file (individually), unless you
    plan on writing to the file (like a text file), in which case you might
    pick a permission like 777 or 755 for that particular file.

    Make sure you don't mess with your cpanel (control panel) settings or
    the .htaccess file unless you know what you're changing.

    Your security is only as good as your webhost's security.
    If they have other security issues (beyond your control), no amount
    of permissions will help you. You should be able to ask them questions
    about this topic. If they don't have answers, you should find a different host.

  • Users who have thanked mlseim for this post:

    effpeetee (06-09-2009)

  • #5
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    It was probably my fault. I have a file program (Total Commander) which has an FTP section. This allowed me to set the attributes numerically, as I uploaded, but at that time I did not realise what the numbers were for and I left them as they were. It resulted in me not being able to overwrite them.

    I did not realise what they stood for. (next time I'll read the instructions!) so I paid the price. Thanks for your detailed answer.

    Frank
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #6
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    Frank if you publish files with a (wrong) permission, you can change it in your FTP program. Not sure how it works specifically in your total commander but in filezilla (free and very good), you right clikc the file and click 'file permissions'. set them to whatever you deem suitable for the specific files.

    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #7
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,511
    Thanks
    8
    Thanked 1,090 Times in 1,081 Posts
    Frank ...
    Bazz is correct, use FileZilla for all of your FTP needs.

    The permission numbers, which are OCTAL, represent bits
    designated to permissions by owner, group, and other.
    Do a Google search for "CHMOD tutorial".

  • #8
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    This is an earler post of mine.

    http://www.codingforums.com/showthread.php?t=168116

    which explains why I don't use Filezilla.

    Frank
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #9
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    I found the problem. I had used the wrong case on the htdocs folder.

    I really will have to get new eyes.

    Frank
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #10
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,511
    Thanks
    8
    Thanked 1,090 Times in 1,081 Posts
    Frank ...
    I would say you do pretty good for a senior user.
    Not many 70+ agers would even attempt this computer stuff.

  • #11
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    By the way, what does BTW stand for?
    Buy the whey. of course

    Frank
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.


  •  

    Posting Permissions

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