]> git.pld-linux.org Git - packages/bftpd.git/commitdiff
2e533e1c7dbc8982564e631ded688b47 SOURCES/bftpd-1.0.15.tar.gz
authorundefine <undefine@pld-linux.org>
Sun, 14 Jan 2001 13:02:07 +0000 (13:02 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
patch to noroot building, configuration file with PAM support and
inetd file

Changed files:
    bftpd-NOROOT.patch -> 1.1
    bftpd.conf -> 1.1
    bftpd.inetd -> 1.1

bftpd-NOROOT.patch [new file with mode: 0644]
bftpd.conf [new file with mode: 0644]
bftpd.inetd [new file with mode: 0644]

diff --git a/bftpd-NOROOT.patch b/bftpd-NOROOT.patch
new file mode 100644 (file)
index 0000000..0264da9
--- /dev/null
@@ -0,0 +1,18 @@
+diff -ur bftpd-1.0.15.orig/Makefile.in bftpd-1.0.15/Makefile.in
+--- bftpd-1.0.15.orig/Makefile.in      Tue Jan  2 18:46:58 2001
++++ bftpd-1.0.15/Makefile.in   Sat Jan 13 20:44:49 2001
+@@ -19,11 +19,9 @@
+ $(OBJS): $(HEADERS) Makefile
+ install: all
+-      $(INSTALL) -g 0 -m 700 -o 0 bftpd $(DESTDIR)/$(prefix)/sbin
+-      $(INSTALL) -g 0 -m 644 -o 0 bftpd.8 $(DESTDIR)/$(mandir)/man8
+-      $(INSTALL) -g 0 -m 600 -o 0 bftpd.conf $(DESTDIR)/etc
+-      touch /var/log/bftpd.log
+-      chmod 644 /var/log/bftpd.log
++      $(INSTALL) -m 700 bftpd $(DESTDIR)/$(prefix)/sbin
++      $(INSTALL) -m 644 bftpd.8 $(DESTDIR)/$(mandir)/man8
++      $(INSTALL) -m 600 bftpd.conf $(DESTDIR)/etc
+ clean distclean:
+       rm -f *~ $(OBJS) bftpd
diff --git a/bftpd.conf b/bftpd.conf
new file mode 100644 (file)
index 0000000..720ec7c
--- /dev/null
@@ -0,0 +1,81 @@
+#Configuration file for bftpd.
+#The given values are only examples, modify this file for your own needs.
+
+user global {
+
+  #Saying no here makes the server unaccessable.
+  SERVER_ENABLED=yes
+
+  #If SERVER_ENABLED is not set to yes, you can give a reason for the server
+  #shutdown here, or just say 'none'.
+  DISABLE_REASON=none
+
+  #Use Ratio if you want the client to send a file before he can get a file.
+  #Usage: RATIO=send/receive or RATIO=none. Example: RATIO=2/1 lets the client
+  #receive a 1 MB file when he has sent a 2 MB file.
+  RATIO=none
+
+  #ROOTDIR specifies the root directory of the client. It defaults to %h
+  #(user's home directory). %u is replaced by the user name.
+  ROOTDIR=%h
+
+  #Umask for the files or directories users create.
+  UMASK=022
+
+  #Name of the log file. Specify "syslog" (without quotes) to log into syslog.
+  LOGFILE=syslog
+
+  #Use %v for version, %h for the server FQDN and %i for the server IP address.
+  HELLO_STRING=bftpd %v at %h(%i) ready.
+
+  #Authentication type, values: PAM, PASSWD
+  AUTH=PAM
+
+  #Enable this if you want the client's IP address to be resolved to a host
+  #name. Note that it increases the overhead and it may not work if your DNS
+  #is not configured correctly. Clients without a valid DNS name will take very
+  #long to connect.
+  RESOLVE_CLIENT_IP=no
+
+  #Path to the message of the day, seen by all users before login.
+  MOTD_GLOBAL=/etc/ftpmotd
+
+  #Path to the message of the day, seen after login, relative to the root
+  #path of the user (see ROOTDIR).
+  MOTD_USER=/.ftpmotd
+
+  #If RESOLVE_UIDS is enabled, in directory lists the user and group names
+  #are shown instead of UID/GID. This may slow down directory listings.
+  RESOLVE_UIDS=yes
+
+  #You can enable/disable SITE commands here.
+  ENABLE_SITE=no
+
+  #If DO_CHROOT is enabled, a user can not access directories other than his
+  #HOMEDIR and its subdirectories. DON'T disable this globally if you don't
+  #want to have a security hole!
+  DO_CHROOT=yes
+  
+  #Enable this to log each login to wtmp.
+  LOG_WTMP=yes
+
+  #If you want bftpd to bind itself to one specific network interface, enter
+  #its IP address here. Else enter 'any'. This option only works in standalone
+  #mode.
+  BIND_TO_ADDR=any
+}
+
+user ftp {
+  #Any password fits.
+  ANONYMOUS_USER=yes
+}
+
+user anonymous {
+  #If the client wants anonymous, ftp is taken instead.
+  ALIAS=ftp
+}
+
+user root {
+  SERVER_ENABLED=no
+  DISABLE_REASON=Root login not allowed.
+}
diff --git a/bftpd.inetd b/bftpd.inetd
new file mode 100644 (file)
index 0000000..9d34195
--- /dev/null
@@ -0,0 +1,8 @@
+SERVICE_NAME=ftp
+SOCK_TYPE=stream
+PROTOCOL=tcp
+PORT=21
+FLAGS=nowait
+USER=root
+SERVER=tcpd
+DAEMON=/usr/sbin/bftpd
This page took 0.157813 seconds and 4 git commands to generate.