Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 1372 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

CHMOD & PHP script

Thread title: CHMOD & PHP script
Closed Thread  
Page 1 of 2 1 2 >
    Thread tools Search this thread Display Modes  
07-14-2005, 07:21 AM
#1
Alextgtg is offline Alextgtg
Status: I'm new around here
Join date: Jul 2005
Location: Ukraine
Expertise:
Software:
 
Posts: 6
iTrader: 0 / 0%
 

Alextgtg is on a distinguished road

Send a message via ICQ to Alextgtg

  Old  CHMOD & PHP script

HI!!!!!!!

Please help with CHMOD with PHP script (like FORUM, CVS).
What CHMOD i must make to defend some data on my script (password, DB name..........)?

07-14-2005, 07:27 AM
#2
Bennett is offline Bennett
Status: Narassist
Join date: May 2005
Location: USA
Expertise:
Software:
 
Posts: 4,469
iTrader: 32 / 100%
 

Bennett is on a distinguished road

Send a message via MSN to Bennett

  Old

I'm sorry.. I don't understand your english too well. I'd suggest 700

07-14-2005, 07:57 AM
#3
Alextgtg is offline Alextgtg
Status: I'm new around here
Join date: Jul 2005
Location: Ukraine
Expertise:
Software:
 
Posts: 6
iTrader: 0 / 0%
 

Alextgtg is on a distinguished road

Send a message via ICQ to Alextgtg

  Old

I'm sorry for my english
I mean:
1) I make forum PHP script
2) Upload to server via FTP
3) What CHMOD comand i must use to files & directories (config.php - must be secure, because they contain admin login & password)

07-14-2005, 09:11 AM
#4
Jen is offline Jen
Status: Member
Join date: Dec 2004
Location: Australia
Expertise:
Software:
 
Posts: 413
iTrader: 0 / 0%
 

Jen is on a distinguished road

  Old

Don't you have readme file? It should be there for chmod permission.

755, 655 etc are different types of permission.

07-14-2005, 09:12 AM
#5
SoftCloud is offline SoftCloud
Status: Member
Join date: May 2005
Location: Atherstone, Warks
Expertise:
Software:
 
Posts: 336
iTrader: 0 / 0%
 

SoftCloud is on a distinguished road

  Old

Well if you have an installation script with your forum the config.php will have to be 777 if anything is being wrote to it, but then afterwards I'd CHMOD it to something like 755.

07-14-2005, 03:41 PM
#6
Koobi is offline Koobi
Koobi's Avatar
Status: Member
Join date: Apr 2005
Location:
Expertise:
Software:
 
Posts: 312
iTrader: 0 / 0%
 

Koobi is on a distinguished road

  Old

if you really want to keep your file safe, store it outside the webroot, i.e. store it above public_html

07-15-2005, 06:25 AM
#7
Alextgtg is offline Alextgtg
Status: I'm new around here
Join date: Jul 2005
Location: Ukraine
Expertise:
Software:
 
Posts: 6
iTrader: 0 / 0%
 

Alextgtg is on a distinguished road

Send a message via ICQ to Alextgtg

  Old

Greate thank for reply!!!!!!!!!!!! I find cool article about CHMOD (but they in russian language) http://www.webstudent.ru/modules/wfs...hp?articleid=2

07-15-2005, 06:41 AM
#8
Bennett is offline Bennett
Status: Narassist
Join date: May 2005
Location: USA
Expertise:
Software:
 
Posts: 4,469
iTrader: 32 / 100%
 

Bennett is on a distinguished road

Send a message via MSN to Bennett

  Old

Altavista conquered the language barrier for that website

07-19-2005, 10:06 AM
#9
Adam is offline Adam
Adam's Avatar
Status: Member
Join date: Jan 2005
Location:
Expertise:
Software:
 
Posts: 433
iTrader: 0 / 0%
 

Adam is on a distinguished road

  Old

chmod("/parth/todir/or/file", 755);

or if you have ssh access

run this: chmod -r /parth/to/dir/or/.file 755

07-19-2005, 04:50 PM
#10
Koobi is offline Koobi
Koobi's Avatar
Status: Member
Join date: Apr 2005
Location:
Expertise:
Software:
 
Posts: 312
iTrader: 0 / 0%
 

Koobi is on a distinguished road

  Old

but 755 allows "group" and "others" to write and execute doesnt it?

Closed Thread  
Page 1 of 2 1 2 >


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed