LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-29-2002, 07:03 PM   #1
bripage
Member
 
Registered: Jan 2002
Location: Moorpark
Distribution: SLACK 8!
Posts: 230

Rep: Reputation: 30
PFTPD startup on boot


Im trying to include PFTPD in rc.inet1 so that I dont have to initiate the daemon. How do I do this?

Last edited by bripage; 03-30-2002 at 05:28 PM.
 
Old 03-30-2002, 05:28 PM   #2
bripage
Member
 
Registered: Jan 2002
Location: Moorpark
Distribution: SLACK 8!
Posts: 230

Original Poster
Rep: Reputation: 30
Does anyone know how to do this?
 
Old 03-30-2002, 11:53 PM   #3
hanzerik
Member
 
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717

Rep: Reputation: 32
You dont have to do this. We've told you how to get it to start on boot in your other thread.

in /etc/inetd.conf make sure this is set:

# ProFTPD FTP Daemon:
ftp stream tcp nowait root /usr/sbin/tcpd proftpd


in /etc/proftpd.conf make sure this is set:

#ServerType standalone
ServerType inetd
DefaultServer on

# Port 21 is the standard FTP port.
Port 21

You dont need to run it as a daemon, inetd will start it when it receives a call on port 21, and close it when the user is done. As long as the user has a valid UNIX account, done with adduser, then when the user logs in they will go straight to their /home/<username> directory.

Dont try to connect as root

You shouldnt need to modify any other files to get it to run.
 
Old 04-01-2002, 12:55 PM   #4
bripage
Member
 
Registered: Jan 2002
Location: Moorpark
Distribution: SLACK 8!
Posts: 230

Original Poster
Rep: Reputation: 30
Ok... although you tell me that it should startup by itself... id doesnt, and inetd doesnt seem to be starting it. I need to find a way to make sure that this is getting started on boot becuase i dont want to have to run it manually everytime.
 
Old 04-02-2002, 07:11 AM   #5
hanzerik
Member
 
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717

Rep: Reputation: 32
in your other post you said you had to start it manually, after a reboot and it worked.

Try putting the command you use to start it in /etc/rc.d/rc.local
ie: if you use /usr/sbin/proftpd -n then put that line in rc.local.

so your rc.local file would look like this:

# Start /etc/rc.d/rc.local
/usr/sbin/proftpd -n
# End /etc/rc.d/rc.local

rc.local is the last thing to be run before the login prompt is displayed.
 
Old 04-02-2002, 09:37 AM   #6
bripage
Member
 
Registered: Jan 2002
Location: Moorpark
Distribution: SLACK 8!
Posts: 230

Original Poster
Rep: Reputation: 30
Thank you... But I put it into the rc.inet2 file by and it load just fine. Thanks again man.
 
Old 04-02-2002, 09:39 AM   #7
hanzerik
Member
 
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717

Rep: Reputation: 32
No prob, glad you got it working.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
startup script at boot tigerflag Debian 8 03-31-2005 08:52 AM
boot on startup j.vilon Debian 3 09-11-2004 01:11 AM
How to add a boot record which used to startup windows under my Grub boot loader? yunxiang Linux - Newbie 6 02-01-2003 02:22 AM
Users cant upload on PFTPD bripage Linux - Networking 9 04-09-2002 04:33 PM
rc.inet1 to start PFTPD on sys boot bripage Linux - Networking 0 04-01-2002 03:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration