lxllol
08-20-2008, 04:29 PM
Hi, there.
I have more than three groups with different settings including ratio, speedlimit, and logins' number.
each time when i use "gadduser" to add a user to a specific group,
I also have to use "site change =group1 ratio 0", "site change =group1 speedlimit 500 0", etc to change these setting of the new user.
I'm wondering if there's a easier way to do that?
like just use the gadduser command, and all the other stuff could be excute automatically.
I've searched the forum, just figure a way mentioned by Mouton:
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
Join Date: Dec 2002
Posts: 2,025
--------------------------------------------------------------------------------
For those unpatient ones, a simple .itcl file trigerred on post SITE and that reacts to adduser and gadduser would do.
And maybe even a new SITE command to specify group settings.
SITE GRPCHANGE somegroup RATIO 0
SITE GRPCHANGE somegroup LOGINS 2 FTP
SITE GRPCHANGE somegroup TAGLINE I'm new in somegroup!
Those commands would write the settings in say ioFTPD\groups\Default.<GroupID>
And on SITE [G]ADDUSER ..., the itcl would read those settings for the right group, and apply them to the added user.
the link:https://oss.azurewebsites.net/forum/showthread.php?t=8095&highlight=group+user+default
however, i dont know how to do that specificly...
anyone who master this thing plz show me a specific way of doing this job.
thanks a lot in advance~~
:)
I have more than three groups with different settings including ratio, speedlimit, and logins' number.
each time when i use "gadduser" to add a user to a specific group,
I also have to use "site change =group1 ratio 0", "site change =group1 speedlimit 500 0", etc to change these setting of the new user.
I'm wondering if there's a easier way to do that?
like just use the gadduser command, and all the other stuff could be excute automatically.
I've searched the forum, just figure a way mentioned by Mouton:
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
Join Date: Dec 2002
Posts: 2,025
--------------------------------------------------------------------------------
For those unpatient ones, a simple .itcl file trigerred on post SITE and that reacts to adduser and gadduser would do.
And maybe even a new SITE command to specify group settings.
SITE GRPCHANGE somegroup RATIO 0
SITE GRPCHANGE somegroup LOGINS 2 FTP
SITE GRPCHANGE somegroup TAGLINE I'm new in somegroup!
Those commands would write the settings in say ioFTPD\groups\Default.<GroupID>
And on SITE [G]ADDUSER ..., the itcl would read those settings for the right group, and apply them to the added user.
the link:https://oss.azurewebsites.net/forum/showthread.php?t=8095&highlight=group+user+default
however, i dont know how to do that specificly...
anyone who master this thing plz show me a specific way of doing this job.
thanks a lot in advance~~
:)