View previous topic :: View next topic |
Author |
Message |
sobers_2002 Veteran
Joined: 16 Mar 2004 Posts: 1128
|
Posted: Sun Mar 21, 2004 5:57 pm Post subject: proftpd |
|
|
hi all
i emerged proftpd recently. Right now i can;t seem to find a way to make it start on its own, please help!!!!
also i am thinking of securing my box with some good firewall(i have heard of shorewall)
so please guide me. _________________ Pdict - dockable dictionary client for linux
FREE97WIN: Use this code on Dreamhost and you get $97 off !! |
|
Back to top |
|
|
foton2 Guru
Joined: 23 Feb 2004 Posts: 347 Location: Prague, Czech Republick
|
Posted: Sun Mar 21, 2004 6:48 pm Post subject: |
|
|
Firewall .....iptables
proftpd rc-update add proftpd default to run proftpd at boot
/etc/init.d/proftpd start to run proftpd now. |
|
Back to top |
|
|
sobers_2002 Veteran
Joined: 16 Mar 2004 Posts: 1128
|
Posted: Sun Mar 21, 2004 7:30 pm Post subject: |
|
|
foton2 wrote: |
proftpd rc-update add proftpd default to run proftpd at boot
|
didnt quite understand this line.......please explain
plus how do i remove it afterwards???? _________________ Pdict - dockable dictionary client for linux
FREE97WIN: Use this code on Dreamhost and you get $97 off !! |
|
Back to top |
|
|
hermes_jr l33t
Joined: 26 Feb 2004 Posts: 701 Location: Moscow, Russia
|
Posted: Sun Mar 21, 2004 7:38 pm Post subject: |
|
|
Code: |
# rc-update add proftpd default
|
after that proftpd daemon will start on every system startup
to undo it:
Code: |
# rc-update del proftpd
|
|
|
Back to top |
|
|
sobers_2002 Veteran
Joined: 16 Mar 2004 Posts: 1128
|
Posted: Sun Mar 21, 2004 8:39 pm Post subject: |
|
|
while starting it gives an error
Quote: |
Unable to determine the ip address of -'dennis'
|
here dennis is the name of my machine _________________ Pdict - dockable dictionary client for linux
FREE97WIN: Use this code on Dreamhost and you get $97 off !! |
|
Back to top |
|
|
foton2 Guru
Joined: 23 Feb 2004 Posts: 347 Location: Prague, Czech Republick
|
Posted: Sun Mar 21, 2004 8:47 pm Post subject: |
|
|
And what about your /etc/hosts ?
Is there
127.0.0.1 localhost dennis |
|
Back to top |
|
|
cornman n00b
Joined: 21 Jan 2004 Posts: 3
|
Posted: Sun Mar 21, 2004 11:34 pm Post subject: using xinetd -- that's how it's usually done |
|
|
edit /etc/xinetd.conf so that not just localhost can have access.
edit /etc/xinetd.d/proftpd so that it is no longer disabled.
edit /etc/proftpd/proftpd.conf so that it runs in inetd mode, rather than standalone.
run 'rc-update add xinetd default'.
run '/etc/init.d/xinetd start'. |
|
Back to top |
|
|
sobers_2002 Veteran
Joined: 16 Mar 2004 Posts: 1128
|
Posted: Mon Mar 22, 2004 3:30 am Post subject: |
|
|
i dont have a xinetd.conf in /etc
plus i get the foll prob
Quote: |
/etc/init.d/proftpd stop
* Stopping proftpd... [ !! ]
|
and then on trying 2 start it now.
Quote: |
/etc/init.d/proftpd start
* WARNING: "proftpd" has already been started.
|
_________________ Pdict - dockable dictionary client for linux
FREE97WIN: Use this code on Dreamhost and you get $97 off !! |
|
Back to top |
|
|
Nossie Apprentice
Joined: 19 Apr 2002 Posts: 181
|
Posted: Mon Mar 22, 2004 2:18 pm Post subject: |
|
|
Hi,
If you get this :
Code: | /etc/init.d/proftpd start
* WARNING: "proftpd" has already been started. |
and you are sure that proftpd is not runnijng, you can do
Code: | /etc/init.d/proftpd zap |
This will set proftpd to an unstarted state.
Nevermind the xinetd stuff, because you are running proftpd as a standalone sever (start and stop wit init scripts).
If you want a firewall, make sure iptables is compiled into the kernel, and have a look at teh monmotha firewall script. It's easy to setup.
gr,
Nossie |
|
Back to top |
|
|
sobers_2002 Veteran
Joined: 16 Mar 2004 Posts: 1128
|
Posted: Mon Mar 22, 2004 8:47 pm Post subject: |
|
|
Quote: |
/etc/init.d/proftpd start
* Starting proftpd...
localhost - fatal: Socket operation on non-socket
localhost - (Running from command line? Use `ServerType standalone' in config file!) |
this is after trying zap and all above suggestions like putting in dennis in /etc/hosts
/etc/hosts
Quote: |
127.0.0.1 localhost dennis
10.8.2.70 dennis.iitb.ac.in dennis
|
_________________ Pdict - dockable dictionary client for linux
FREE97WIN: Use this code on Dreamhost and you get $97 off !! |
|
Back to top |
|
|
cornman n00b
Joined: 21 Jan 2004 Posts: 3
|
Posted: Sun Mar 28, 2004 8:31 pm Post subject: xinetd |
|
|
sorry, you have to emerge xinetd if you want to use xinetd... forgot to tell you.
The advantage of xinetd is that you only have to have one net daemon running in the background... xinetd. Otherwise you would have proftpd, telnetd, sshd, whateverd running in the background all at once. Xinetd works by listening to all ports, and when a client tries to connect, it starts up the appropriate daemon. This could cause a little latency on critical servers 'cause a new instance of the daemon needs to be started for each individual connection, but at home its great... it frees a few resources and is better organized (imho) than having a bunch of daemons start when you boot. |
|
Back to top |
|
|
Xenzeo n00b
Joined: 27 Feb 2004 Posts: 49
|
Posted: Wed Mar 31, 2004 7:58 pm Post subject: |
|
|
Could the problem be fixed with
Bind <ip-addy>
in the proftpd config file?
Insted of xinetd use it as standalone |
|
Back to top |
|
|
kimachi.com n00b
Joined: 11 Apr 2004 Posts: 11 Location: Byron Bay & Gold Coast Australia
|
Posted: Sun Apr 18, 2004 12:37 pm Post subject: my PROFTPD no better |
|
|
I'm getting:
Quote: | proftpd # /etc/init.d/proftpd start
* Starting proftpd...
- no such group 'proftpd'
- Fatal: Group: Unknown group 'proftpd'. |
AND
Quote: | proftpd # /etc/init.d/proftpd stop
* ERROR: "proftpd" has not yet been started. |
What is my issue? _________________ I vote Green! How about you? |
|
Back to top |
|
|
sobers_2002 Veteran
Joined: 16 Mar 2004 Posts: 1128
|
Posted: Sun Apr 18, 2004 1:03 pm Post subject: |
|
|
when proftpd is installed a grp with name "proftpd" and a user with same name are created and so is a directory with name "/home/ftp".....with the above users and grp. creating them should do the job 4 u
luck!!
Saurabh |
|
Back to top |
|
|
|