Next Previous Contents

## 4. FAQ

## 4.1 Problems while compiling

### I can't compile bftpd

Let me know. Please tell me what architecture and operating system you are using, and give me the output of the complete compilation process (configure and make). I don't get a lot of mail, so I'll try to answer your questions. If I don't reply, I have almost certainly forgotten your mail, so please send it again :)

### There are strange warnings

It is likely that compiling bftpd on a platform I haven't tested may give you some warnings. Even if it compiles successfully and runs without crashing, please tell me, as compiler warnings can cause problems which are not obvious.

### Make tells me I can't use wtmp

You are probably running Solaris. As I don't have access to a Solaris computer, I have never been able to test the wtmp functions in it. If you get a warning like this and you don't know what wtmp is, just don't care, else help me to fix the error.

## 4.2 Problems when trying to run it

### I get a warning like "Could not get peer IP address."

You have started bftpd on the console. If you want to run it as a standalone server, you have to invoke it with the "-d" option. If you have set it up as an inetd server, you can test it with:

> `

>     hostname:~$ ftp localhost

> `

### I get an error like "Bind failed: Address already in use."

This error means that another process has bound itself to the port you want to run bftpd on. You can set this port in bftpd.conf with the option PORT in the global structure. It defaults to 21. If you have not changed that, you probably forgot to turn off your old FTP server. Look in /etc/inetd.conf and in "ps auxwww | grep ftp".

## 4.3 Problems during the FTP sessions

### I get an error like "500 Unknown command: 'foo'"

Your client has sent a command to the server which it didn't understand. This is my fault, unless you have written a really inexistent command. Please check your command for typographic errors and report the error to me if you are sure that the command was right.

### The session terminates with a 421 error

If you try to log in with a wrong password, bftpd will terminate the connection. If you already had logged in before the error appeared, or the error appeared before you could log in, it definitely is a bug. Please tell me everything about it.

## 4.4 Miscellaneous

### How does the on-the-fly compression work?

Let's say you have a directory called foo. Even if there is no file called foo.tar.gz, you can RETR this file over FTP and it will contain the contents of the directory foo, tar-gzipped. You can also RETR the following files:

- dirname.tar
- filename.gz

If you want to use this, you must compile it in (see the installation section).

### My options for an anonymous user don't work

If you have a structure with an ALIAS=... in it, you mustn't put any more options in it. Instead, put them into the structure the alias points to.

### Why is there so little documentation?

The answer is simple, nobody has written anything :)
I never know what to write, so if you have any idea of how to improve the documentation, please tell me. The same applies to translations of documentation. If you want to contribute something, just do it, but please care about typographic errors and grammar.

Next Previous Contents