Go Back   FlashFXP Forums > > > >

! Other Scripts Support Support for all other scripts...

Reply
 
Thread Tools Rate Thread Display Modes
Old 05-07-2004, 01:36 PM   #1
PopWeasel
Senior Member
ioFTPD Scripter
 
Join Date: Feb 2004
Posts: 181
Default FTPServerTools NewDay

NewDay is creating new dirs with the wrong owner and perms. I see the NewVFS/OldVFS part of the FTPServerTools.ini but it says that part is not needed for ioFTPD v4.9.x and up. Do I need to use it anyway or something? I'm using ioFTPD v5.8.5r, NewDay v1.0.10, and FTPServerTools.ini v1.0.31.

FTPServerTools.ini:
Quote:
[ioFTPD]
NewVFS=!vfs:add 777 0:0
; command being performed on the newly created dirs
OldVFS=!vfs:add 755 0:0
; command being performed on the older dirs (Today-DaysBack) so if its 31-jan it works on 30-jan
; Not needed for ioFTPD 4.9.x and up.
ioFTPD.ini:
Quote:
[VFS]
###
# Default attributes for files & directories
#
# Required Parameters: <filemode> <owner uid>:<owner gid>
#

Default_Directory_Attributes = 550 103:101
Default_File_Attributes = 550 103:101
Thx.
PopWeasel is offline   Reply With Quote
Old 05-07-2004, 02:02 PM   #2
PopWeasel
Senior Member
ioFTPD Scripter
 
Join Date: Feb 2004
Posts: 181
Default

I'll try setting the owner and perms in the FTPServerTools.ini file under the NewVFS section as well as in the ioFTPD.ini file. Maybe I was reading the "Not needed for ioFTPD 4.9.x and up" part wrong. I'll post back if I notice it still creating dirs with wrong owner and perms.
Thx.
PopWeasel is offline   Reply With Quote
Old 05-07-2004, 04:45 PM   #3
FTPServerTools
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Sep 2002
Posts: 543
Default

NewDir performs the command given by NewVFS on each newly created dir so that is today and all the dirs if DaysAhead
Then OldVfs is performed on all the older dirs (give with DaysBack)
The not used for io 4.9.4 is some comment I apparenly left in from an older version. Just ignore it.
So if today is 0303 and daysahead=1 and daysback=2 then
0303 and 0304 will get the !vfs:add 777 0:0 command performed on it, meaning the attributes will be set to 777
0302 and 0301 will get !vfs:add 755 0:0 performed on it meaning the attributes will be set to 755 and thus now new uploads will be allowed on those dirs. Quite simple...
FTPServerTools is offline   Reply With Quote
Old 05-09-2004, 11:31 AM   #4
PopWeasel
Senior Member
ioFTPD Scripter
 
Join Date: Feb 2004
Posts: 181
Default

It's working well now after I configured the NewVFS part of FTPServerTools.ini. Thanks for clarifying it.
PopWeasel is offline   Reply With Quote
Reply

Tags
103101, dirs, ftpservertools.ini, ioftpd, newday

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

Forum Jump


All times are GMT -5. The time now is 06:15 PM.

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