PDA

View Full Version : chattr problem


mr_F
01-11-2006, 10:59 PM
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?

Harm
01-12-2006, 02:46 AM
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_ ?

mr_F
01-12-2006, 02:49 AM
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 ;)

Romad
01-12-2006, 09:26 PM
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

mr_F
01-12-2006, 09:29 PM
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"

Romad
01-12-2006, 09:55 PM
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.

_panic_
01-17-2006, 02:09 PM
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.