Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 73155 - vsftpd ignores user_config_dir when within /etc?
Summary: vsftpd ignores user_config_dir when within /etc?
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Sparc Linux
: High normal (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-02 11:22 UTC by Dan Thorson
Modified: 2005-06-28 06:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Thorson 2004-12-02 11:22:19 UTC
Using vsftpd v1.2.2 on 2.4.27-sparc with user-specific configs.  I could not get the user-specific configs to work until I moved the entire user-specific config directory to /vsftpd/*, instead of the original /etc/vsftpd/user_conf/*.

Reproducible: Always
Steps to Reproduce:
1. create user-specific config file in /etc/vsftpd/user_conf/smith with the following contents
      dirlist_enable=NO

2. Add this line to /etc/vsftpd/vsftpd.conf
        user_config_dir=/etc/vsftpd/user_conf

3. restart vsftpd, and see if you can do a "dir" when ftp'ing using userID "smith".  You can, even though the config file says you shouldn't be able to do so.

4. move the user-specific configs to /, i.e.
        cp -rp /etc/vsftpd/user_conf /vsftpd

5. change vsftpd.conf to point to the new location
         user_config_dir=/vsftpd

6. restart vsftpd.  Now ftp'ing as user smith will NOT be able to see contents using "dir" or "ls".

Actual Results:  
Moving the user-specific configs to / worked around the issue.

Expected Results:  
user-specific configs should be able to be stored in /etc/vsftpd/user_conf (as 
is documented in most/all of the examples)

# ls -
ald / /etc /etc/vsftpd /etc/vsftpd/vsftpd.conf /etc/vsftpd/user_conf /etc/vsftpd
/user_conf/oem /vsftpd /vsftpd/*
drwxr-xr-x  19 root root 4096 Dec  2 12:58 /
drwxr-xr-x  34 root root 4096 Dec  2 13:05 /etc
drwxr-xr-x   3 root root 4096 Dec  2 13:20 /etc/vsftpd
drwxr-xr-x   2 root root 4096 Dec  2 13:17 /etc/vsftpd/user_conf
-rw-r--r--   1 root root  165 Dec  1 15:15 /etc/vsftpd/user_conf/smith
-rw-r--r--   1 root root 3920 Dec  2 12:58 /etc/vsftpd/vsftpd.conf
drwxr-xr-x   2 root root 4096 Dec  2 13:03 /vsftpd
-rw-r--r--   1 root root  178 Dec  2 13:03 /vsftpd/smith

# emerge info
Portage 2.0.51-r3 (default-sparc64-2004.0, gcc-3.3.4, glibc-2.3.3.20040420-r2, 
2.4.27-sparc sparc64)
=================================================================
System uname: 2.4.27-sparc sparc64 sun4u
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux-headers-2.4.23
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="sparc"
AUTOCLEAN="yes"
CFLAGS="-mcpu=ultrasparc -O3 -pipe"
CHOST="sparc-unknown-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/
config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=ultrasparc -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.osuosl.org/ 
http://adelie.polymtl.ca/ 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo/ http://csociety-
ftp.ecn.purdue.edu/pub/gentoo/ http://gentoo.seren.com/gentoo 
http://gentoo.chem.wisc.edu/gentoo/ http://cudlug.cudenver.edu/gentoo/ 
http://gentoo.mirrors.pair.com/ http://gentoo.ccccom.com http://ftp-
mirror.internap.com/pub/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="sparc X arts avi berkdb bitmap-fonts crypt cups encode esd f77 fbcon 
foomaticdb fortran gdbm gif gnome gtk imlib jpeg kde libwww mad mikmod motif 
mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt readline 
sdl slang spell ssl tcpd truetype xml2 xmms xv zlib"
Comment 1 Roy Marples (RETIRED) gentoo-dev 2005-06-28 06:15:47 UTC
This works for me using net-ftp/vsftpd-2.0.3

Re-open if not
Comment 2 Dan Thorson 2005-06-28 06:25:02 UTC
Where is this version 2.0.3?

# emerge search vsftpd
Searching...   
[ Results for search key : vsftpd ]
[ Applications found : 1 ]
 
*  net-ftp/vsftpd
      Latest version available: 1.2.2
      Latest version installed: 1.2.2
      Size of downloaded files: 133 kB
      Homepage:    http://vsftpd.beasts.org/
      Description: Very Secure FTP Daemon written with speed, size and security 
in mind
      License:     GPL-2
Comment 3 Roy Marples (RETIRED) gentoo-dev 2005-06-28 06:42:55 UTC
It's masked ~ARCH - ~sparc in your case

Add "net-ftp/vsftpd ~sparc" to /etc/portage/package.keywords.

You can see this do doing
equery list -p net-ftp/vsftpd