Bug 232404 - 'error reading non-root config file' when no user configfile is available
'error reading non-root config file' when no user configfile is available
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: vsftpd (Show other bugs)
All Linux
medium Severity high
: ---
: ---
Assigned To: Maros Barabas
: Regression
Depends On:
  Show dependency treegraph
Reported: 2007-03-15 05:15 EDT by Martin (calim)
Modified: 2007-11-16 20:14 EST (History)
0 users

See Also:
Fixed In Version: RHBA-2007-0425
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-06-11 14:44:40 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Martin (calim) 2007-03-15 05:15:31 EDT
Description of problem:

Version-Release number of selected component (if applicable):

This bug seems to exists on centos 4.3 too.

How reproducible:

If i set user_config_dir in vsftpd.conf each user has to have a config file
othervise the connection get's terminated.
This behaviour is definitly wrong and the error message is misleading.

The reason for this behaviour is a bug in file 'twoprocess.c' around line 422

see additional information.

Additional info:

/* Security - ignore unless owned by root */
if (!vsf_sysutil_retval_is_error(retval) &&
    vsf_sysutil_statbuf_get_uid(p_statbuf) == VSFTP_ROOT_UID)
  vsf_parseconf_load_file(str_getbuf(&filename_str), 1);
} else {
  die('error reading non-root config file');

The 'else' part (which throws the error) is not only entered if the config file
is not owned by root, it is also entered if the user config file does not exist.
Comment 1 Martin (calim) 2007-03-19 11:49:33 EDT
Hi there !

any news ?
Comment 3 RHEL Product and Program Management 2007-03-21 03:04:33 EDT
This bugzilla has Keywords: Regression.  

Since no regressions are allowed between releases, 
it is also being proposed as a blocker for this release.  

Please resolve ASAP.
Comment 4 Martin (calim) 2007-03-21 11:27:33 EDT
Notice: Just to remind the bug exists in the centos 4 package too. (see the
centos bug report above).
Comment 5 Maros Barabas 2007-03-28 07:27:10 EDT

     please try vsftpd-1.2.1-3E.9.
Comment 6 Martin (calim) 2007-03-28 09:30:21 EDT
from where do I get the package ?
Comment 7 Martin (calim) 2007-03-29 09:29:09 EDT
i can test this package if you give me a download link :) I would be happy to
know what changes has been made too ^^
Comment 8 Maros Barabas 2007-04-02 03:41:53 EDT
  sorry for delay, here is the link:
Comment 9 Martin (calim) 2007-04-02 04:44:21 EDT
Thank you : Seems ok for the moment. I suggest to wait 24h for eventual side effect.
Comment 10 Martin (calim) 2007-04-02 04:50:01 EDT
Ah, as the problem also exists on centos 4, do you plan to build a RPM for this
release too ?
Comment 11 Maros Barabas 2007-04-02 06:56:33 EDT
Red Hat doesn't support CentOS at all. If you are asking about this bug on rhel
4 I hope that soon.
Comment 12 Martin (calim) 2007-04-02 07:19:32 EDT
Yes sorry, I spoke about rhel4. If you need I can open the same bug report for
rhel 4 (to keep in mind).
Comment 18 Red Hat Bugzilla 2007-06-11 14:44:40 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

Comment 19 Martin (calim) 2007-06-13 05:16:42 EDT
Thank you. Is it fixed for RHEL4 too ?

Note You need to log in before you can comment on or make changes to this bug.