...

View Full Version : What file attributes should be used for files on my website.



effpeetee
06-09-2009, 06:04 PM
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

mlseim
06-09-2009, 07:12 PM
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.

effpeetee
06-09-2009, 07:35 PM
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.:o

I'll probably leave them unprotected.

Frank

mlseim
06-09-2009, 09:15 PM
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.

effpeetee
06-09-2009, 10:30 PM
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

bazz
06-10-2009, 12:50 AM
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

mlseim
06-10-2009, 01:28 AM
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".

effpeetee
06-10-2009, 10:28 AM
This is an earler post of mine.

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

which explains why I don't use Filezilla.

Frank

effpeetee
06-10-2009, 01:29 PM
I found the problem. I had used the wrong case on the htdocs folder.

I really will have to get new eyes.

Frank

mlseim
06-10-2009, 03:48 PM
Frank ...
I would say you do pretty good for a senior user.
Not many 70+ agers would even attempt this computer stuff.

effpeetee
06-10-2009, 04:47 PM
By the way, what does BTW stand for?

Buy the whey. of course

Frank



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum