This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
deb-mbse/html/misc/ftpserver.html

102 lines
4.3 KiB
HTML
Raw Normal View History

2001-10-22 17:33:55 +00:00
<HTML>
2002-01-27 14:59:50 +00:00
<!-- $Id$ -->
2001-10-22 17:33:55 +00:00
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=ISO 8859-1">
<META http-equiv="Content-Style-Type" content="text/css">
<META name="author" lang="en" content="Michiel Broek">
<META name="copyright" lang="en" content="Copyright Michiel Broek">
<META name="description" lang="en" content="MBSE BBS Manual">
<META name="keywords" lang="en" content="MBSE BBS, MBSE, BBS, manual, fido, fidonet, gateway, tosser, mail, tic, mailer">
<TITLE>Howto setup an FTP server to work with MBSE BBS.</TITLE>
<LINK rel=stylesheet HREF="../manual.css">
</HEAD>
<BODY>
<BLOCKQUOTE>
2002-02-09 21:59:30 +00:00
<h5>Last update 09-Feb-2002</h5>
2001-10-22 17:33:55 +00:00
<P>&nbsp;<P>
<H1>How to setup an FTP server to work with MBSE BBS.</H1>
<P>
In order to let MBSE BBS and your FTP server to both function together you must
organize a special file structure. Note that even if you don't setup an FTP
server you must still create a structure like this for the fidonet mailer,
if you don't, <strong>mail and files will get lost!</strong>
2002-02-09 21:59:30 +00:00
This description is written for ProFTPD, on your distribution there
2001-10-22 17:33:55 +00:00
may be another ftpd installed. <font color=red><u>Don't use mbftpd yet!</u></font>
2002-02-09 21:59:30 +00:00
Read the section for the <A HREF="webserver.html">webserver</A> as well.
2001-10-22 17:33:55 +00:00
<P>
<H4>The filestructure I used is as follows:</H4>
<PRE>
2002-01-27 14:59:50 +00:00
/opt/mbse/ftp/pub/dos_util/dos_4dos - Public download areas
| | | /dos_disk
| | | /dos_file
| | /virnet/mcafee
2002-02-09 21:59:30 +00:00
| | | /win16
| | | /win32
| | /css/files.css - Stylesheet for http download
2002-01-27 14:59:50 +00:00
| /incoming - FTP public upload.
/var/bso/outbound - Your default outbound
| /outbound.009 - Outbound Zone 9
2002-02-09 21:59:30 +00:00
/inbound - Inbound directory
2002-01-27 14:59:50 +00:00
/private/upload - Non-public download areas
| /sysop
| /logfiles
/tic_queue - Queue for .tic files.
2001-10-22 17:33:55 +00:00
</PRE>
2002-02-09 21:59:30 +00:00
To let this work you need to change the default anonymous directory of the
ftp server to /opt/mbse/pub. As root, edit /etc/passwd with the <b>vipw</b>
command. Look for the entry of the ftp user and change his homedirectory to
/opt/mbse/ftp. You may also use the command <b>usermod -d /opt/mbse/ftp ftp</b>
to do the same. For a start the default configuration file for ProFTPD will do
fine. If you want to let users upload into the incoming directory, you need to
change /etc/proftpd.conf file to allow that.
2001-10-22 17:33:55 +00:00
2002-02-09 21:59:30 +00:00
<P>
2002-01-27 14:59:50 +00:00
If another DOS/Windows style mailer has access to your MBSE outbound you must
set the DOS path and Unix path in <strong>mbsetup</strong> (1.4.12 and 1.4.13) to
<strong>"m:"</strong> and <strong>"/opt/mbse"</strong>. Note that to get
2001-10-22 17:33:55 +00:00
forwarding of .tic files to work the <strong>tic_queue</strong> must be a
2002-01-27 14:59:50 +00:00
subdirectory of "/opt/mbse" too. You could actually use any drive letter for
the DOS path.<BR>
2001-10-22 17:33:55 +00:00
This means that a fidonet file attach from the dos_4dos public download
directory shall get the subject "M:\FTP\PUB\DOS_UTIL\DOS_4DOS\COMMAND.ZIP".
2002-01-27 14:59:50 +00:00
Only use this if you need it!
2001-10-22 17:33:55 +00:00
<P>
2002-01-27 14:59:50 +00:00
2001-10-22 17:33:55 +00:00
As you can see, anonymous ftp users can't get to the mail, non-public
downloads etc. Normally, your BBS users have unix accounts and will be able
to do a ftp login and access any directory on your system. Because the bbs
users have <b>mbsebbs</b> as their shell and this shell is not in the file
<b>/etc/shells</b> the ftp daemon will not let the bbs users in. So even
your own bbs users must login as anonymous to get files from the ftp server.
<P>
2002-02-09 21:59:30 +00:00
The following is a list of file permissions when using ProFTPD:
2001-10-22 17:33:55 +00:00
<P>
<PRE>
Directory owner group mode perms
------------------------------- ----- ----- ---- ----------
2002-02-09 21:59:30 +00:00
/opt/mbse mbse bbs 0775 drwxrxxr-x
/opt/mbse/ftp root root 0755 drxxr-xr-x
/opt/mbse/ftp/pub mbse bbs 0755 drwxr-xr-x
/opt/mbse/ftp/incoming ftp ftp 0755 drwxr-xr-x
2001-10-22 17:33:55 +00:00
</PRE>
Note that all subdirectories under ../pub also must be owned by <strong>mbse
2002-01-27 14:59:50 +00:00
</strong> and group <strong>bbs</strong> and have at least mode 755 as long
2001-10-22 17:33:55 +00:00
as it are real bbs subdirectories. The bbs will maintain these directories
automatic and must have the rights to do so.
<P>
2002-01-27 14:59:50 +00:00
In the /opt/mbse/ftp/etc/group file, add the group bbs so that your directory
2001-10-22 17:33:55 +00:00
listings give the proper groupname instead of a number.
<P>
2002-01-27 14:59:50 +00:00
<A HREF="index.htm"><IMG SRC="../images/b_arrow.gif" ALT="Back" Border="0">Go Back</A>
2001-10-22 17:33:55 +00:00
</BLOCKQUOTE>
</BODY>
</HTML>