PDA

View Full Version : [Fixed] permissions of "site = ..." in PRE


toki
01-01-2004, 01:42 PM
we just discussed on irc:

in [FTP_Pre-Command_Events] used "SITE = ..." commands are not checked by ioftpd for permission flags. so recognized on addicts sitewho override and iogroups--> site users override.

adding a specific line for that override the command can be executed by any user even if flag setting ist set to lets say 1MG or so.

dunno if permissions have to be checked in the script or if its a bug of ioftpd.

greez toki

Mouton
01-01-2004, 01:46 PM
script needs to check permissions.
io can only check permissions of the SITE command, which u can restrict (bad idea) in the [FTP_Command_Permissions].

Adding XXX in [FTP_SITE_Permissions] to restrict SITE XXX command works for the actual command, not Pre or Post events.

Note: Post events using SITE = ... are ok, since [FTP_SITE_Permissions] defines the permission for the actual command, and the Post event won't be called if the command didn't execute!