Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I just installed Pure-FTPD to give it a test run, I added a group and a user

groupadd test1

useradd -g test1 -d /var/www/html -s /etc testuser

then tried to run the server using

/usr/sbin/pure-ftpd -S <ip>,21 -c 30 -C 1 -l puredb:/etc/pureftpd.pdb -x -E -j -R

and receive this error

Unable to start a standalone server: Address already in use

I took a look at what was running that may already be using port 21

grep ftp /etc/services

and see this

21 is registered to ftp, but also used by fsp

ftp 21/tcp

ftp 21/udp fsp fspd

then i took a closer look at port 21

lsof -i :21

and got this

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME

pure-ftpd 3709 root 4u IPv4 12920 0t0 TCP *:ftp (LISTEN)

pure-ftpd 3709 root 5u IPv6 12922 0t0 TCP *:ftp (LISTEN)

any clues?

share|improve this question
1  
btw /etc/services has nothing to do what is actually listening on a port –  flo Aug 14 '11 at 0:14

1 Answer 1

up vote 1 down vote accepted

it's already running, kill the pid and try again...

share|improve this answer
    
ok, give me 1 moment –  s2xi Aug 14 '11 at 0:52

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.