What are your recommended file permissions for PHP-Nuke?

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   What are your recommended file permissions for PHP-Nuke?
Dauthus
CZ Addict
 Codezwiz Site Donator
Dauthus has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 61
Gender: Male
Website:
Status: Offline
Joined: Mar 17, 2004
0.06 posts per day
Posts: 426
Points: 15,917
   
I haven't heard too much talk about this option, (using CHMOD) for securing files and directories. I was just wondering what the basic suggestion for permission setting seems to be?

I know some modules and such require individual settings in order to operate, and everyone should read the install directions which come with the modules, but I am just looking at the basic settings.




_________________
[ Register or login to view links on this board.]
Vivere disce, cogita mori
Back to top Reply with quote
#2   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
I suggest chmod 644 anything you dont want accessed outside your site. Directories leave at 755 unless you have to upload or write to them then make them 777 but be careful with that. You should also upload a blank index.html and an .htaccess file with this in it:

deny from all




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   re: What are your recommended file permissions for PHP-Nuke?
Dauthus
CZ Addict
 Codezwiz Site Donator
Dauthus has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 61
Gender: Male
Website:
Status: Offline
Joined: Mar 17, 2004
0.06 posts per day
Posts: 426
Points: 15,917
   
I've got a couple of questions about the index.html and the htaccess files.

1. When there is already an index.php file in the directory, my site doesn't seem to work when I upload the htaccess and index.html files

2. the htaccess file doesn't seem to work on image galleries also. It blocks all the images from showing. Should I just upload the index.html to that directory?

3. Some directories will not show images if I put the htaccess file in that directory. It only seems to effect the directories which have an index.php in the higher level directory.

Are these normal?




_________________
[ Register or login to view links on this board.]
Vivere disce, cogita mori
Back to top Reply with quote
#4   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
If you have an index.php you dont need an index.html That is for directories that do not have an index allready. What do you have in your .htaccess?




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#5   re: What are your recommended file permissions for PHP-Nuke?
Dauthus
CZ Addict
 Codezwiz Site Donator
Dauthus has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 61
Gender: Male
Website:
Status: Offline
Joined: Mar 17, 2004
0.06 posts per day
Posts: 426
Points: 15,917
   
deny from all




_________________
[ Register or login to view links on this board.]
Vivere disce, cogita mori
Back to top Reply with quote
#6   
sabastina
CZ Active Member
Occupation: College Student
Website:
Status: Offline
Joined: Nov 03, 2003
0.03 posts per day
Posts: 212
Points: 120,520
AIM Address Yahoo Messenger MSN Messenger ICQ Number
My site is getting a forbidden no matter what I set my Chmods on...I have to have them on 766 to even work in my files...and even then , when I go back, they are chmod to 644 again...just seconds later!


This all started with netscape & IE redirecting me to yoursite/index.html as opposed to your site/admin.php as I requested from my browser... i went into my ftp looked (didn't change) my Chmods which were set at 644 and still couldn't get in there....not even in the files themselves...after changing them, now I can get into the files...

I'm about to cry because I've deleted 4 sites this week and this is the most perfect one I've built so far.... icon_cry.gif

If anyone knows what may be the problem, please let me know...



Back to top Reply with quote
#7   
sabastina
CZ Active Member
Occupation: College Student
Website:
Status: Offline
Joined: Nov 03, 2003
0.03 posts per day
Posts: 212
Points: 120,520
AIM Address Yahoo Messenger MSN Messenger ICQ Number
Ahh...My searching methods stink. I found the answer by looking up the name of my [ Register or login to view links on this board. ] I had the base chmod confused with a chmod for another script I use.
Chmod for nuke is 755.

But, I still don't understand how my file permissions could be changed without my changing them. This has happened several times. On both of my hosts, so I must be doing something incorrectly. I'm using the WS_FTP 95...maybe that's the problem...


In closing, I've finnally realized that being in a hurry to build a site can mean that you don't so things - like searches for problems_ quite thoroughly and end up posing stupid questions like this one...Sorry guys...I WILL slow my roll and get it together next time I have a problem...it's just hard when I get so exicited about the site then face total destruction of it (it seems like it will be anyhow) icon_eek.gif

Sabastina



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum