View Full Version : ioGroups (lists groups & users)
ADDiCT
09-13-2003, 04:57 PM
edit: always check my last reply in this thread to find the latest version
------------------------------
has this kinda output:
site lusers
200-----------------------------------------------------------------------
200- id name member of these groups
200-----------------------------------------------------------------------
200- 103 ADDiCT SiTEOPS (101) / ioftpd (0)
200- 102 anonymous ioftpd (0)
200- 101 darkone lSpeed (100)
200- 0 ioFTPD ioftpd (0)
200-----------------------------------------------------------------------
200 Command Successful.
site lgroups
200-----------------------------------------------------------------------
200- id groupname users description
200-----------------------------------------------------------------------
200- 0 ioftpd 3 Administrators
200- 100 lSpeed 1 LightSpeed
200- 1 NoGroup 0 Default Group
200- 101 SiTEOPS 1 New Group
200-----------------------------------------------------------------------
200 Command Successful.
perhaps not so usefull... but i needed it anyway for something else i'm making
read all info from the user/group files & IDtables, make sure to edit the ini file correctly
add this to your ioFTPD.ini, in the [scripts] section:
lgroups = ..\scripts\ioGroups.exe listgroups
lusers = ..\scripts\ioGroups.exe listusers
Good work, don't need but im sure someone needs it. Saw someone ask for stuff like this before.
darkone
09-13-2003, 06:11 PM
Yep, you're doing great :)
ADDiCT
09-13-2003, 06:23 PM
updates in 1.0.45
- u can limit the output like this:
site lusers a*
will only show users beginning with an "a". same for lgroups command.
(quite usefull if you have alot of users :))
alturismo
09-14-2003, 06:02 AM
real nice ;)
when u done woth your project and may find the time
to extend it with an feature like this
site lgroup SiteOP
200-.-------------------------------------------------[gRp_INFO]---------------------------------------------------.
200-| |
200-| Login | AllUp | AllDn | Tagline |
200- |
200-| * alturismo 63228 15029 solo |
200-| * whoever 0 123 |
200-| SiteBot 0 0 |
200-|----------------------------------------------------------------------------------------------------------------|
200-| + = GroupAdmin * = leech SiteOP |
200-|----------------------------------------------------------------------------------------------------------------|
200-| GroupÃSlots: -1 LeechSlots: -1 Users in group: 3 ... w/leech: 2 |
200-| |
200-| Files Megs kBps
200-|----------------------------------------------------------------------------------------------------------------|
200-| ALLUP 4355 63228 285 |
200-| ALLDN 1105 15152 226 |
200-| MONTHUP 937 28672 227 |
200-| MONTHDN 520 2981 106 |
200-| WEEKUP 1029 30278 225 |
200-| WEEKDN 619 4632 110 |
200-| DAYUP 135 4158 111 |
200-| DAYDN 131 268 61 |
200-|----------------------------------------------------------------------------------------------------------------|
as there aint anymore ginfo working on b5, only included with iobanana,
but not all using his nice script ;)
i tryed to make one out of moutons old ginfo as he suggested,
but i never made it to compile cause of my crappy c knowledge :(
ADDiCT
09-14-2003, 08:09 AM
i'm already able to output something like this:
site lgroups ioftpd
200------------------------------------------------------------------------------------------
200-username | flags | allup | alldn | leech | groupadmin | tagline
200------------------------------------------------------------------------------------------
200-ADDiCT | 3 | 8864418 | 1207087 | no | no | ADDiCTed
200-anonymous | 3A | 0 | 113542 | yes | no | Vote ioFTPD for president
200-ioFTPD | 1MTH | 4966593 | 833483021 | yes | no | Speed of light
200------------------------------------------------------------------------------------------
200-Usercount: 3 Groupslots: -1 Leechslots: -1
200------------------------------------------------------------------------------------------
for the other part: i suppose that is the total allup/alldn/wkup/wkdn/... of all users in the group ?
alturismo
09-14-2003, 08:48 AM
yep
these are some totals (where i was still some editing ;) )
wich arent that important, the layout u have there looks already real good
ADDiCT
09-14-2003, 09:35 AM
atm i only made the listing of users in the group, the totals will require more work than i expected (i'll only make that if you REALLY need it)
site lgroups ioftpd
200-.------------------------------------------------------------------------------.
200-| |
200-| GroupInfo for ioftpd - Administrators |
200-| |
200-+------------------------------------------------------------------------------+
200-| +* | username | flags | allup | alldn | tagline |
200-+------------------------------------------------------------------------------+
200-| | ADDiCT | 3 | 8656 | 1178 | ADDiCTed |
200-| * | anonymous | 3A | 0 | 110 | Vote ioFTPD for president |
200-| * | ioFTPD | 1MTH | 4850 | 813948 | Speed of light |
200-+------------------------------------------------------------------------------+
200-| Usercount: 3 Groupslots: -1 Leechslots: -1 |
200-| * =leech + =groupadmin |
200-+------------------------------------------------------------------------------+
updates in 1.0.71 :
- groupinfo as shown above :)
alturismo
09-14-2003, 09:42 AM
cheers man for sharing,
for me its fine as is ;)
the other was more experimental *g*
hi
tnx for making this .exe
bounty
09-15-2003, 04:11 AM
really nice addon m8 ;)
continue this good work
have fun
bounty
ADDiCT
09-17-2003, 03:34 PM
ok, just experimental for now, tell me what needs changing
btw: if you want 'site grpwk', make it an alias for 'site grpstats wkup'
ADDiCT
09-17-2003, 03:54 PM
okay, deleted previous attachment, was too buggy :)
latest version at :
http://home.no.net/addict99/files/ioGroups.1.0.133.zip
thanks to sams- for helping me out !
hi
very nice work
something like this would be nice to have
ADDiCT
09-17-2003, 06:22 PM
ginfo.msg
I need to add the + and * for leecher & groupadmin, i forgot that. Not a big problem.
The totalgroupstats are available already, edit your groupusers.foot.nfo file :
+------------------------------------------------------------------------------+
| |
| allup %(total_allup,8,R) alldn %(total_alldn,8,R) |
| monthup %(total_monthup,8,R) monthdn %(total_monthdn,8,R) |
| wkup %(total_wkup,8,R) wkdn %(total_wkdn,8,R) |
| dayup %(total_dayup,8,R) daydn %(total_daydn,8,R) |
| |
+------------------------------------------------------------------------------+
i will update this file by default in next version :)
gstats.msg
i need to
- add filecount (next to the megabytecount there is now)
- add order number
- add limiting (top 5/10/20/...)
will take a bit of work, nothing hard tho
ADDiCT
09-19-2003, 05:11 AM
small update:
- added '+' for gadmins and '*' for leech (only in default section)
- added filecount (next to bytecount)
still to add:
- total average speed (mostly copypaste work of other code)
- (stats per section?)
http://home.no.net/addict99/files/ioGroups.1.0.166.zip
MaistroX
09-19-2003, 05:42 AM
One small thing.
When doing ex: "site lusers" all works fine, but it will not look "straight" if any user have ex: downloaded lets say "100340" and more + the looks of ex: "nisseskall@b" , when he should be shown like "nisseskall@badamedankan" , anything able to do anything about ? :)
THX
ADDiCT
09-19-2003, 05:59 AM
edit the message files according to your needs :)
(by removing uid & userflags, u free up about 12 characters per line)
MaistroX
09-19-2003, 06:08 AM
oki, thx, just seems a bit hard to forsake info that could be of use.
MaistroX
09-19-2003, 10:08 AM
When doing "site lgroups something" it shows all correct, but dont mark out the "GroupAdmin : +" for right person(s), all other info shows correct.
ADDiCT
09-19-2003, 03:17 PM
http://home.no.net/addict99/files/ioGroups.1.0.182.zip
- bytes/files/speed variables available in all places
- bytes/files/speed variable for selected sorting in grpstats (if you do 'site grpstats wkup', u get the wkup values, if you do 'site grpstats alldn' u get the alldn values, ...)
- limit 'site grpstats' output like this:
'site grpstats wkup 10' will show top10 wkup groups
MaistroX, for groupadmin: it checks each user if he is an admin of the listed group, by reading the 'admingroups ...' line in the userfile.
And "oki, thx, just seems a bit hard to forsake info that could be of use" : i just provide all available information, u can do with it what you want, quite normal it doesn't fit all in a single line (perhaps use 2 lines per user ? :) )
MaistroX
09-19-2003, 03:29 PM
Latest works fine.
But problem persists, no Gadmin mark is shown when looking at a group, seems the problem is that a person having Leech (*) and having the gadminflag (G), ONLY the Leech (*) is shown infron of him, so there´s no way with that info to get who´s the gadmin, small issue maby, but still VERY usefull to get that info allso ;)
Please fix ? :)
ADDiCT
09-19-2003, 03:33 PM
basically u just want users with the flag 'G' to have '*' ? no problem for me to add that.
but then what does the line 'admingroups ...' in every userfile mean ?
isn't that the list of groups that user is an admin of ?
should i combine both statements ?
if (user has flag G) or (user has groupid of listed group in his admingroups line) then show '*'
ADDiCT
09-19-2003, 04:34 PM
- added userstats, same way as groupstats ('site usrstats allup 10' etc..)
- fixed the groupadmin thingie as requested
bounty
09-19-2003, 04:40 PM
w00000t !!!!!!!!!!! this ROXX ;)
i can now implement all stats in dzsbot ;)
very big thx m8
have fun
bounty
MaistroX
09-19-2003, 04:42 PM
Originally posted by ADDiCT
basically u just want users with the flag 'G' to have '*' ? no problem for me to add that.
...
What I mean is that it shows both * ( for leech ) and G ( for Gadmin ). :)
Ex:
"
site lgroups EFTERLYST
200-.--------------------------------------------------------------------.
200-| GROUPINFO for : Mupparna |
200-| Description : Trial |
200-| Number of Users : 11 |
200-| GroupSlots : 10 |
200-| LeechSlots : 3 |
200-| GID : 115 |
200-| GroupAdmin : + |
200-| Leech : * |
200-'--------------------------------------------------------------------'
200-| | Username | Flags | Up Megs | Dn Megs | Tagline |
200-'--------------------------------------------------------------------'
200-| | Nisse1 | 3 | 9113 | 6872 | I cant buy me l |
200-|G* | Nisse2 | 3LG | 10493 | 19451 | I cant buy me l |
200-| * | Nisse3 | 3 | 26897 | 33154 | I cant buy me l |
.......
"
I mean like the user "Nisse2" above , he is both Gadmin and have leech.
ADDiCT
09-19-2003, 04:44 PM
check the latest version, i think it'll show it as you want it
+ for groupadmin
* for leech
(don't tell me u just want another character, 'G' instead of '+' ? :))
MaistroX
09-19-2003, 04:57 PM
Originally posted by ADDiCT
....
(don't tell me u just want another character, 'G' instead of '+' ? :))
Noop, sounds great, and looked fine :)
thx
PS. Dont fotget about your wonder script-proggie ioGui , LOVE that to DEATH, would really like to see some more updates on that one ;)
ADDiCT
09-19-2003, 05:18 PM
i've been busy lately, had an exam last week, and then go to work for some days :(
ADDiCT
09-19-2003, 06:19 PM
exe only: fixed small bug: counter for userstats wasn't used in previous version.
ADDiCT
09-19-2003, 07:36 PM
important update
sorting in previous versions was totally b0rk3d :D
Can someone on a (large) site test this please ? i have no idea if it won't be slow on a +100 users site.
bounty
09-19-2003, 08:12 PM
a really big thx for your work ADDiCT
for this really nice addon for ioFTPD
have fun ;)
bounty
PS: this fine script is fully supported by dZSbot v0.90
canuma
09-20-2003, 05:44 AM
hey addict, very nice script i must say ;) thx
another thing would be quite usefull, listing users via flags
eg
site lusers -flag 3
.. ;)
something like that ;)
so long
Pichento
09-21-2003, 08:01 AM
Not compatible with w2k3, b5 or need env vars??
site lgroups
200-ERROR in clsUser::ReadUserfile() at line 0 : Overflow
200-ERROR: could not open userfile "201"
200- LastError =
200-ERROR in clsUser::ReadUserfile() at line 0 : Overflow
200-ERROR: could not open userfile "407"
200-ERROR in ProcessCommand() at line 18 : Subscript out of range
200 Command Successful.
config is correct.
hi
can u also make a site traffic?
ADDiCT
09-21-2003, 03:59 PM
Pichento:
ioGroups should be compatible with all win2k/xp/2k3 // beta 4/5
it does not use any of the environment variables
can u check if userfiles 201 and 407 exist ? perhaps some "ghost" lines of deleted users remain in UserIdTable or something
jeza:
sum of all users i presume ? deleting a user will change total traffic then. (i don't see any other way to collect that data)
Pichento
09-21-2003, 04:10 PM
heya addict.
I checked both userfiles (201 & 407)
When removing them all was ok, so they were somehow corrupted. Had to re-add the two users and tranfers their stats etc.
Strange... could be a possible undetect b5 bug
hi
u r right
how about to make a transfer.log file and get the data from there..
date|user|group|dn/ul|file|mb|speed
or is this to complicated?
ADDiCT
09-21-2003, 05:06 PM
updates in 1.0.201
- caching of calculated totals, should save some cpu cycles
- improved sorting method (i haven't actually tested it, i only have 5 users/ 4 groups on my test setup, let me know if sorting gets ****ed up, there might be a bug in this)
- added 'site traffic' : total stats of all users together
hi
cool tnx for making this
so far no probs with sorting for 30 users
MaistroX
09-22-2003, 03:48 AM
all commands working ....but one does no ->
site groupstats allup 5
500 'SITE GROUPSTATS': Command not understood.
thats the only one not working at all, anny ideás ?
ADDiCT
09-22-2003, 03:51 AM
site grpstats ?
it's just the name u give it in the [scripts] section
MaistroX
09-22-2003, 04:04 AM
I just followed your readme.nfo "site groupstats allup 5 lists top 5 alltime groups uploaders" ! ;)
hi
lusers = C:\ioFTPD\scripts\Misc\ioGroups.exe listusers
groups = C:\ioFTPD\scripts\Misc\ioGroups.exe listgroups
ginfo = C:\ioFTPD\scripts\Misc\ioGroups.exe listgroups
grpstats = C:\ioFTPD\scripts\Misc\ioGroups.exe groupstats
gdayup = C:\ioFTPD\scripts\Misc\ioGroups.exe groupstats dayup 20
gdaydn = C:\ioFTPD\scripts\Misc\ioGroups.exe groupstats daydn 20
gwkup = C:\ioFTPD\scripts\Misc\ioGroups.exe groupstats wkup 20
gwkdn = C:\ioFTPD\scripts\Misc\ioGroups.exe groupstats wkdn 20
gmnup = C:\ioFTPD\scripts\Misc\ioGroups.exe groupstats monthup 20
gmndn = C:\ioFTPD\scripts\Misc\ioGroups.exe groupstats monthdn 20
gallup = C:\ioFTPD\scripts\Misc\ioGroups.exe groupstats allup 20
galldn = C:\ioFTPD\scripts\Misc\ioGroups.exe groupstats alldn 20
usrstats = C:\ioFTPD\scripts\Misc\ioGroups.exe userstats
dayup = C:\ioFTPD\scripts\Misc\ioGroups.exe userstats dayup 20
daydn = C:\ioFTPD\scripts\Misc\ioGroups.exe userstats daydn 20
wkup = C:\ioFTPD\scripts\Misc\ioGroups.exe userstats wkup 20
wkdn = C:\ioFTPD\scripts\Misc\ioGroups.exe userstats wkdn 20
mnup = C:\ioFTPD\scripts\Misc\ioGroups.exe userstats monthup 20
mndn = C:\ioFTPD\scripts\Misc\ioGroups.exe userstats monthdn 20
allup = C:\ioFTPD\scripts\Misc\ioGroups.exe userstats allup 20
alldn = C:\ioFTPD\scripts\Misc\ioGroups.exe userstats alldn 20
traffic = C:\ioFTPD\scripts\Misc\ioGroups.exe sitestats
owngroup = %C:\ioFTPD\scripts\Misc\ioGroups.exe listgroups %[$group]
MaistroX
09-22-2003, 09:26 AM
One VERY usefull thing would be if I was able to to like "site userratio" to list ALL users with ratio, would help ALOT when doing a clean up, possible ?
Maby allso a feature that can deletae all users that have ratio 1:3 , just kkeping the best, meaning the top 20, or top 30 etc....
Possible ? :)
hi
any chance to make user info?
ADDiCT
09-23-2003, 04:07 PM
hehe, i was ahead of u this time, working on it already :)
(i'm converting ioGui to work over FTP, and i'm using ioGroups to provide all user/groupinfo.)
ADDiCT
09-24-2003, 04:17 PM
updates in 1.0.226:
- "site user" : replacement for "site uinfo"
MaistroX
09-24-2003, 04:44 PM
Could "site myinfo" be extended so like "1M" kan do like "site myinfo user1" , "site myinfo user2" aso. , so "1M" can check other users with that "looks" to ? :)
and maby ability so see allso "nr. of logins:" and more if possible ?
ADDiCT
09-24-2003, 04:48 PM
read the readme:
[scripts]
user = ..\scripts\ioGroups.exe userinfo
will make: "site user ADDiCT" return info for addict
limit the "site user" to 1M like this :
[Ftp-SITE-Permissions]
user = 1M
this will allow all users to view their own info with "site myinfo", and administrators to view info of any user with "site user blabla"
hi
site syslog 1
200--[Syslog]--------------------------------------------------------
200- 09-25-2003 01:20:57 'jeza' created user 'r' in group 'jP'.
200------------------------------------------------------------[ioA]-
200 Command Successful.
site user r
200-.------------------------------------------------------------------------.
200-| UserName........: r Flags.............: 2 |
200-| Group...........: jP Credits...........: 0 MB |
200-| Added By........: [n/a] Ratio.............: 1:3 |
200-| Added On........: [n/a] FTP Logins........: 2 |
ioGroups.ini
sysop_logfile = C:\ioFTPD\logs\SysOp.log
added by/on seems not to working
ADDiCT
09-24-2003, 06:30 PM
09-24-2003 22:42:00 'ioFTPD' created user 'test0rz' in group 'ioftpd'.
200-.------------------------------------------------------------------------.
200-| UserName........: test0rz Flags.............: 3 |
200-| Group...........: ioftpd Credits...........: 0 MB |
200-| Added By........: ioFTPD Ratio.............: 1:3 |
200-| Added On........: 09-24-2003 22:42 FTP Logins........: 1 |
i'll check it tomorrow, going to bed now
hi
ok
site user r
200-.------------------------------------------------------------------------.
200-| UserName........: r Flags.............: 2 |
200-| Group...........: jP Credits...........: 0 MB |
200-| Added By........: [n/a] Ratio.............: 1:3 |
200-| Added On........: [n/a] FTP Logins........: 2 |
200-| Max Sim Uploads.: Telnet Logins.....: 1 |
200-| Max Sim Dnloads.: HTTP Logins.......: 5 |
the user r never log in to server
ZAiNT
09-25-2003, 10:11 PM
Wzup! first of all i have to say this script totally r0x0rz!!! :D
And to my little request:
Last seen: Fri Sep 26 05:05:10 2003
it would be nice to see this in site user blahblah and site myinfo
peace!
.: ZAiNT :)
edit:
[05:20:49] 200-.----------------------------------[uINFO]------------------------------------.
[05:20:49] 200-| |
[05:20:49] 200-| Last login at 09-25-2003 12:18:31 |
[05:20:49] 200-.----------------------------------[uINFO]------------------------------------.
DOH!!!
ADDiCT
09-26-2003, 10:33 AM
rofl, sorry jeza, i accidently hardcoded the sysop logfile (while debugging) :)
ZAiNT, i'll look into that 'last seen' thingie, should be no problem
i'll also add a variable %(sitename) so u can use templates on any site without having to change them (sitename will be set in ini file)
expect an update tonight
ADDiCT
09-26-2003, 05:09 PM
updates in 1.0.238:
- userinfo --> lastlogin & logincount
- sitename variable %(sitename), set in ini file
Remarks:
To check lastlogin (and logincount), ioGroups reads the ioFTPD.log file. I checked it with a 85 MB file, containing ~900000 lines, and it takes about 6 seconds to read through that. i'll assume your ioFTPD.log isn't that big :)
ADDiCT
09-27-2003, 08:50 AM
change this in ioftpd.ini for the new ioFTPD version :
myinfo = %EXEC ..\scripts\ioGroups.exe userinfo %[$user]
owngroup = %EXEC ..\scripts\ioGroups.exe listgroups %[$group]
lgroups = EXEC ..\scripts\ioGroups.exe listgroups
lusers = EXEC ..\scripts\ioGroups.exe listusers
grpstats = EXEC ..\scripts\ioGroups.exe groupstats
usrstats = EXEC ..\scripts\ioGroups.exe userstats
traffic = EXEC ..\scripts\ioGroups.exe sitestats
user = EXEC ..\scripts\ioGroups.exe userinfo
Unique
10-01-2003, 02:27 AM
Mm addict i got that readuserfile prob too. Already posted it in dszbot cuz i saw this thread later :P
http://www.ioftpd.com/board/showthread.php?s=&postid=9554#post9554
ADDiCT
10-04-2003, 07:06 AM
Having Modify_Stats_On_Delete = True in ioFTPD.ini may mess up your userfile stats. This -might- result in errors in ioGroups (altho it should be fixed since ioFTPD beta 5.1.5)
More info in this thread : http://www.ioftpd.com/board/showthread.php?s=&threadid=1555
I deleted all old versions of ioGroups in this thread (cleaning up a bit), if for any reason u need an older version, check my website (see signature) or ask me on IRC.
updated in 1.0.244 :
- changed uploadtime from Long to Double, this should fix the overflows some people have. BUT! if your userfile is ****ed up (see above), then it's most likely the speed will be 0kBps:
355941732 bytes / 9072907854321770539 ms =~ 3.9 * 10^(-8) bytes per second --> it'll show 0 kBps
This is in fact just a workaround, so that the users with ****ed up userfiles will get listed anyway.
- error line in ReadUserSettings is now shown :p
Unique
10-04-2003, 08:22 AM
Come to think of it, might also explain the 0 kb speed i have always had in alup stats...
Just checked my half year old userdb and indeed everyone has those weird values ;) (thats with half year old io too so maybe d1 already fixed that in newer version)
I hope he will find a decent way to fix it :)
Dont really get how deleting can **** them up though, how would io know how much time it took to up a file. So how is it gonne modify that time when deleting... :confused: :eek:
And what will happen if someone would move files into the ftp using explorer, and then cdmods them all to for instance ioFTPD/ioFTPD, and then ioFTPD deletes them :)
Might get messy :)
MaistroX
10-04-2003, 08:23 AM
oki, so there´s no new ioGui.exe in this one right ? or... :)
ADDiCT
10-04-2003, 08:34 AM
this is ioGroups's thread :p
ioGui will be for tonight, and it will include this updated ioGroups version
MaistroX
10-04-2003, 08:52 AM
oki, now I know, NEVER write a post when tired ! :p
MaistroX
10-05-2003, 11:30 AM
Oki, since more and more will both LOVE and use ioGui , incl. ME ;), I have a few suggestions (if possible) ->
1. since theres no (at this time) working "kill" features for 5.x.x , could u maby consider do anything rthat can be used with ioGui, meaning (ex:) have a dropdown list with all teams, so U can kick a hole teams at once and so on , separate users.....
2. maby turn the current black "NOTE/varning text" in ex: "server settings RED, easyer not to miss then :)
3. Options in Server Settings to "Site Close" and "Site ReOpen" !?
thx, just wanted to get some more suggestions :)
ADDiCT
10-05-2003, 12:05 PM
again, this is ... ioGroups's thread
kraxdaz
10-05-2003, 12:58 PM
Very Great Script !!!!!!
thx to you ADDICT !!
hi
the all, month & week stats are the same
by groupinfo
groupusers.foot.nfo
ADDiCT
10-06-2003, 05:24 PM
200-| ALLUP | 63807| 368844| 14807| ALLDN | 63131| 349316| 587|
200-| MONTHUP | 694| 21213| 6152| MONTHDN | 13| 1575| 862|
200-| WKUP | 0| 0| 0| WKDN | 0| 0| 0|
200-| DAYUP | 0| 0| 0| DAYDN | 0| 0| 0|
i haven't changed the code in that function for a while actually :/
(ofcourse, it was still the first week of this month a couple of minutes ago, so month & week could be the same)
SomeoneWhoCares_2
10-08-2003, 08:22 PM
hello again! question.. is it possible to have iogrps to be able to have gadmin do site user grpmember but only on his group and 'user does
not exist' if tried on users not in his group?
really nice script btw
ADDiCT
10-09-2003, 04:13 PM
ok i will add that. (sorry for late reply, been busy with school and all)
just a quick question: if a user has flag 'G', does that mean he is a groupadmin of all groups on the server ?
(opposed to "site change <user> admingroup <group1> <group2>" for only specific groups)
Zer0Racer
10-09-2003, 05:25 PM
Originally posted by ADDiCT
just a quick question: if a user has flag 'G', does that mean he is a groupadmin of all groups on the server ?
(opposed to "site change <user> admingroup <group1> <group2>" for only specific groups)
Answer: No. 'G' flag has no hardcoded properties. It only gives user access to the site commands a gadmin needs. Admingroup makes a user gadmin of selected group(s), and not able to edit other groups. If admingroup is not set user is not restricted to specified group(s). Still needs flag (1MG) to access the site commands though - so regular user or gadmin will not be able to edit other groups (if set up properly, meaning gadmins have both 'G' flag and admingroup set).
ADDiCT
10-09-2003, 05:43 PM
mkay i was afraid of this:
dunny why, but i coded it so that a user with flag G is groupadmin of any group... will fix this in next version as well :)
ADDiCT
10-11-2003, 11:57 AM
updated in 1.0.252 :
- bugfix: any user with flag G was considered groupadmin of all groups
- new feature: 'site usrstats wkup 10 TRiAL' will list wkup top-10, limiting the output to users in the group TRiAL.
(index number per user stays the same as on the listing with all users)
- new setting: restrict_userinfo
~ Setting it to 0 will change nothing about the behaviour of ioGroups compared to previous versions.
~ Setting it to 1 will make ioGroups check for access to the 'site user' command:
1. any user can see his own info
2. groupadmins can see userinfo for all users in the groups they are a groupadmin of.
3. masters can see userinfo of any user. U can define flags for this in ioGroups.ini (eg: all users with flag 1 or M)
4. in all other cases, access to 'site user' will be denied.
Ofcourse, u can combine these settings with [FTP-Site-Permissions] in ioFTPD.ini
For exemple, setting 'restrict_userinfo = 1' in ioGroups.ini and 'user = 1MNG' in ioFTPD.ini will NOT allow any user to view his own info (although ioGroups would allow it)
SomeoneWhoCares_2
10-11-2003, 02:14 PM
finally something for user to check their own info withough using some new site cmd, great! :banana:
what could it be? i get the commands working fine (looks like some cool stuff) but all of the data's are 0 due to an error "cant open userfile ioFTPD/users/136").
yes, thats right -->> there is no 136 userfile. what could that mean and why is that required? :) thanks.
ADDiCT
10-12-2003, 02:41 PM
delete the 'ghost' entry in \etc\UserIdTable for that non-existing user
hmm bleh - using 4.9.4 here. where is that stuff in there?
200-ERROR in clsUser::ReadUserfile() : userfile "F:\ioFTPD\users\136" doesn't exist.
200-ERROR: couldn't load userfile "136"
that's the full msg btw.
thanks :))
ADDiCT
10-12-2003, 02:53 PM
\etc\passwd for ioFTPD 4.*
ah thx - no more errors, just 0mb now. it starts counting from the time u install it?
ADDiCT
10-12-2003, 03:56 PM
it reads all info from the userfiles, it should work anytime
could it be then that it's somehow not working on 4.9.4? giving no more errors.. just showing 0mbs everywhere.
ADDiCT
10-22-2003, 12:17 PM
updated in 1.0.274
- option to override the default 'site users' command (as requested)
- new values on userinfo: %(vfsfile) and %(homedir)
- usercounter in 'site traffic' should be correct now.
- (forgot the other things, if any)
alturismo
10-22-2003, 02:02 PM
cheers man ;)
Monkie
10-22-2003, 04:25 PM
Is there any way we can like show sitestats in the welcome.msg for instance? I tried just including the file but that doesn't replace the variables with the actual stats.
Would be cool to do such a thing :-)
SomeoneWhoCares_2
10-22-2003, 08:34 PM
use exec not include
Monkie
10-23-2003, 01:28 AM
Originally posted by SomeoneWhoCares
use exec not include
What should i exactly exec then?
i have the problem that i have 5 groups ans site traffic diplaying only 4.
in lgroups or so there are (right) 5 groups
and another question...
tried out ioftpd 5.2.2 and wanted to user the new cookies
did:
UPSPEED=%[limit(up_speed)] in the env file and then tried to use %(UPSPEED) in one of the iogroup msg (nfo) files.
didnt work
any ideas?
ADDiCT
10-23-2003, 12:21 PM
inventing your own ioGroups variables like %(UPSPEED) won't work, that's for sure :)
ADDiCT
10-23-2003, 04:10 PM
updates in 1.0.279 :
- 2 new userinfo variables for bw limits
- usercount & groupcount should now be correct in all cases, please test this for me!
- (removed/optimized some code, nothing big)
yes quiet right this far. 17 users in 7 groups is always the right number on my site so THX addict!!!
chimera
11-07-2003, 10:11 AM
is it possible to make the output limited to the users own group?
for instance, user TEST is member of group TESTERS, doing SITE LUSERS would only return a list of users in the group TESTERS.
also, is it possible to override SITE UINFO with SITE USER?
ADDiCT
11-07-2003, 10:32 AM
site lgroups SiTEOPS
or whatever command u gave to "iogroups.exe listgroups"
overriding > read the doc. it's explained how to do that.
chimera
11-07-2003, 10:42 AM
Originally posted by ADDiCT
site lgroups SiTEOPS
or whatever command u gave to "iogroups.exe listgroups"
overriding > read the doc. it's explained how to do that.
well, SITE LGROUPS GRPNAME would still make them able to see all groups if the did just SITE LGROUPS. what i ment is that i want them not to be able to see anything else but their own group.
perhaps a way with cookies?
and, all i could see in the doc was
[pre]
site = EXEC ..\scripts\ioGroups.exe override_site_users
which overrides SITE USERS command.
what wondered was if there is a way to override other commands, such as SITE UINFO with for instance
site = EXEC ..\scripts\ioGroups.exe override_site_uinfo
to use the SITE USER command when UINFO is used
ADDiCT
11-07-2003, 10:46 AM
blame alcohol for my mistakes !
overriding 'site uinfo' is indeed not supported, because 'site user' is a more logical command for it, imho... i can add override option for 'site uinfo' if u really want it.
owngroup = %EXEC ..\scripts\ioGroups.exe listgroups %[$group] ^ could show a user his own group, isn't that what u need ?
if u only want the userlisting and not the group's details, use a second set of templates for groupstats.*.nfo, where u leave the head & foot a blank file
chimera
11-07-2003, 10:53 AM
Originally posted by ADDiCT
blame alcohol for my mistakes !
overriding 'site uinfo' is indeed not supported, because 'site user' is a more logical command for it, imho... i can add override option for 'site uinfo' if u really want it.
owngroup = %EXEC ..\scripts\ioGroups.exe listgroups %[$group] ^ could show a user his own group, isn't that what u need ?
if u only want the userlisting and not the group's details, use a second set of templates for groupstats.*.nfo, where u leave the head & foot a blank file
hehe, no worries. just interested in any changes. i guess i simply could tell ppl to use site user instead of site uinfo. :)
yes, owngroup does that. i dunno, just wanted to know if it was possible basically. paranoid siteop that want to hide groups from each other and still let them use any command so to speak. that was the reason why. i know, stupid reason.. but still. don't hurt to ask ;)
btw.. great script :D
ADDiCT
11-26-2003, 04:09 PM
it's been a while since i made any changes to this one ;)
updates in 1.0.288
- added user ranking for all stats (bounty needed it for dZSbot)
possible to expand colums for month and alldn or so? some users have exceeded lines here. maybe in one of the next versions?
of course i could do this on my own! but if u change cookies or whole format i will be fu**** ;)
greez toki
LooPTrooP
11-30-2003, 12:48 PM
Thx Alot Again For Your Nice Tools , I*ll Be Saying This ALot Of TiMeS:banana:
is there a credits variable available? i couldnt find in readme but i would be interested in using that for user body or so. or maybe in future version?
thx toki
ADDiCT
01-15-2004, 02:39 PM
it's not in the readme.nfo, but it's mentioned in userinfo.body.nfo =)
%(credits)
in MB, total sum of all sections
thx addict. easiest way is tha hardest to find sometimes...
toki
Hey addict.
Is it maybe possible to add some cookies(probably needs more then just cookies, but cookies so ppl can make their own look) to your ioGroups script so I can list something like this:
| Date/time Last-DOWNLOADS Files Megabytes Avg k/s |
|----------------------------------------------------------------------------|
| 04-01/11 09:10 Name.of.release-dirname 49 704MB 7414K/s |
| 04-01/11 07:13 Name.of.release-dirname 49 704MB 34K/s |
| 04-01/11 03:20 Name.of.release-dirname 25 365MB 400K/s |
You have something similar in "SITE USERSTATS WKDN 10". This maybe doesnt have to do anything with your script but would be cool to have some extra info about user history(down/uploads) in "SITE USER <name>"
Dunno if its even possible. But if you think it fits ioGroups, I would love it. If not I would understand.
ADDiCT
03-24-2004, 05:37 PM
it has absolutely nothing to do with ioGroups.
i would need to make/read an .ioFTPD.race file, so either make my own zipscript (some day :) ) or be compatible with all other zipscripts and their logfiles-per-dir
I know Im asking much and alltime, hope u ppl dont think Iam anoying. But I thought on something that probably aint importent but good to have.
What am looking/asking for is to see yesterday month/week/day traffic also in "SITE TRAFFIC"template. Just for fun to compare traffic from yesterday or last week/month.
Think about it. love your script :)
ADDiCT
04-22-2004, 10:29 AM
remark to teh public: ioGroups is currently being rewritten to use shmem instead of the userfiles, so it will take a while before u see 'new' functions
odd: what u want, can already be achived (technically), by sheduling a batch to save the output to a file "stats.yesterday.txt" and then adding a sitecommand to display that file.
Originally posted by ADDiCT
remark to teh public: ioGroups is currently being rewritten to use shmem instead of the userfiles, so it will take a while before u see 'new' functions
oki I understand, looking forward for it.
odd: what u want, can already be achived (technically), by sheduling a batch to save the output to a file "stats.yesterday.txt" and then adding a sitecommand to display that file.
Appreciate your help but...
I can do all that except, what to put in the bat file. :(
If anyone have time over or the will to do it, ur welcome.
ADDiCT
04-23-2004, 08:11 AM
c:\ioftpd\scripts\yesterday.bat@c:\ioftpd\scripts\ iogroups\ioGroups.exe sitestats > c:\ioftpd\logs\yesterday.txtioftpd.ini[Scheduler]
SaveYesterdayStats = 59 23 * * EXEC c:\ioftpd\scripts\yesterday.bat
[FTP_Custom_Commands]
yesterday = !c:\ioftpd\logs\yesterday.txtusagesite yesterday
(sidenote: bat file is actually not needed, u can also run cmd.exe /c iogroups.exe sitestats > yesterday.txt directly in the sheduler)
YesterdayStats = 19,20 * * * EXEC c:\WINNT\system32\cmd.exe /c c:\ioftpd\scripts\iogroups\iogroups.exe sitestats > c:\ioftpd\logs\lastday.txt
That worked THANKS :)
I found one problem with this. I need to run 3 schedulars, 1th for day, 2nd for week and third for month. As the weekstats gets messed up at the begining of a week. But this something I can absolutly live with. Many thanks.
NIce to have the time/date in traffic...
site traffic
200-
200- Traffic : ...
200- Date : 04/23/2004 22:58:08
200- Number of Users : 12
200- Number of Groups : 5
200-
cuz now I really have some use for that :D
PopWeasel
05-21-2004, 04:54 PM
Nice looking script.
edit: always check my last reply in this thread to find the latest version
remark to teh public: ioGroups is currently being rewritten to use shmem instead of the userfiles, so it will take a while before u see 'new' functions
Any update on how the progress is going?:D Thx.
ADDiCT
05-21-2004, 05:02 PM
quite good actually, i already wrote the code to parse template files (translate cookies etc)
(it's now in C++ instead of VB, so restart from scratch)
but i'm in my exams period at school, so don't expect anything until july (this goes for all my scripts)
PopWeasel
05-21-2004, 07:44 PM
ehm..where can I get v1.0.288? I don't see it at ioftp.com/scripts and all links in this thread are dead. :(
ADDiCT
05-22-2004, 02:30 AM
http://home.no.net/addict99/files/ioGroups.1.0.288.zip
moin,
ADDiCT
little question is it possible to add ioShareDB support into ioGroups?
cya
ADDiCT
06-30-2004, 04:32 AM
The problem with current ioGroups <-> ioShareDB is that there are no userfiles?
That problem will be solved in the new version, it uses shmem to get users data from ioFTPD, and ioFTPD gets them from ioShareDB. So no physical userfiles are required, it should work.
i'm glad to hear that;)
thx ADDiCT
How long to wait for shmem versioN?
ADDiCT
08-05-2004, 11:07 AM
Results at school were, once again, not good. Meaning i have another 6 exams first weeks of september. Meaning i'm studying most part of the days, and well, in my free time i do some paid work and watch movies, play games.
At the moment, i just don't have the time for it. But i WILL continue working, because it's just so rewarding in terms of "gainin knowledge"... and just plain fun programming.
( Don't expect anything before october :( )
Originally posted by ADDiCT
( Don't expect anything before october :( )
We are at 11th of October .. any news?
I've mounted the sharedb and now dZSbot gives a lot of errors that he can't find users files :(
i'm glad to test a beta version if u have one .. beta is better than not working!
thx
no xmas present for us? :D
Addict .. any news on ioGroups?
ADDiCT
12-25-2004, 02:01 PM
Had way too much work at school to do anything for io. On the other hand, i learned more (better) programming techniques :)
But i'm actually waiting for the new io to develop any script:
- http://www.ioftpd.com/board/showthread.php?s=&threadid=4111
- http://www.ioftpd.com/board/showthread.php?s=&threadid=4060
alot of changes, and a great chance that any work i do for the current version will be 'useless' (in a way)
vBulletin® v3.8.11 Alpha 3, Copyright ©2000-2025, vBulletin Solutions, Inc.