Go Back   FlashFXP Forums > > > >

ioFTPD General New releases, comments, questions regarding the latest version of ioFTPD.

Reply
 
Thread Tools Rate Thread Display Modes
Old 01-11-2006, 10:59 PM   #1
mr_F
Member
FlashFXP Beta Tester
ioFTPD Foundation User
 
Join Date: Jul 2005
Posts: 33
Default chattr problem

hi

i don't know WTF happened, using ioFTPD 5.8.6r, somehow out of the blue my chattr doesn't make the directory invisible, but rather just make's it un-enterable.

ie:

[quote]

[2] CWD VSCKVSD3
[2] 250 CWD command successful.
[2] PWD
[2] 257 "/archive/VSCKVSD3/" is current directory.

...

[2] CDUP
[2] 250 CWD command successful.
[2] PWD
[2] 257 "/archive/" is current directory.


successfully can enter the dir, all is well, but after a chattr....


[1] site chattr +h "VSCKVSD3" -root
[1] 200 chattr Command successful.



[2] CWD VSCKVSD3
[2] 550 VSCKVSD3: Permission denied.


yeah on top of what's shown above, the dir is not in the directory listing.
any idea's anyone?
mr_F is offline   Reply With Quote
Old 01-12-2006, 02:46 AM   #2
Harm
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,430
Default

It is hidden in the directory listing which is the intended behaviour. Iirc, chattr +h also checks who can CWD into the directory. This is to prevent unauthorized ppl to enter hidden directories even if they know their names.

Though, now that you mention it, it could be a good idea to use another message "like directory doesn't exist" is such cases. _panic_ ?
Harm is offline   Reply With Quote
Old 01-12-2006, 02:49 AM   #3
mr_F
Member
FlashFXP Beta Tester
ioFTPD Foundation User
 
Join Date: Jul 2005
Posts: 33
Default

I think in my haste of typing I made my post very unclear.

What I meant to say was, for some reason when the client sends the LIST command, the folder which I had made hidden with chattr +h was still being included in the directory listing. though i couldn't enter the directory (permission is denied, as stated above). But in the past the directory would be completely invisible, and now, for some reason, it is not invisible, only un-enterable.

I hope that clears it up.
Still could use some help
mr_F is offline   Reply With Quote
Old 01-12-2006, 09:26 PM   #4
Romad
Junior Member
FlashFXP Registered User
ioFTPD Registered User
 
Join Date: Mar 2002
Posts: 22
Default

mr_f could be that you have show hidden files enabled on your ftp client. Just a thought but you probally all ready knew that. Only thing I could think off
Romad is offline   Reply With Quote
Old 01-12-2006, 09:29 PM   #5
mr_F
Member
FlashFXP Beta Tester
ioFTPD Foundation User
 
Join Date: Jul 2005
Posts: 33
Default

Quote:
Originally Posted by Romad
mr_f could be that you have show hidden files enabled on your ftp client. Just a thought but you probally all ready knew that. Only thing I could think off
chattr is supposed to transcend "list -al"
mr_F is offline   Reply With Quote
Old 01-12-2006, 09:55 PM   #6
Romad
Junior Member
FlashFXP Registered User
ioFTPD Registered User
 
Join Date: Mar 2002
Posts: 22
Default

Quote:
Originally Posted by mr_F
chattr is supposed to transcend "list -al"
Yea you are right, sorry another wierd thing that happen to me with chattr was after setting all folders permissions with FlashFXP. All of the sudden I started getting wierd problems directories not listing and outside connections could not see any file listings. Finally went and del all my .ioftp files and problem was fixed must have screwed up something some where along the lines.
Romad is offline   Reply With Quote
Old 01-17-2006, 02:09 PM   #7
_panic_
Senior Member
Ultimate Scripter
 
Join Date: Jul 2005
Posts: 153
Default

Quote:
Originally Posted by Harm
It is hidden in the directory listing which is the intended behaviour. Iirc, chattr +h also checks who can CWD into the directory. This is to prevent unauthorized ppl to enter hidden directories even if they know their names.

Though, now that you mention it, it could be a good idea to use another message "like directory doesn't exist" is such cases. _panic_ ?
yep, it should just report "doesn't exist". these kind of protection glitches are probably lurking in a few places around the code. i think this one is fairly minor, in that i'll be fixing /site commands first, but i'll add this to the list of bugs.
_panic_ is offline   Reply With Quote
Reply

Tags
chattr, cwd, directory, vsckvsd3, [2]

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:22 AM.

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