Forum Home
Press F1
 
Thread ID: 33792 2003-05-26 00:10:00 Setting up VSFTPD in RedHat 8 Chilling_Silently (228) Press F1
Post ID Timestamp Content User
147518 2003-05-28 01:00:00 Cheers, I only needed to change the following:

# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
chroot_list_enable=NO
chroot_local_user=NO

And they can now browse my subdirectories fine.. but they can also go Up...
Ive used #ln -s to /mnt/hdb5 (My FAT32 Partition) to link to it, and a couple of other places on the HDD.

They now have Read-Only access to those folders, which I want.. but they also have Read-Only access to any folder on the HDD..

I think Im a little lost here.. I want them so they cannot go Up from their home folder, but can browse the linked folders at their pleasing!

What have I configured wrong?

Thanks joey



Chill.
Chilling_Silently (228)
147519 2003-05-28 01:02:00 Cheers, I only needed to change the following:

# You may specify an explicit list of local users to chroot() to their home
# directory . If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot() .
chroot_list_enable=NO
chroot_local_user=NO

And they can now browse my subdirectories fine . . but they can also go Up . . .
Ive used #ln -s to /mnt/hdb5 (My FAT32 Partition) to link to it, and a couple of other places on the HDD .

They now have Read-Only access to those folders, which I want . . but they also have Read-Only access to any folder on the HDD . .

I think Im a little lost here . . I want them so they cannot go Up from their home folder, but can browse the linked folders at their pleasing!

What have I configured wrong?

Thanks joey



Chill .
Chilling_Silently (228)
147520 2003-05-28 01:03:00 If you've got these three lines then they should be able to browse.

chroot_list_enable=YES
chroot_local_user=YES
chroot_list_file=/etc/vsftpd.chroot_list

Only users in the vsftpd.chroot_list should be able to browse out of thieir home dirs.
joey (2236)
147521 2003-05-28 01:06:00 Oops, If you've got these three lines then they SHOULDN'T be able to browse. joey (2236)
147522 2003-05-28 01:13:00 Okay, so its:

# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
chroot_list_enable=YES
chroot_local_user=YES

# Put people in this file that need to be locked to thier home directories
chroot_list_file=/etc/vsftpd.chroot_list

and vsftpd.chroot_list contains:

josiah
muffy


Josiah is my main desktop user, and muffy is a user I simply made for FTP..
But I muffy is still allowed to view /home, /, /etc, /mnt and anything else muffy wants to!
That's the part I want to stop... But I cant?
Chilling_Silently (228)
147523 2003-05-28 01:17:00 How about I avoid confusion and post the following:

# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are very paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
#
# Allow anonymous FTP?
anonymous_enable=YES
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
anon_upload_enable=NO
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
anon_mkdir_write_enable=NO
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format
#xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
data_connection_timeout=180
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
nopriv_user=anon
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that turning on ascii_download_enable enables malicious remote parties
# to consume your I/O resources, by issuing the command "SIZE /big/file" in
# ASCII mode.
# These ASCII options are split into upload and download because you may wish
# to enable ASCII uploads (to prevent uploaded scripts etc. from breaking),
# without the DoS risk of SIZE and ASCII downloads. ASCII mangling should be
# on the client anyway..
#ascii_upload_enable=YES
josiah
#
# You may override where the log file goes if you like. The default is shown
# below.
xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format
#xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
data_connection_timeout=180
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
nopriv_user=anon
#
# Note on anonymous users.
# Default user is "ftp". The ftp users home dir is defined in /etc/passwd
# The home dir must note be owned or writeable by the "ftp" user


Ive got a user called anon who has one or two files.. not a neccesary user.. just made it to fill in the gaps there...

Here's /etc/vsftpd.ftpusers

# Users that are not allowed to login via ftp
root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody

# vsftpd userlist
# If userlist_deny=NO, only allow users in this file
# If userlist_deny=YES (default), never allow users in this file, and
# do not even prompt for a password.
# Note that the default vsftpd pam config also checks /etc/vsftpd.ftpusers
# for users that are denied.
anon
josiah
muffy


/etc/vsftpd.chroot_list

josiah
muffy

Now Im sure Im missing something obvious here.. im just not sure what ;-)
Chilling_Silently (228)
147524 2003-05-28 01:26:00 Can you paste you conf file again, I think you missed some.

You can email me if it's easier.
joey (2236)
147525 2003-05-28 01:32:00 Okay, will do...

Hey, and its gone Bold?

I didnt do that?!

Thanks
Chilling_Silently (228)
1 2