Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 157873 - Can't login with ftp client to users home directories
Summary: Can't login with ftp client to users home directories
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted
Version: 4
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2005-05-16 17:12 UTC by David Bentley
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version: 1.25.4-10.1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2005-09-15 15:58:13 UTC

Attachments (Terms of Use)

Description David Bentley 2005-05-16 17:12:18 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.8) Gecko/20050512 Fedora/1.0.4-2 Firefox/1.0.4

Description of problem:
Having read the man ftpd_selinux page I can get
anonymous ftp to work (only tested read only mode so
far) by typing what is suggested in a terminal window.
chcon -R -t ftpd_anon_t /var/ftp 

But what I cant get to work with selinux protection on
is ftp access to a users home directory just by either

using the system-config-securitylevel tool to enable
acces to home directories or by typing the following
command in a terminal window.

setsebool -P ftp_home_dir 1

When I try to login as a user with a home directory I 
get this error message at the client end after the
password is entered

Error sending status request (Operation not permitted)
Login failed.

Do you also have to use chcon to appropriatly label a 
users home directory.

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

How reproducible:

Steps to Reproduce:
See description

Actual Results:  See description

Expected Results:  Successful login the same as is possible when selinux protection is disabled for vsftpd.

Additional info:

Ther is an inconsistancy in the man page for ftpd_selinux as follows :-

The line after "setsebool -P ftpd_disable_trans 1"
reads "system vsftpd restart" but this when typed
produces an error.

The line should be "service vsftpd restart" presumably.

Comment 1 Daniel Walsh 2005-05-18 18:05:00 UTC
Fixed in selinux-policy-*-1.23.16-4

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