You are not logged in.

#1 2011-06-03 22:44:10

wolfdogg
Member
From: Portland, OR, USA
Registered: 2011-05-21
Posts: 545

[SOLVED] bftpd for apache file server configuration

i chose bftpd,

is this a decent choice for a simple apache testing server?  i finally got it working last night after some configuration changes

#ROOTDIR specifies the root directory of the client. It defaults to %h
#(user's home directory). %u is replaced by the user name.
ROOTDIR="/srv/http"
#i set it to the doc root of the server

#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"
#even though i left this default, it still works, not out of my home directory, so this part is a bit confusing

#With the option ALLOWCOMMAND_XXXX, you can disable the command XXXX.
ALLOWCOMMAND_DELE="yes"
#this one allowed me to overwrite files in /srv/http, without it ftp wouldnt work unless file didnt exist


these are the only configuration changes i had to do.  im still wondering if i need to change one of the above and then add or tinker with one of the user functions below

user ftp {
  #Any password fits.
  ANONYMOUS_USER="yes"
  DENY_LOGIN="Anonymous login disabled."
  # bftpd interprets ROOTDIR="%h" (the default), as ROOTDIR="/" for the anonymous user, override it
  ROOTDIR="/srv/ftp"
}

user root {
  DENY_LOGIN="Root login not allowed."
}

Last edited by wolfdogg (2011-06-13 23:04:37)


Node.js, PHP Software Architect and Engineer (Full-Stack/DevOps)
GitHub  | LinkedIn

Offline

#2 2011-06-13 23:04:25

wolfdogg
Member
From: Portland, OR, USA
Registered: 2011-05-21
Posts: 545

Re: [SOLVED] bftpd for apache file server configuration

gave up on bftpd and switched out to proftp


Node.js, PHP Software Architect and Engineer (Full-Stack/DevOps)
GitHub  | LinkedIn

Offline

Board footer

Powered by FluxBB