Go Back   FlashFXP Forums > > > >

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

Closed Thread
 
Thread Tools Rate Thread Display Modes
Old 08-18-2007, 05:36 AM   #61
thunk
Member
 
Join Date: Oct 2004
Posts: 37
Default

Quote:
Originally Posted by Zer0Racer View Post
So at least THAT works. After further testing not even Overwrite = * * gives a regular user overwrite permissions (though users now can overwrite their own files), so I guess something in the source checks against those hardcoded properties of the M and V flag too, not only the Overwrite option in ini.

I guess some changes have to be made to fix this, and preferably changing Overwrite behaviour to work as intended and adding something like OverwriteOwn to reflect the way Overwrite currently works.
/ZR
Cool, glad we agree.

thunk
thunk is offline  
Old 08-18-2007, 08:21 AM   #62
tuff
Senior Member
FlashFXP Registered User
ioFTPD Scripter
 
Join Date: Jan 2003
Posts: 277
Default

[FTP_Pre-Command_Events]
stor = TCL c:\im\silly\i\want\to\overwrite.tcl

overwrite.tcl

proc silly_overwrite {} {
global args path ioerror
set filename [lindex $args 1]
if {[string match -nocase "foo.nfo" $filename]} {
if {[file exists "$path\\$filename"]} {
catch {file delete -force -- "$path\\$filename"} error
}
}
}
silly_overwrite

hey presto!
__________________
#iotools #ioftpd (both on efnet)
tuff is offline  
Old 08-20-2007, 10:39 AM   #63
hukker
Senior Member
FlashFXP Registered User
ioFTPD Foundation User
 
Join Date: Jun 2004
Posts: 165
Default

hey boys n girls

Code:
(17:31:47) [1] site change user ratio 0
(17:31:47) [1] 200-user: User is not in your admin groups.
(17:31:47) [1] 200 change Command successful.
One of mine siteops keep getting this answere when he trys changing users flags permissions etc...


Here is the last line in his user file which I bealive is causing this... reseting the line to "admingroups " fixes the problem, but it seems to reapear.

Code:
admingroups 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
He has flag 1, other then that I dont think he should need anything else...
Could it be releated to the group of which this user is part of?

any idees?
hukker is offline  
Old 08-20-2007, 11:52 AM   #64
o_dog
Senior Member
 
Join Date: May 2007
Posts: 692
Default

the change command in itcl seems to be broken or has it been completely removed?
if it's removed any chance of getting it back?
o_dog is offline  
Old 08-21-2007, 12:51 AM   #65
Yil
Too much time...
FlashFXP Beta Tester
ioFTPD Administrator
 
Join Date: May 2005
Posts: 1,194
Default

hukker: Simply being in a group doesn't offer you any rights to the group. To access group commands you need one of the 1GM flags

site change [user] flags +G

However, if you have just the G (i.e. no 1 or M flag) you have no rights to specific groups including the one you are in! These must be explicitly granted via:

site change [user] admingroup [group]

This is because you can be a member of many groups but perhaps you should only be able to admin a subset of them. Users with the 1 or M flag can create users without explicitly granted admingroup privileges however users are not created in their default group but rather into the NoGroup group. Thus the master ioFTPD account can run around creating users, but you'll notice they all end up in the NoGroup group...

BTW, the line you posted:

admingroups 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

is clearly wrong. It should just be a list of groups you can admin. So

admingroups 0

would imply you can admin the "ioftpd" group used for files that aren't explicitly in any other group (that's actually controlled by the default_ setttings in ioftpd.ini).

If you can confirm that no external scripts are setting the admingroups line via editing the userfile then the TCL or site command must be goofing up somehow... Try to reproduce it.
Yil is offline  
Old 08-21-2007, 12:57 AM   #66
Yil
Too much time...
FlashFXP Beta Tester
ioFTPD Administrator
 
Join Date: May 2005
Posts: 1,194
Default

o_dog: so far as I know the change command in itcl is working fine. Give an example that isn't working and perhaps one of the talented scripters can spot the problem. Of course it's possible I screwed up

Except for the new crc command the doc/itcl.txt file I put together should be pretty accurate.
Yil is offline  
Old 08-21-2007, 02:19 AM   #67
hukker
Senior Member
FlashFXP Registered User
ioFTPD Foundation User
 
Join Date: Jun 2004
Posts: 165
Default

I totally understand what you are saying Yil. Thing is the user does only have a flag 1 in his permissions so I doubt anything can stop him from changing a users ratio on site, unless its the master account he is trying to change it for :P

My ioftpd.ini permissions are almost the standard ones, other then that Ive added a few nuke/wipe flags of my own...

Ive been copying the db around from site to site, also copying the cache folder... could this have anything to do with it?

Ill try reproducing the problem, with any luck will get to the end of this.
hukker is offline  
Old 08-21-2007, 05:16 AM   #68
o_dog
Senior Member
 
Join Date: May 2007
Posts: 692
Default

yeah, maybe one of the talented scripters could. thing is that it doesn't work at all and doesn't return an error, just an empy line.

Last edited by o_dog; 08-21-2007 at 06:42 AM.
o_dog is offline  
Old 08-21-2007, 05:44 AM   #69
hukker
Senior Member
FlashFXP Registered User
ioFTPD Foundation User
 
Join Date: Jun 2004
Posts: 165
Default

yil: seems like nxtools was the reason (v. 1.05a) not 100% sure but very possible. I tested nxtools 1.06 and the problem does not appear in the new version so.

What happend was when reseting stats, site resetstats allup / alldn / all dn whatever, it reseted the wrong line inside the userfiles, the admingroup line. Which basiclly gave you gadmin rights of group 0 50 times over

anyways using 1.06 should fix it
hukker is offline  
Old 08-23-2007, 01:39 AM   #70
rolan
Member
 
Join Date: Jul 2006
Posts: 72
Default

Whats those crash info?

Unhandled exception 3221225477 at address 0x769c1033 (0x00000000)
0x00000000 0x769c1033
Unhandled exception 3221225477 at address 0x769c1033 (0x00000000)
0x00000000 0x769c1033
Unhandled exception 3221225477 at address 0x769c1033 (0x00000000)
0x00000000 0x769c1033
Unhandled exception 3221225477 at address 0x769c1033 (0x00000000)
0x00000000 0x769c1033
Unhandled exception 3221225477 at address 0x00426a61 (0x00000000)
0x00000001 0x00000018
Unhandled exception 3221225477 at address 0x00426a61 (0x00000000)
0x00000001 0x00000018
Unhandled exception 3221225477 at address 0x00426a61 (0x00000000)
0x00000001 0x00000018
Unhandled exception 3221225477 at address 0x00426225 (0x00000000)
0x00000000 0x00e50014
Unhandled exception 3221225477 at address 0x00426225 (0x00000000)
0x00000000 0x00e20014
Unhandled exception 3221225477 at address 0x0042b16c (0x00000000)
0x00000000 0x00000005
Unhandled exception 3221225477 at address 0x00426a61 (0x00000000)
0x00000001 0x00000018
Unhandled exception 3221225477 at address 0x00426225 (0x00000000)
0x00000000 0x025c0014
rolan is offline  
Old 08-23-2007, 03:17 AM   #71
Yil
Too much time...
FlashFXP Beta Tester
ioFTPD Administrator
 
Join Date: May 2005
Posts: 1,194
Default

rolan: I'll need to know which version of ioFTPD you are using...

The 0x7 are probably windows library functions given bad args or the result of heap corruption... the 0x004 are actual crashes inside ioFTPD and I'll greedily look at those addresses so let me know which version!

Oh and let me know what scripts you are using as well.
Yil is offline  
Old 08-23-2007, 05:36 AM   #72
rolan
Member
 
Join Date: Jul 2006
Posts: 72
Default

ohhh, sorry, for your ioFTPD v6.2.1, o_dog's ioNINJA.ALPHA v1.0 and his io.dZSbot.v0.1.2.BETA, neoxed's nxTools-v1.0.6, three scripts is used.
rolan is offline  
Old 08-23-2007, 06:46 AM   #73
rolan
Member
 
Join Date: Jul 2006
Posts: 72
Default

hi, Yil, whats command can get logs info, always No results found.

(19:42:24) [2] SITE SYSLOG 2
(19:42:24) [2] 200-.-[SysopLog]-------------------------------------------------------------.
(19:42:24) [2] 200-| No results found. |
(19:42:24) [2] 200-'------------------------------------------------------------------------'

(19:43:14) [2] SITE CMDLOG 2
(19:43:14) [2] 500 SITE CMDLOG: Command not understood.
(19:43:23) [2] SITE ERRLOG 2
(19:43:23) [2] 200-.-[ErrorLog]-------------------------------------------------------------.
(19:43:23) [2] 200-| No results found. |
(19:43:23) [2] 200-'------------------------------------------------------------------------'
rolan is offline  
Old 08-23-2007, 01:29 PM   #74
hukker
Senior Member
FlashFXP Registered User
ioFTPD Foundation User
 
Join Date: Jun 2004
Posts: 165
Default

rolan: site syslog -max 6 *
will give you 6 of the newly added lines

the star "*" is used like a wildcard, so you can search for *added* only, or an ip or a username etc...
hukker is offline  
Old 08-23-2007, 05:26 PM   #75
Soxiz
Junior Member
FlashFXP Beta Tester
 
Join Date: Sep 2002
Posts: 9
Default

Hey Yil

I keep getting some errors if there is a race in a speciel section.

Unhandled exception 3221225477 at address 0x7c81bd02 (0x00000000)
0x00000000 0x55048cd8
Unhandled exception 3221225477 at address 0x7c81bd02 (0x00000000)
0x00000000 0x00000006


Am using Version [00:25:27] 200-ioFTPD version: 6-2-1r
with iosfv and ioa.

Thx for the great work, hope you have a solution, just ask if you need more info of any kind.

Best Regards
Mads
Soxiz is offline  
Closed Thread

Tags
ioftpd, links, relative, resolving, symbolic

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 10:21 AM.

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