Page 1 of 1

Need help with permissions for site folders

Posted: 2004-07-13 01:25am
by haas mark
Ok I figured out the permissions problem I was having earlier, BUT...

I need to know if there's a way for me to set permissions so that (for example) someone can view http://mynetmarketingcenter.com/ebk/myf ... wsj596.htm but NOT http://mynetmarketingcenter.com/ebk/myfas.

Posted: 2004-07-13 11:34am
by phongn
What server does it use?

Posted: 2004-07-13 02:58pm
by haas mark
From the CPanel..

General server information:
Operating system Linux
Service Status Click to View
Kernel version 2.4.21-9.0.1.ELsmp
Apache version 1.3.31 (Unix)
PERL version 5.8.1
Path to PERL /usr/bin/perl
Path to sendmail /usr/sbin/sendmail
Installed Perl Modules Click to View
PHP version 4.3.4
MySQL version 4.0.18-standard
cPanel Build 9.4.1-STABLE 56
Theme cPanel X v2.3.0
Documentation Click to View

Posted: 2004-07-13 03:43pm
by Pu-239
Make a file called .htaccess, containing:

Code: Select all

Options -Indexes
in the directory you want to block. Do you only want to block the indexes, or do you want to deny reads alltogether (better to set permissions in that case)

Posted: 2004-07-14 02:06am
by haas mark
Pu-239 wrote:Make a file called .htaccess, containing:

Code: Select all

Options -Indexes
in the directory you want to block. Do you only want to block the indexes, or do you want to deny reads alltogether (better to set permissions in that case)
1 - How do I create that file?

2 - I'm not sure what you're asking. I want the actual files to be viewable, but none of the directories.

Posted: 2004-07-14 02:07am
by phongn
verilon wrote:1 - How do I create that file?
Use a text editor and upload the file to the directory of your choice.
2 - I'm not sure what you're asking. I want the actual files to be viewable, but none of the directories.
He was asking if you wanted to block access to the directory entirely, which doesn't appear to be what you want to do.

Posted: 2004-07-14 12:36pm
by haas mark
phongn wrote:
verilon wrote:1 - How do I create that file?
Use a text editor and upload the file to the directory of your choice.
Ok thanks.
2 - I'm not sure what you're asking. I want the actual files to be viewable, but none of the directories.
He was asking if you wanted to block access to the directory entirely, which doesn't appear to be what you want to do.
That's correct.

Posted: 2004-07-14 01:52pm
by Mad
You can also remove the 'r' (read) permission from the directory (for 'others' and 'group'), but keep the 'x' (execute) permission.

With that method, if somebody knows the actual filename, then they can view it, whether they're supposed to or not.

Posted: 2004-07-14 07:52pm
by haas mark
Mad wrote:You can also remove the 'r' (read) permission from the directory (for 'others' and 'group'), but keep the 'x' (execute) permission.

With that method, if somebody knows the actual filename, then they can view it, whether they're supposed to or not.
Thanks, Mad. :D