Old 02-03-2004, 03:26 AM   #16
toki
Senior Member
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 221
Default

possible to add a config to choose which flag is the disable flag? i do not use X flag atm for other things but maybe dynamic seeting in a cfg file would be useful.
toki is offline   Reply With Quote
Old 02-03-2004, 04:08 AM   #17
toki
Senior Member
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 221
Default

but user can then change flags of any other user... i think that is not a good solution... @ mouton
toki is offline   Reply With Quote
Old 02-03-2004, 07:37 AM   #18
toki
Senior Member
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 221
Default

Quote:
220 ready
USER xxxxx
USER command failed, user [xxxxx] doesn't exist
331 Password required for xxxxx.
PASS (hidden)
230-Welcome to ioFTPD server (registered version 5.6.3r)
.
.
.
and so on... so login works here with smartftp but i get user doesnt exist?

disabled ionED and message was gone.

suggestions?
toki is offline   Reply With Quote
Old 02-03-2004, 08:30 AM   #19
mr_F_2
Senior Member
 
Join Date: Jan 2004
Posts: 203
Default

cunhell, this is the sourecode for that section:

Code:
	if (flags==NULL)
	{
		printf("%s command failed, user [%s] doesn't exist\n",argv[1],user);
		return 0;
	}
so i assume your user has absolutely no flags? that's kind of odd

also you can change the flag in the source code (source is available at my website).
I could throw in an ini reading routine, but that would be such a waste of milliseconds for reading only 1 key
mr_F_2 is offline   Reply With Quote
Old 02-03-2004, 08:33 AM   #20
toki
Senior Member
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 221
Default

u got 100 points...
toki is offline   Reply With Quote
Old 02-03-2004, 08:39 AM   #21
mr_F_2
Senior Member
 
Join Date: Jan 2004
Posts: 203
Default

Quote:
Originally posted by cunhell
u got 100 points...
lol
why would you give a user no flags? the poor *******, give him something

if you think this is problem tho i'll change it.
let me know

also read above ^^ about changing the flag

peace
mr_F_2 is offline   Reply With Quote
Old 02-03-2004, 08:43 AM   #22
toki
Senior Member
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 221
Default

hmm... maybe for any possible flag conf it might be fixed in rls... and hex edit ) lets see *g* maybe i will compile source on my own
toki is offline   Reply With Quote
Old 02-03-2004, 08:50 AM   #23
toki
Senior Member
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 221
Default

compiling works... what if i delete that comparison? any need for this "no flag" check?
toki is offline   Reply With Quote
Old 02-03-2004, 05:45 PM   #24
mr_F_2
Senior Member
 
Join Date: Jan 2004
Posts: 203
Default

*sigh*

i changed it, for you. i dont know why your users don't have flags tho, that scares me like a scarecrow scares corn

added code to getflags function:

Code:
	if (usrfile[0]==0)
	{
		printf("command failed, user [%s] doesn't exist\n",ofuser);
		exit(0);
	}
so if no userfile is found that warrents a user not existing. no flags now just means no flags.

source : http://nrscripts.staghosting.com/src/io/ionED.c
binary : http://nrscripts.staghosting.com/dl/io/ionED.zip
mr_F_2 is offline   Reply With Quote
Old 02-04-2004, 05:55 AM   #25
typhon|wk
Member
 
Join Date: Nov 2003
Posts: 55
Default

work fine

but when 1 disabled user try to login my cpu work at 100%, and continue to work so for about 15 secs for each re-try from flashfxp

so if disabled user hammer the ftp the pc can crash.

if it is possible add a customizable choice for flag to disable users

fix it and ur script 'll be wonderfull

thx

typhon|wk is offline   Reply With Quote
Old 02-04-2004, 06:15 AM   #26
Xn3t
Member
 
Join Date: Dec 2003
Posts: 50
Default

works fine m8

good job!
Xn3t is offline   Reply With Quote
Old 02-04-2004, 10:53 AM   #27
mr_F_2
Senior Member
 
Join Date: Jan 2004
Posts: 203
Default

Quote:
Originally posted by typhon|wk
work fine

but when 1 disabled user try to login my cpu work at 100%, and continue to work so for about 15 secs for each re-try from flashfxp

so if disabled user hammer the ftp the pc can crash.

if it is possible add a customizable choice for flag to disable users

fix it and ur script 'll be wonderfull

thx

CPU always jumps when a user logs in no matter what. I don't have the problem about it going to 100% ... I'll run vtune on it and make it faster, but really, there's not much to optimize here, it's really simple code.

I'm not adding an ini reader (for customized flag) as it would slow down the application runtime and it's totally not worth it for reading just 1 key

it's not hard to edit the source code and compile it, so if you want a different flag you'll have to do it yourself.
mr_F_2 is offline   Reply With Quote
Old 02-04-2004, 11:32 AM   #28
toki
Senior Member
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 221
Default

jepp compilining with new flag is easy. affirmative
toki is offline   Reply With Quote
Reply

Tags
command, disable, enable, site, users

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 05:27 AM.

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