Old 07-05-2006, 03:30 AM   #1
cjlive
Junior Member
FlashFXP Beta Tester
 
Join Date: Apr 2003
Posts: 26
Default CHMOD Problem

Hi,

During some testing of several cms packages, i think i have come across a problem with CHMODing files to 444. I tried using flashfxp to CHMOD confi.php to 444, its says it has, but attributes still show it as 644. To double check i jumped into cpanel and used its file management application and successfully CHMODed the config.php to 444, refreshed FlashFXP and i now shows its attributes correctly.

Here is some images. First showing the failed CHMOD with FlashFXP and the second done with cpanel and then i have refreshed flashFXP.

http://www.cjlive.net/CHMOD.JPG
http://www.cjlive.net/CHMOD via cpanel.JPG

And a log (this is the same log as the first image)

[R] QUIT
[R] 221-Goodbye. You uploaded 0 and downloaded 0 kbytes.
[R] 221 Logout.
[R] Logged off: CjLivE.nET
[R] Connecting to CjLivE.nET -> DNS=ftp.cjlive.net IP=202.60.69.27 PORT=21
[R] Connected to CjLivE.nET
[R] 220---------- Welcome to Pure-FTPd [TLS] ----------
[R] 220-You are user number 1 of 50 allowed.
[R] 220-Local time is now 18:09. Server port: 21.
[R] 220-This is a private system - No anonymous login
[R] 220 You will be disconnected after 15 minutes of inactivity.
[R] USER handsoff
[R] 331 User handsoff OK. Password required
[R] PASS (hidden)
[R] 230-User handsoff has group access to: lazy
[R] 230 OK. Current restricted directory is /
[R] SYST
[R] 215 UNIX Type: L8
[R] FEAT
[R] 211-Extensions supported:
[R] EPRT
[R] IDLE
[R] MDTM
[R] SIZE
[R] REST STREAM
[R] MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNI X.gid*;unique*;
[R] MLSD
[R] ESTP
[R] PASV
[R] EPSV
[R] SPSV
[R] ESTA
[R] AUTH TLS
[R] PBSZ
[R] PROT
[R] 211 End.
[R] CWD /www/dev/nucleus
[R] 250 OK. Current directory is /www/dev/nucleus
[R] PWD
[R] 257 "/www/dev/nucleus" is your current location
[R] SITE CHMOD 444 config.php
[R] 200 Permissions changed on config.php
[R] TYPE A
[R] 200 TYPE is now ASCII
[R] PASV
[R] 227 Entering Passive Mode (202,60,69,27,204,167)
[R] Opening data connection IP: 202.60.69.27 PORT: 52391
[R] LIST -al
[R] 150 Accepted data connection
[R] 226-Options: -a -l
[R] 226 16 matches total
[R] List Complete: 1 KB in 0.24 seconds (4.3 KB/s)
__________________
Best Regards,
Chris


* FlashFXP v[4].[2].[0], b[1737], registered
* Windows 7 64bit
* Billion Modem 7800N
* ADSL2+ Network 20,000 / 1,000 Kbps
cjlive is offline  
Old 07-05-2006, 06:43 AM   #2
MxxCon
Super Duper
FlashFXP Beta Tester
 
Join Date: Oct 2001
Location: Brooklyn, NY
Posts: 3,881
Default

tried flushing dir cache after chmod?
does it behave the same way with other files too? maybe some script is monitoring config.php for such changes thru ftp and instantly revert back to r-r-r?
__________________
[Sig removed by Administrator: Signature can not exceed 20GB]
MxxCon is offline  
Old 07-05-2006, 07:45 AM   #3
cjlive
Junior Member
FlashFXP Beta Tester
 
Join Date: Apr 2003
Posts: 26
Default

Yes flushed directory cache. Just tested on seversl other files and it behaves the same way. I can CHMOD files to anything else but 444. The script using the config.php file is also telling me that it needs to be 444, before continuing. After CHMODing via cpanel the script continues.

On another note has anyone had their sigs deleted? I'v had to redo mine again.
__________________
Best Regards,
Chris


* FlashFXP v[4].[2].[0], b[1737], registered
* Windows 7 64bit
* Billion Modem 7800N
* ADSL2+ Network 20,000 / 1,000 Kbps
cjlive is offline  
Old 07-05-2006, 08:51 AM   #4
Hetfield
Senior Member
FlashFXP Scripter
 
Join Date: Nov 2002
Posts: 334
Default

Well i can hardly think this is a FlashFXP issue:

[R] SITE CHMOD 444 config.php
[R] 200 Permissions changed on config.php

The server said it changed but it hasn't. I tested this is on my own server and the SITE CHMOD 444 worked just fine. So my bet is that there is some kind of bug in the ftpd.
Hetfield is offline  
Old 07-05-2006, 10:31 AM   #5
MxxCon
Super Duper
FlashFXP Beta Tester
 
Join Date: Oct 2001
Location: Brooklyn, NY
Posts: 3,881
Default

ya, it could be that this server is doing permission check and not letting you change to something it consider bad.
just to be sure, try doing same with ftp.exe
__________________
[Sig removed by Administrator: Signature can not exceed 20GB]
MxxCon is offline  
Old 07-07-2006, 08:37 PM   #6
cjlive
Junior Member
FlashFXP Beta Tester
 
Join Date: Apr 2003
Posts: 26
Default

Ok the server uses pure-ftpd and it appears to be a bug/feature of this ftp software.
Still looking into it further.
__________________
Best Regards,
Chris


* FlashFXP v[4].[2].[0], b[1737], registered
* Windows 7 64bit
* Billion Modem 7800N
* ADSL2+ Network 20,000 / 1,000 Kbps
cjlive is offline  
 

Tags
444, chmod, config.php, flashfxp, [r]

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 02:25 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)