Need help with permissions for site folders

GEC: Discuss gaming, computers and electronics and venture into the bizarre world of STGODs.

Moderator: Thanas

Post Reply
User avatar
haas mark
Official SD.Net Insomniac
Posts: 16533
Joined: 2002-09-11 04:29pm
Location: Wouldn't you like to know?
Contact:

Need help with permissions for site folders

Post 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.
Robert-Conway.com | lunar sun | TotalEnigma.net

Hot Pants à la Zaia | BotM Lord Monkey Mod OOK!
SDNC | WG | GDC | ACPATHNTDWATGODW | GALE | ISARMA | CotK: [mew]

Formerly verilon

R.I.P. Eddie Guerrero, 09 October 1967 - 13 November 2005


Image
User avatar
phongn
Rebel Leader
Posts: 18487
Joined: 2002-07-03 11:11pm

Post by phongn »

What server does it use?
User avatar
haas mark
Official SD.Net Insomniac
Posts: 16533
Joined: 2002-09-11 04:29pm
Location: Wouldn't you like to know?
Contact:

Post 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
Robert-Conway.com | lunar sun | TotalEnigma.net

Hot Pants à la Zaia | BotM Lord Monkey Mod OOK!
SDNC | WG | GDC | ACPATHNTDWATGODW | GALE | ISARMA | CotK: [mew]

Formerly verilon

R.I.P. Eddie Guerrero, 09 October 1967 - 13 November 2005


Image
User avatar
Pu-239
Sith Marauder
Posts: 4727
Joined: 2002-10-21 08:44am
Location: Fake Virginia

Post 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)

ah.....the path to happiness is revision of dreams and not fulfillment... -SWPIGWANG
Sufficient Googling is indistinguishable from knowledge -somebody
Anything worth the cost of a missile, which can be located on the battlefield, will be shot at with missiles. If the US military is involved, then things, which are not worth the cost if a missile will also be shot at with missiles. -Sea Skimmer


George Bush makes freedom sound like a giant robot that breaks down a lot. -Darth Raptor
User avatar
haas mark
Official SD.Net Insomniac
Posts: 16533
Joined: 2002-09-11 04:29pm
Location: Wouldn't you like to know?
Contact:

Post 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.
Robert-Conway.com | lunar sun | TotalEnigma.net

Hot Pants à la Zaia | BotM Lord Monkey Mod OOK!
SDNC | WG | GDC | ACPATHNTDWATGODW | GALE | ISARMA | CotK: [mew]

Formerly verilon

R.I.P. Eddie Guerrero, 09 October 1967 - 13 November 2005


Image
User avatar
phongn
Rebel Leader
Posts: 18487
Joined: 2002-07-03 11:11pm

Post 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.
User avatar
haas mark
Official SD.Net Insomniac
Posts: 16533
Joined: 2002-09-11 04:29pm
Location: Wouldn't you like to know?
Contact:

Post 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.
Robert-Conway.com | lunar sun | TotalEnigma.net

Hot Pants à la Zaia | BotM Lord Monkey Mod OOK!
SDNC | WG | GDC | ACPATHNTDWATGODW | GALE | ISARMA | CotK: [mew]

Formerly verilon

R.I.P. Eddie Guerrero, 09 October 1967 - 13 November 2005


Image
User avatar
Mad
Jedi Council Member
Posts: 1923
Joined: 2002-07-04 01:32am
Location: North Carolina, USA
Contact:

Post 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.
Later...
User avatar
haas mark
Official SD.Net Insomniac
Posts: 16533
Joined: 2002-09-11 04:29pm
Location: Wouldn't you like to know?
Contact:

Post 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
Robert-Conway.com | lunar sun | TotalEnigma.net

Hot Pants à la Zaia | BotM Lord Monkey Mod OOK!
SDNC | WG | GDC | ACPATHNTDWATGODW | GALE | ISARMA | CotK: [mew]

Formerly verilon

R.I.P. Eddie Guerrero, 09 October 1967 - 13 November 2005


Image
Post Reply