Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pure-ftpd (ftp server)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
BeyondFate
n00b
n00b


Joined: 29 Mar 2003
Posts: 53

PostPosted: Tue Apr 08, 2003 7:19 pm    Post subject: pure-ftpd (ftp server) Reply with quote

Hi everyone,

I needed to set up an ftp server real fast, so i grabbed pure-ftpd. awesome ftp server from what i had read and litterally took 5 minutes to set up. however, and i feel silly having this problem, i am now unable to take it down. i ran it from the console
#pure-ftpd -e -i -H -C 1 -S 192.168.1.102, &
and it fired up. i used it as needed. rebooted the machine for another reason, but figured that pure-ftpd would no longer be running. wrong. it still is. how do i stop it?

I have read all the docs i can find, the man pages, the pureftpd.org website, i know more about this ftpserver then i ever needed to, but no where does it explain the easy bits, such as stopping it.

thanks for your help,
BF
Back to top
View user's profile Send private message
Mpemba Effect
Apprentice
Apprentice


Joined: 18 Sep 2002
Posts: 156

PostPosted: Tue Apr 08, 2003 7:51 pm    Post subject: Reply with quote

Did you add it to your default runlevel at all or xinetd? Because it really shouldn't startup otherwise.
Back to top
View user's profile Send private message
BeyondFate
n00b
n00b


Joined: 29 Mar 2003
Posts: 53

PostPosted: Tue Apr 08, 2003 8:15 pm    Post subject: Reply with quote

no i didn't, that is why i am so confused. i just ran it as a stand alone server, from the console. when i typed that command, it said pure-ftpd start or something, and brought me back to the command prompt.

I checked /etc/xinetd and bingo! there it was. Can you explain a bit about this folder? i assume everything in here starts up when linux boots then. telnet is also in here, i wonder why..

i will remove it from here, thanks a lot for the help!
Back to top
View user's profile Send private message
Mpemba Effect
Apprentice
Apprentice


Joined: 18 Sep 2002
Posts: 156

PostPosted: Tue Apr 08, 2003 8:26 pm    Post subject: Reply with quote

xinetd is the super server and can be used to startup services .. just like telnet and your ftp server for instance, swat is another example. I have mine disabled since I prefer to start them up in standalone modes with init scripts. You can disable it by the usual
Code:
rc-update del xinetd default

The pureftpd xinetd file was proberbly installed in there during emerge. But the odd thing is the all the files should be disabled as default and to enable them you normally have to manually edit the file.
Code:
# default: off
# description: Pure-FTPd service example config.

service ftp
{
    socket_type = stream
    server = /usr/sbin/pure-ftpd
    server_args = -s -a 42
    protocol = tcp
    user = root
    wait = no
    disable = yes
}

See heres the file you should have and the line disable = yes should have prevented it from be loaded at boot. Very bizarre matey.
Back to top
View user's profile Send private message
BeyondFate
n00b
n00b


Joined: 29 Mar 2003
Posts: 53

PostPosted: Wed Apr 09, 2003 4:37 am    Post subject: Reply with quote

I ran: rc-update del xinetd default
Since i do not need/want the 2 things in there to start up.
Reboot. Strangely, pure-ftpd STILL starts on boot!!???

Any other idea? Thanks for all the help!
BF
Back to top
View user's profile Send private message
bsolar
Bodhisattva
Bodhisattva


Joined: 12 Jan 2003
Posts: 2764

PostPosted: Wed Apr 09, 2003 5:49 am    Post subject: Reply with quote

BeyondFate wrote:
I ran: rc-update del xinetd default
Since i do not need/want the 2 things in there to start up.
Reboot. Strangely, pure-ftpd STILL starts on boot!!???

Any other idea? Thanks for all the help!
BF

Check that you don't have the pure-ftpd init script in the default runlevel.
_________________
I may not agree with what you say, but I'll defend to the death your right to say it.
Back to top
View user's profile Send private message
BeyondFate
n00b
n00b


Joined: 29 Mar 2003
Posts: 53

PostPosted: Wed Apr 09, 2003 6:18 am    Post subject: Reply with quote

I do have it in there. you solved it and i learned a few things. am I understanding this right:

/etc/init.d/ holds things which are run/loaded on Boot. When those are run/loaded, they look to /etc/conf.d/ for their configuration file so they know how to load, which what parms, etc.

Is that correct?

Slowly i am getting the hang of this...

Thanks bsolar!
Back to top
View user's profile Send private message
bsolar
Bodhisattva
Bodhisattva


Joined: 12 Jan 2003
Posts: 2764

PostPosted: Wed Apr 09, 2003 6:26 am    Post subject: Reply with quote

BeyondFate wrote:
I do have it in there. you solved it and i learned a few things. am I understanding this right:

/etc/init.d/ holds things which are run/loaded on Boot. When those are run/loaded, they look to /etc/conf.d/ for their configuration file so they know how to load, which what parms, etc.

Is that correct?

Slowly i am getting the hang of this...

Thanks bsolar!

In /etc/init.d there are the scripts that are available to be excuted. If they are started or not depends on if you did 'rc-update add script runlevel'. You might want to take a look in /etc/runlevels and subdirs to see what is executed at different runlevels.
_________________
I may not agree with what you say, but I'll defend to the death your right to say it.
Back to top
View user's profile Send private message
BeyondFate
n00b
n00b


Joined: 29 Mar 2003
Posts: 53

PostPosted: Wed Apr 09, 2003 7:39 am    Post subject: Reply with quote

ok, init.d does contain a script for pure-ftpd.
conf.d also contains a script (or at least information of sorts) for pure-ftpd.

when i looked at the conf.d file, part of it says this:
# Config file for /etc/init.d/pure-ftpd
##Comment variables out to disable its features, or change the values in it... ##

## This variable must be uncommented in order for the server to start ##
#IS_CONFIGURED="yes"

## FTP Server,Port (separated by comma) ##
## If you prefer host names over IP addresses, it's your choice :
## SERVER="-S ftp.rtchat.com,21"
## IPv6 addresses are supported.
SERVER="-S 192.168.1.102,21"

## Number of simultaneous connections in total, and per ip ##
MAX_CONN="-c 10"
MAX_CONN_IP="-C 2"

## Start daemonized in background ##
#DAEMON="-B"

I commented out both the IS_CONFIGURED line and the DAEMON=-B line in hopes that 1) it wouldn't start and 2) it wouldn't start, or at least not in the background on its own.

there is NOTHING in any of the /etc/runlevel folders about it. I did an rc-update del pure-ftpd and it said that it was not found in any run levels.

I reboot the PC. pure-ftpd is running!!

any idea how I can make is stop running?

Thank you!
BF

UPDATE: i found it listed in local.start i commented it out, i am convinced that was it. cant reboot now, but will to test it out. hope it stops!
cheers all.
Back to top
View user's profile Send private message
bsolar
Bodhisattva
Bodhisattva


Joined: 12 Jan 2003
Posts: 2764

PostPosted: Wed Apr 09, 2003 7:49 am    Post subject: Reply with quote

You can stop it killing it but the real question is why it starts?

Since it's not in the default runlevel you might try to check /etc/conf.d/local.start (but it should be empty unless you modified it).
_________________
I may not agree with what you say, but I'll defend to the death your right to say it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum