LinuxQuestions.org
Help answer threads with 0 replies.
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 07-13-2003, 12:32 AM   #1
Henry
Member
 
Registered: Dec 2002
Location: USA
Distribution: Slackware9.0, some SuSe8.0
Posts: 179

Rep: Reputation: 30
FTP restart the whole thing


Hi, Do anyone know how to restart everything for ftp server? i had my proftpd working before, but wi decided to try out other ftp, so i went to pure-ftpd, but the inetd always startup @ boot time so i killed it inorder for pure-ftpd to work, then i didn't like so i want to go back to the proftpd, but now it won't work, if i killed the inetd, it says "ftp: connect: Connection refused", if i didn't kill it, it says

"Connected to 192.168.1.16.
500 FTP server shut down (going down at Tue Jul 8 16:39:46 2003) -- please try again later"

so i have no idea how to get it back working, can anyone tell me how to refresh everything to new again?

Thanks in Advance
 
Old 07-13-2003, 01:10 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Take a look at this article I wrote for www.linuxanswers.com :
http://www.linuxquestions.org/questi...ticle&artid=17

It looks like you have a problem with your config file, but because you have been killing inetd and starting other FTP servers I really can't tell. If you can:
post up your inetd.conf file;
post up your proftpd.conf file
And tell us a bit about your setup (which distro?) along with the output of:
ps aux
That'd be great.

Cool
 
Old 07-13-2003, 02:02 AM   #3
Henry
Member
 
Registered: Dec 2002
Location: USA
Distribution: Slackware9.0, some SuSe8.0
Posts: 179

Original Poster
Rep: Reputation: 30
my settings of Slackware 9.0

i don't think my proftpd.conf really matter, but here's the front of it:

ServerName "PunkShark"
ServerType standalone
#ServerType inetd
DefaultServer on

# Port 21 is the standard FTP port.
Port 21

then heres my inetd.conf:

# <service_name> <sock_type> <proto> <flags> <user> <server_path> <args>
#
# The first 4 services are really only used for debugging purposes, so
# we comment them out since they can otherwise be used for some nasty
# denial-of-service attacks. If you need them, uncomment them.
# echo stream tcp nowait root internal
# echo dgram udp wait root internal
# discard stream tcp nowait root internal
# discard dgram udp wait root internal
# daytime stream tcp nowait root internal
# daytime dgram udp wait root internal
# chargen stream tcp nowait root internal
# chargen dgram udp wait root internal
time stream tcp nowait root internal
time dgram udp wait root internal
#
# These are standard services:
#
# File Transfer Protocol (FTP) server:
#ftp stream tcp nowait root /usr/sbin/in.ftpd in.ftpd
#ftp stream tcp nowait root /usr/local/sbin/proftpd proftpd
ftp stream tcp nowait root /usr/sbin/tcpd /usr/local/sbin/proftpd
#
# Telnet server:
#telnet stream tcp nowait root /usr/sbin/tcpd in.telnetd
#
# The comsat daemon notifies the user of new mail when biff is set to y:
comsat dgram udp wait root /usr/sbin/tcpd in.comsat
#
# Shell, login, exec and talk are BSD protocols
#
#shell stream tcp nowait root /usr/sbin/tcpd in.rshd -L
#login stream tcp nowait root /usr/sbin/tcpd in.rlogind
# exec stream tcp nowait root /usr/sbin/tcpd in.rexecd
# talk dgram udp wait root /usr/sbin/tcpd in.talkd
ntalk dgram udp wait root /usr/sbin/tcpd in.talkd
#
# To use the talk daemons from KDE, comment the talk and ntalk lines above
# and uncomment the ones below:
# talk dgram udp wait root /usr/sbin/tcpd /opt/kde/bin/kotalkd
# ntalk dgram udp wait root /usr/sbin/tcpd /opt/kde/bin/ktalkd
#
# Kerberos authenticated services
#
# klogin stream tcp nowait root /usr/sbin/tcpd rlogind -k
# eklogin stream tcp nowait root /usr/sbin/tcpd rlogind -k -x
# kshell stream tcp nowait root /usr/sbin/tcpd rshd -k
#
# Services run ONLY on the Kerberos server
#
# krbupdate stream tcp nowait root /usr/sbin/tcpd registerd
# kpasswd stream tcp nowait root /usr/sbin/tcpd kpasswdd
#
# POP and IMAP mail servers
#
# Post Office Protocol version 3 (POP3) server:
#pop3 stream tcp nowait root /usr/sbin/tcpd /usr/sbin/popa3d
# Internet Message Access Protocol (IMAP) server:
#imap2 stream tcp nowait root /usr/sbin/tcpd imapd
#
# The Internet Unix to Unix copy (UUCP) service:
# uucp stream tcp nowait uucp /usr/sbin/tcpd /usr/lib/uucp/uucico -l
#
# Tftp service is provided primarily for booting. Most sites
# run this only on machines acting as "boot servers."
# tftp dgram udp wait nobody /usr/sbin/tcpd in.tftpd
# bootps dgram udp wait root /usr/sbin/bootpd bootpd
#
# Finger, systat and netstat give out user information which may be
# valuable to potential "system crackers." Many sites choose to disable
# some or all of these services to improve security.
# Try "telnet localhost systat" and "telnet localhost netstat" to see that
# information yourself!
finger stream tcp nowait nobody /usr/sbin/tcpd in.fingerd -u
# systat stream tcp nowait nobody /usr/sbin/tcpd /bin/ps -auwwx
# netstat stream tcp nowait root /usr/sbin/tcpd /bin/netstat -a
#
# Ident service is used for net authentication
# Since we start identd as nobody, it can't write a .pid file in /var/run, so tell it
# to use /dev/null. This is of little importance unless you run identd as a
# standalone daemon anyway.
auth stream tcp wait nobody /usr/sbin/in.identd in.identd -P/dev/null
#
# These are to start Samba, an smb server that can export filesystems to
# Pathworks, Lanmanager for DOS, Windows for Workgroups, Windows95, Lanmanager
# for Windows, Lanmanager for OS/2, Windows NT, etc.
# If you're running smbd and nmbd as daemons in /etc/rc.d/rc.samba, then you
# shouldn't uncomment these lines.
#netbios-ssn stream tcp nowait root /usr/sbin/smbd smbd
#netbios-ns dgram udp wait root /usr/sbin/nmbd nmbd
#
#Samba Web Administration Tool:
#swat stream tcp nowait.400 root /usr/sbin/swat swat
#
# Sun-RPC based services.
# <service name/version><sock_type><rpc/prot><flags><user><server><args>
# rstatd/1-3 dgram rpc/udp wait root /usr/sbin/tcpd rpc.rstatd
# rusersd/2-3 dgram rpc/udp wait root /usr/sbin/tcpd rpc.rusersd
# walld/1 dgram rpc/udp wait root /usr/sbin/tcpd rpc.rwalld
#
# End of inetd.conf.


and now theres the output of my ps aux:

root@punkshark:/home/punkshark# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 7.1 0.0 480 228 ? S 00:00 0:04 init
root 2 0.0 0.0 0 0 ? SW 00:00 0:00 [keventd]
root 3 0.0 0.0 0 0 ? SW 00:00 0:00 [kapmd]
root 4 0.0 0.0 0 0 ? SWN 00:00 0:00 [ksoftirqd_CPU0]
root 5 0.0 0.0 0 0 ? SW 00:00 0:00 [kswapd]
root 6 0.0 0.0 0 0 ? SW 00:00 0:00 [bdflush]
root 7 0.0 0.0 0 0 ? SW 00:00 0:00 [kupdated]
root 11 0.0 0.0 0 0 ? SW 00:00 0:00 [khubd]
root 17 0.0 0.0 0 0 ? SW< 00:00 0:00 [mdrecoveryd]
root 18 0.0 0.0 0 0 ? SW 00:00 0:00 [kjournald]
rpc 103 0.0 0.1 1508 576 ? S 00:00 0:00 /sbin/rpc.portmap
root 109 0.0 0.1 1424 616 ? S 00:00 0:00 /usr/sbin/syslogd
root 112 0.0 0.0 1360 460 ? S 00:00 0:00 /usr/sbin/klogd -
root 114 0.0 0.1 1396 528 ? S 00:00 0:00 /usr/sbin/inetd
root 117 0.2 0.2 3044 1384 ? S 00:00 0:00 /usr/sbin/sshd
root 126 0.0 0.1 1540 640 ? S 00:00 0:00 /usr/sbin/rpc.rqu
root 128 0.0 0.0 0 0 ? SW 00:00 0:00 [nfsd]
root 129 0.0 0.0 0 0 ? SW 00:00 0:00 [lockd]
root 130 0.0 0.0 0 0 ? SW 00:00 0:00 [rpciod]
root 131 0.0 0.0 0 0 ? SW 00:00 0:00 [nfsd]
root 132 0.0 0.0 0 0 ? SW 00:00 0:00 [nfsd]
root 133 0.0 0.0 0 0 ? SW 00:00 0:00 [nfsd]
root 134 0.0 0.0 0 0 ? SW 00:00 0:00 [nfsd]
root 135 0.0 0.0 0 0 ? SW 00:00 0:00 [nfsd]
root 136 0.0 0.0 0 0 ? SW 00:00 0:00 [nfsd]
root 137 0.0 0.0 0 0 ? SW 00:00 0:00 [nfsd]
root 139 0.0 0.0 1492 508 ? S 00:00 0:00 /usr/sbin/rpc.mou
root 142 0.0 0.1 1512 704 ? S 00:00 0:00 /usr/sbin/rpc.sta
lp 148 0.0 0.2 3348 1244 ? S 00:00 0:00 lpd Waiting
root 153 0.0 0.1 1480 552 ? S 00:00 0:00 /usr/sbin/crond -
daemon 156 0.0 0.1 1488 652 ? S 00:00 0:00 /usr/sbin/atd -b
root 159 0.0 0.2 3288 1448 ? S 00:00 0:00 sendmail: accepti
smmsp 162 0.0 0.2 3284 1428 ? S 00:00 0:00 sendmail: Queue r
root 166 0.0 0.1 1356 524 ? S 00:00 0:00 /usr/sbin/apmd
root 169 0.0 0.3 3120 1612 ? S 00:00 0:00 /usr/sbin/httpd
root 171 0.0 0.3 5052 1840 ? S 00:00 0:00 /usr/sbin/smbd -D
root 173 0.0 0.3 3932 1688 ? S 00:00 0:00 /usr/sbin/nmbd -D
root 174 0.0 0.2 3892 1404 ? S 00:00 0:00 /usr/sbin/nmbd -D
root 176 0.0 0.0 1404 468 ? S 00:00 0:00 gpm -m /dev/mouse
root 182 0.0 0.2 3892 1404 ? S 00:00 0:00 nmbd -D
root 184 0.0 0.2 2452 1124 ? S 00:00 0:00 /opt/kde/bin/lisa
nobody 187 0.0 0.3 3136 1604 ? S 00:00 0:00 /usr/sbin/httpd
nobody 188 0.0 0.3 3136 1604 ? S 00:00 0:00 /usr/sbin/httpd
nobody 189 0.0 0.3 3136 1604 ? S 00:00 0:00 /usr/sbin/httpd
nobody 190 0.0 0.3 3136 1604 ? S 00:00 0:00 /usr/sbin/httpd
nobody 191 0.0 0.3 3136 1604 ? S 00:00 0:00 /usr/sbin/httpd
punksha 193 0.1 0.2 2288 1308 tty1 S 00:00 0:00 -bash
root 194 0.0 0.0 1356 488 tty2 S 00:00 0:00 /sbin/agetty 3840
root 195 0.0 0.0 1356 488 tty3 S 00:00 0:00 /sbin/agetty 3840
root 196 0.0 0.0 1356 488 tty4 S 00:00 0:00 /sbin/agetty 3840
root 197 0.0 0.0 1356 488 tty5 S 00:00 0:00 /sbin/agetty 3840
root 198 0.0 0.0 1356 488 tty6 S 00:00 0:00 /sbin/agetty 3840
punksha 210 0.0 0.1 2032 988 tty1 S 00:00 0:00 /bin/sh /usr/X11R
punksha 223 0.0 0.1 2224 632 tty1 S 00:00 0:00 xinit /usr/X11R6/
root 224 8.1 4.0 155156 20888 ? SL 00:00 0:03 X :0
punksha 229 0.0 0.1 2020 944 tty1 S 00:00 0:00 /bin/sh /usr/X11R
punksha 230 0.0 0.1 2036 984 tty1 S 00:00 0:00 /bin/sh /opt/kde/
punksha 250 0.0 2.5 25200 13184 ? S 00:00 0:00 kdeinit: Running.
punksha 253 0.1 2.5 24900 13244 ? S 00:00 0:00 kdeinit: dcopserv
punksha 256 0.3 2.7 26304 14228 ? S 00:01 0:00 kdeinit: klaunche
punksha 258 0.7 3.2 27796 16548 ? S 00:01 0:00 kdeinit: kded
punksha 273 0.3 3.5 31540 18312 ? S 00:01 0:00 kdeinit: knotify
punksha 274 0.0 0.0 1344 332 tty1 S 00:01 0:00 kwrapper ksmserve
punksha 276 0.2 2.9 26516 15380 ? S 00:01 0:00 kdeinit: ksmserve
punksha 277 1.0 3.3 28480 17220 ? S 00:01 0:00 kdeinit: kwin -se
punksha 279 5.7 3.7 29676 19316 ? S 00:01 0:01 kdeinit: kdesktop
punksha 281 4.5 3.7 30676 19124 ? S 00:01 0:01 kdeinit: kicker
punksha 282 0.0 2.6 25468 13752 ? S 00:01 0:00 kdeinit: kio_file
punksha 284 0.0 0.1 2020 928 ? S 00:01 0:00 /bin/sh /home/pun
punksha 285 0.0 0.1 2020 928 ? S 00:01 0:00 /bin/sh /home/pun
punksha 286 3.7 3.2 28284 16768 ? S 00:01 0:00 karamba /home/pun
punksha 287 3.2 3.6 30144 18696 ? S 00:01 0:00 superkaramba /hom
punksha 289 0.4 3.1 28164 16020 ? S 00:01 0:00 kdeinit: kio_thum
punksha 291 0.7 3.2 28008 16852 ? S 00:01 0:00 kdeinit: klipper
punksha 293 0.8 3.4 28320 17724 ? S 00:01 0:00 kdeinit: kmix -se
punksha 304 0.8 3.4 28296 17588 ? S 00:01 0:00 knotes -session 1
punksha 305 2.1 2.1 21136 11200 ? S 00:01 0:00 nspluginviewer -s
punksha 312 0.6 3.0 26680 15604 ? S 00:01 0:00 kdeinit: kaccess
punksha 315 1.5 3.4 27868 17948 ? S 00:01 0:00 kget -session 11c
punksha 316 2.1 2.1 21136 11200 ? S 00:01 0:00 nspluginviewer -s
punksha 318 2.4 2.1 21136 11200 ? S 00:01 0:00 nspluginviewer -s
punksha 324 0.7 3.0 26596 15472 ? S 00:01 0:00 kalarmd --login
punksha 336 7.7 3.3 28220 17480 ? R 00:01 0:00 konsole
punksha 340 0.0 0.2 2272 1260 pts/0 S 00:01 0:00 /bin/bash
root 346 0.0 0.2 2280 1268 pts/0 S 00:01 0:00 bash
root 353 0.0 0.1 2656 808 pts/0 R 00:01 0:00 ps aux



i tried doing the kill -HUP 114 but that doesn't do anything....so yea, i think thats everything, but if not, i'll be more than happy to give u info!
 
Old 07-13-2003, 03:31 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
In your proftpd.conf file comment the:
standalone
line and uncomment the:
inetd
line, then send a HUP to inetd again, and attempt a new connection.

Can you also post up:
netstat -a
So we can see what's listening and what's using those ports.

One last thing, which distro?

Cool
 
Old 07-13-2003, 03:40 PM   #5
Henry
Member
 
Registered: Dec 2002
Location: USA
Distribution: Slackware9.0, some SuSe8.0
Posts: 179

Original Poster
Rep: Reputation: 30
oh hehe, i guess u didn't see it up there, but i'm using slackware 9.0
after i commented out the stanealone and uncomment the inetd:

root@punkshark:/etc# kill -HUP 114
root@punkshark:/etc# ftp 192.168.1.16
Connected to 192.168.1.16.
421 Service not available, remote server has closed connection
ftp>

heres the netstat -a:

root@punkshark:/etc# netstat -a
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:32768 *:* LISTEN
tcp 0 0 *:32769 *:* LISTEN
tcp 0 0 *rinter *:* LISTEN
tcp 0 0 *:time *:* LISTEN
tcp 0 0 *:netbios-ssn *:* LISTEN
tcp 0 0 *:submission *:* LISTEN
tcp 0 0 *:finger *:* LISTEN
tcp 0 0 *:sunrpc *:* LISTEN
tcp 0 0 *:x11 *:* LISTEN
tcp 0 0 *:http *:* LISTEN
tcp 0 0 *:auth *:* LISTEN
tcp 0 0 *:ftp *:* LISTEN
tcp 0 0 *:ssh *:* LISTEN
tcp 0 0 *:smtp *:* LISTEN
tcp 0 0 *:netviewdm2 *:* LISTEN
tcp 0 0 *:7741 *:* LISTEN
tcp 0 0 punkshark.henry.o:32780 64.12.29.211:aol ESTABLISHED
tcp 0 0 punkshark.henry.o:32779 64.12.29.10:aol ESTABLISHED
tcp 0 0 punkshark.henry.o:32792 66.238.114.25.ptr.:http ESTABLISHED
tcp 0 0 punkshark.henry.o:32781 caim-d01b.blue.aol.:aol ESTABLISHED
tcp 0 0 punkshark.henry.o:32789 66.238.114.15.ptr.:http ESTABLISHED
tcp 0 0 punkshark.henry.o:32796 a195.22.198-71.dep:http ESTABLISHED
udp 0 0 *:biff *:*
udp 0 0 *:nfsd *:*
udp 0 0 *:32770 *:*
udp 0 0 *:32771 *:*
udp 0 0 *:32772 *:*
udp 0 0 *:ntalk *:*
udp 0 0 punkshark.he:netbios-ns *:*
udp 0 0 *:netbios-ns *:*
udp 0 0 punkshark.h:netbios-dgm *:*
udp 0 0 *:netbios-dgm *:*
udp 0 0 *:time *:*
udp 0 0 *:7741 *:*
udp 0 0 *:727 *:*
udp 0 0 *:netrcs *:*
udp 0 0 *:sunrpc *:*
raw 30672 0 *:icmp *:* 7
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ACC ] STREAM LISTENING 317 /tmp/.ICE-unix/dcop253-
1058128608
unix 2 [ ACC ] STREAM LISTENING 279 /tmp/.X11-unix/X0
unix 2 [ ACC ] STREAM LISTENING 447 /tmp/.ICE-unix/276
unix 2 [ ACC ] STREAM LISTENING 343 /tmp/ksocket-punkshark/
klauncherV49Sqb.slave-socket
unix 2 [ ACC ] STREAM LISTENING 496 /tmp/ksocket-punkshark/
kdesktopA4ChKb.slave-socket
unix 2 [ ACC ] STREAM LISTENING 226 /dev/gpmctl
unix 2 [ ACC ] STREAM LISTENING 1327 /tmp/.esd/socket
unix 2 [ ACC ] STREAM LISTENING 788 /tmp/gaim_punkshark.0
unix 2 [ ACC ] STREAM LISTENING 176 /var/run/lprng
unix 2 [ ACC ] STREAM LISTENING 313 /tmp/ksocket-punkshark/
kdeinit-:0
unix 8 [ ] DGRAM 78 /dev/log
unix 3 [ ] STREAM CONNECTED 3259 /tmp/ksocket-punkshark/
klauncherV49Sqb.slave-socket
unix 3 [ ] STREAM CONNECTED 3258
unix 2 [ ] DGRAM 3131
unix 3 [ ] STREAM CONNECTED 2634 /tmp/.ICE-unix/dcop253-
1058128608
unix 3 [ ] STREAM CONNECTED 2633
unix 3 [ ] STREAM CONNECTED 2629 /tmp/.ICE-unix/276
unix 3 [ ] STREAM CONNECTED 2628
unix 3 [ ] STREAM CONNECTED 2627 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 2626
unix 3 [ ] STREAM CONNECTED 1330 /tmp/.esd/socket
unix 3 [ ] STREAM CONNECTED 1329
unix 2 [ ] STREAM 1326
unix 3 [ ] STREAM CONNECTED 837 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 836
unix 3 [ ] STREAM CONNECTED 806 /tmp/.ICE-unix/276
unix 3 [ ] STREAM CONNECTED 805
unix 3 [ ] STREAM CONNECTED 1150 /tmp/gaim_punkshark.0
unix 3 [ ] STREAM CONNECTED 804
unix 3 [ ] STREAM CONNECTED 780 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 779
unix 3 [ ] STREAM CONNECTED 774 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 773
unix 3 [ ] STREAM CONNECTED 744 /tmp/.ICE-unix/276
unix 3 [ ] STREAM CONNECTED 743
unix 3 [ ] STREAM CONNECTED 740 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 739
unix 3 [ ] STREAM CONNECTED 738 /tmp/.ICE-unix/dcop253-
1058128608
unix 3 [ ] STREAM CONNECTED 737
unix 3 [ ] STREAM CONNECTED 734 /tmp/.ICE-unix/dcop253-
1058128608
unix 3 [ ] STREAM CONNECTED 733
unix 3 [ ] STREAM CONNECTED 722 /tmp/.ICE-unix/276
unix 3 [ ] STREAM CONNECTED 721
unix 3 [ ] STREAM CONNECTED 720 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 719
unix 3 [ ] STREAM CONNECTED 703 /tmp/.ICE-unix/dcop253-
1058128608
unix 3 [ ] STREAM CONNECTED 702
unix 3 [ ] STREAM CONNECTED 696 /tmp/.ICE-unix/276
unix 3 [ ] STREAM CONNECTED 695
unix 3 [ ] STREAM CONNECTED 694 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 693
unix 3 [ ] STREAM CONNECTED 686 /tmp/.ICE-unix/276
unix 3 [ ] STREAM CONNECTED 685
unix 3 [ ] STREAM CONNECTED 677 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 676
unix 3 [ ] STREAM CONNECTED 675 /tmp/.ICE-unix/dcop253-
1058128608
unix 3 [ ] STREAM CONNECTED 674
unix 3 [ ] STREAM CONNECTED 666 /tmp/.ICE-unix/276
unix 3 [ ] STREAM CONNECTED 665
unix 3 [ ] STREAM CONNECTED 663 /tmp/.ICE-unix/dcop253-
1058128608
unix 3 [ ] STREAM CONNECTED 662
unix 3 [ ] STREAM CONNECTED 659 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 658
unix 3 [ ] STREAM CONNECTED 657 /tmp/.ICE-unix/dcop253-
1058128608
unix 3 [ ] STREAM CONNECTED 656
unix 3 [ ] STREAM CONNECTED 650 /tmp/.ICE-unix/276
unix 3 [ ] STREAM CONNECTED 649
unix 3 [ ] STREAM CONNECTED 648 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 647
unix 3 [ ] STREAM CONNECTED 622 /tmp/.ICE-unix/276
unix 3 [ ] STREAM CONNECTED 621
unix 3 [ ] STREAM CONNECTED 618 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 617
unix 3 [ ] STREAM CONNECTED 614 /tmp/.ICE-unix/dcop253-
1058128608
unix 3 [ ] STREAM CONNECTED 613
unix 3 [ ] STREAM CONNECTED 560 /tmp/.ICE-unix/276
unix 3 [ ] STREAM CONNECTED 559
unix 3 [ ] STREAM CONNECTED 555 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 554
unix 3 [ ] STREAM CONNECTED 553 /tmp/.ICE-unix/dcop253-
1058128608
unix 3 [ ] STREAM CONNECTED 552
unix 3 [ ] STREAM CONNECTED 547 /tmp/.ICE-unix/276
unix 3 [ ] STREAM CONNECTED 546
unix 3 [ ] STREAM CONNECTED 543 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 542
unix 3 [ ] STREAM CONNECTED 540 /tmp/.ICE-unix/dcop253-
1058128608
unix 3 [ ] STREAM CONNECTED 539
unix 3 [ ] STREAM CONNECTED 536 /tmp/.ICE-unix/dcop253-
1058128608
unix 3 [ ] STREAM CONNECTED 535
unix 3 [ ] STREAM CONNECTED 530 /tmp/.ICE-unix/276
unix 3 [ ] STREAM CONNECTED 529
unix 3 [ ] STREAM CONNECTED 528 /tmp/.ICE-unix/dcop253-
1058128608
unix 3 [ ] STREAM CONNECTED 527
unix 3 [ ] STREAM CONNECTED 523 /tmp/.ICE-unix/276
unix 3 [ ] STREAM CONNECTED 522
unix 3 [ ] STREAM CONNECTED 521 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 520
unix 3 [ ] STREAM CONNECTED 519 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 518
unix 3 [ ] STREAM CONNECTED 490 /tmp/.ICE-unix/276
unix 3 [ ] STREAM CONNECTED 489
unix 3 [ ] STREAM CONNECTED 486 /tmp/.X11-unix/X0
unix 4 [ ] STREAM CONNECTED 485
unix 3 [ ] STREAM CONNECTED 484 /tmp/.ICE-unix/dcop253-
1058128608
unix 3 [ ] STREAM CONNECTED 483
unix 3 [ ] STREAM CONNECTED 472 /tmp/.ICE-unix/276
unix 3 [ ] STREAM CONNECTED 471
unix 3 [ ] STREAM CONNECTED 468 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 467
unix 3 [ ] STREAM CONNECTED 466 /tmp/.ICE-unix/dcop253-
1058128608
unix 3 [ ] STREAM CONNECTED 465
unix 3 [ ] STREAM CONNECTED 460 /tmp/.ICE-unix/dcop253-
1058128608
unix 3 [ ] STREAM CONNECTED 459
unix 3 [ ] STREAM CONNECTED 454 /tmp/.ICE-unix/276
unix 3 [ ] STREAM CONNECTED 453
unix 3 [ ] STREAM CONNECTED 452 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 451
unix 3 [ ] STREAM CONNECTED 446 /tmp/.ICE-unix/dcop253-
1058128608
unix 3 [ ] STREAM CONNECTED 445
unix 3 [ ] STREAM CONNECTED 442 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 441
unix 3 [ ] STREAM CONNECTED 432 /tmp/ksocket-punkshark/
kdeinit-:0
unix 3 [ ] STREAM CONNECTED 431
unix 3 [ ] STREAM CONNECTED 423 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 422
unix 3 [ ] STREAM CONNECTED 421 /tmp/.ICE-unix/dcop253-
1058128608
unix 3 [ ] STREAM CONNECTED 420
unix 3 [ ] STREAM CONNECTED 385 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 384
unix 3 [ ] STREAM CONNECTED 367 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 366
unix 3 [ ] STREAM CONNECTED 350 /tmp/.ICE-unix/dcop253- 1058128608
unix 3 [ ] STREAM CONNECTED 349
unix 3 [ ] STREAM CONNECTED 337 /tmp/.ICE-unix/dcop253- 1058128608
unix 3 [ ] STREAM CONNECTED 336
unix 3 [ ] STREAM CONNECTED 331
unix 3 [ ] STREAM CONNECTED 330
unix 3 [ ] STREAM CONNECTED 288 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 281
unix 2 [ ] DGRAM 216
unix 2 [ ] DGRAM 197
unix 2 [ ] DGRAM 195
unix 2 [ ] DGRAM 189
unix 2 [ ] DGRAM 81
Active IPX sockets
Proto Recv-Q Send-Q Local Address Foreign Address State

again, thanks so much for helping!
 
Old 07-13-2003, 07:31 PM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Hmm, what does your /etc/inetd.conf look like? Specifically I'm looking for the FTP section, but you can post up the whole thing.

After you send the HUP to INETD can you ps aux | grep inetd to see if it's running still/again?

Cool
 
Old 07-14-2003, 01:23 AM   #7
Henry
Member
 
Registered: Dec 2002
Location: USA
Distribution: Slackware9.0, some SuSe8.0
Posts: 179

Original Poster
Rep: Reputation: 30
here is my inetd.conf ftp stuff:

ftp stream tcp nowait root /usr/sbin/tcpd /usr/local/sbin/proftpd

then after kill -HUP 114:
root 114 0.0 0.1 1400 536 ? S 23:21 0:00 /usr/sbin/inetd
root 636 0.0 0.0 1468 456 pts/0 R 23:25 0:00 grep inetd
 
Old 07-14-2003, 01:32 AM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Ok, well it all looks good... Sadly

Is your path correct:
/usr/local/sbin/proftpd (use whereis proftpd)? Also, is your path to your tcpwrappers correct as well:
whereis tcpd (/usr/sbin/tcpd) If you cannot locate this file, this may be where you problem lay. Install your TCP Wrappers program from your install CD, and then make sure the path is correct, send a HUP to inetd and:
ftp localhost

Cool
 
Old 07-14-2003, 02:21 AM   #9
Henry
Member
 
Registered: Dec 2002
Location: USA
Distribution: Slackware9.0, some SuSe8.0
Posts: 179

Original Poster
Rep: Reputation: 30
ehh i think i found where the error is, i found proftpd.conf @ /usr/local/etc/proftpd.conf and i deleted it and did
root@punkshark:/# /usr/local/sbin/proftpd /etc/proftpd.conf
- Fatal: unable to read configuration file '/usr/local/etc/proftpd.conf'


but yea, it gave me that... i dunnno y
then i did
root@punkshark:/# cp /etc/proftpd.conf /usr/local/etc/
root@punkshark:/# /usr/local/sbin/proftpd /usr/local/etc/proftpd.conf
punkshark.henry.org - fatal: Socket operation on non-socket
punkshark.henry.org - (Running from command line? Use `ServerType standalone' in config file!)

so i changed from inetd to standalone in /usr/local/etc/proftpd.conf

then did these:
root@punkshark:/# kill -HUP 114
root@punkshark:/# /usr/local/sbin/proftpd /usr/local/etc/proftpd.conf
root@punkshark:/# ftp 192.168.1.16
Connected to 192.168.1.16.
421 Service not available, remote server has closed connection
ftp>


so now what, im confused
 
Old 07-14-2003, 02:26 AM   #10
Henry
Member
 
Registered: Dec 2002
Location: USA
Distribution: Slackware9.0, some SuSe8.0
Posts: 179

Original Poster
Rep: Reputation: 30
oh wait, i didn't put in the option -c..hehe ok so heres the new thing:
root@punkshark:/etc# /usr/local/sbin/proftpd -c /etc/proftpd.conf
root@punkshark:/etc# kill -HUP 114
(i also changed from inetd to standalone)
then:
root@punkshark:/etc# ftp 192.168.1.16
Connected to 192.168.1.16.
421 Service not available, remote server has closed connection

and yea, i have proftpd and tcpd:
root@punkshark:/etc# whereis proftpd
proftpd: /etc/proftpd.conf /usr/local/sbin/proftpd
root@punkshark:/etc# whereis tcpd
tcpd: /usr/sbin/tcpd /usr/include/tcpd.h /usr/man/man8/tcpd.8.gz /usr/share/man/man8/tcpd.8.gz

maybe i should reinstall proftpd to /etc/ instead of /usr/local/
 
Old 07-14-2003, 02:28 AM   #11
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
You specify the configuration file with -c:
/usr/local/sbin/proftpd -c /etc/proftpd.conf

I'd suggest sticking with inetd btw, but for troubleshooting either one is fine. The HUP to inetd after changing proftpd to standalone is really unnecessary since the proftpd.conf file is in standalone mode. After you put it in standalone, if you want to make changes to your proftpd.conf file, you need to HUP your proftpd PID instead of inetd's.

Sounds confusing I'm sure, but if you just take it at face value it's not so bad.

Cool
 
Old 07-14-2003, 02:39 AM   #12
Henry
Member
 
Registered: Dec 2002
Location: USA
Distribution: Slackware9.0, some SuSe8.0
Posts: 179

Original Poster
Rep: Reputation: 30
root@punkshark:/home/punkshark# /usr/local/sbin/proftpd -c /etc/proftpd.conf
punkshark.henry.org - fatal: Socket operation on non-socket
punkshark.henry.org - (Running from command line? Use `ServerType standalone' in config file!)

it kept saying that
 
Old 07-14-2003, 02:41 AM   #13
Henry
Member
 
Registered: Dec 2002
Location: USA
Distribution: Slackware9.0, some SuSe8.0
Posts: 179

Original Poster
Rep: Reputation: 30
when i change it to stanealone, it still doesn't work.. so i dont' think its that..
 
Old 07-14-2003, 02:46 AM   #14
Henry
Member
 
Registered: Dec 2002
Location: USA
Distribution: Slackware9.0, some SuSe8.0
Posts: 179

Original Poster
Rep: Reputation: 30
when i cp /etc/proftpd.conf /usr/local/etc/ and did /usr/local/sbin/proftpd -c /usr/local/etc/proftpd.conf, instead of getting:
root@punkshark:/home/punkshark# ftp 192.168.1.16
Connected to 192.168.1.16.
421 Service not available, remote server has closed connection
(like when i use config in /etc/proftpd.conf) i get:

root@punkshark:/usr/local/etc# ftp 192.168.1.16
Connected to 192.168.1.16.
500 FTP server shut down (going down at Tue Jul 8 16:39:46 2003) -- please try again later
...
 
Old 07-14-2003, 03:44 AM   #15
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
That reads like a permissions thing, or a user thing of sorts to me.

In your proftpd.conf file check out who the server is supposed to run as (user and group) then check that against /etc/passwd and /etc/group to ensure those users exist. If they do, are they able to (do they have permission) to run this server?
ls -l /usr/local/bin/proftpd

Look at the permissions.

Cool
 
  


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
One more thing AGilley007 Slackware 2 07-14-2004 11:51 AM
Is there such a thing? mrlucio79 Linux - Software 3 03-16-2004 04:24 PM
How do I make ftp up- and downloads the only thing a restricted user can do? jgilels Linux - Security 3 08-15-2003 01:38 PM
Change apache/bind/ftp config w/o restart js_530 Linux - Networking 1 07-16-2003 01:05 PM
there such thing as... antken Linux - General 8 09-12-2002 06:38 AM

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

All times are GMT -5. The time now is 09:26 PM.

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