This is a discussion on Secure vsftpd FTP permissions on anonymous user uploads within the Getting started tutorials forums, part of the Linux Getting Started category; You can configure vsftpd server to set permissions on anonymous uploads. anonymous uploads can be very dangerous if not used ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
|
||||
|
You can configure vsftpd server to set permissions on anonymous uploads. anonymous uploads can be very dangerous if not used correctly.
Open your vsftpd config file: Code:
vi /etc/vsftpd/vsftpd.conf Code:
local_enable=YES write_enable=YES nopriv_user=ftp anonymous_enable=YES anon_upload_enable=YES chown_uploads=YES chown_username=inftpadm ftp_username=inftpadm local_umask=002 anon_umask=007 file_open_mode=0666
Following are general config option Code:
tcp_wrappers=YES xferlog_enable=YES listen=YES pam_service_name=vsftpd userlist_enable=YES dirmessage_enable=YES xferlog_std_format=YES connect_from_port_20=YES ls_recurse_enable=YES chroot_local_user=YES Code:
# /etc/init.d/vsftpd restart Further readings => VSFTP chroot or jail users - limit users to only their home directory howto: http://www.cyberciti.biz/tips/vsftp-...directory.html => VSFTPD docs : http://vsftpd.beasts.org/vsftpd_conf.html |
| Sponsored Links | ||
|
|
|
|||
|
a good start nixCraft, only that unfortunetly the vsftpd has lots of exploits vs to pure-ftpd.
And by the way I do not encourge using the anonymous upload issue, but using the users-base upload much better and more secure + easy to trace. Also I use the jail and use the local_root option to specify a fixed upload area. Sticky bit and SGID are very useful here if you are using it for a group
__________________
LivE Free 0r DiE L!nux rul3z aLL |
|
|||
|
To use the local_root option to share the /var/ftp/pub/share directory add the following:
Code:
local_root=/var/ftp/pub/share Code:
chroot_local_user=YES Yes monk, not every time you disable the anonymous your right with that... But about the pure-ftpd issue this is what I got from asking alot of admin's for me ? I never use somthing rather than vsftpd. Anyway I shall see about the exploit issue and come back to this.
__________________
LivE Free 0r DiE L!nux rul3z aLL |
|
||||
|
Quote:
May be you are comfarable with pure-ftpd |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Adding Users in Bulk + Passwords and permissions | ricksd2sd | Shell scripting | 0 | 04-23-2008 01:20 PM |
| Jailing vsftpd user to home directory | grifs71 | CentOS / RHEL / Fedora | 2 | 12-26-2007 01:56 AM |
| secure smtp and secure POP | shaun_s | Mail Servers | 0 | 12-11-2007 07:56 PM |
| Ubuntu Linux folder permissions | myfoot | Ubuntu / Debian | 1 | 12-01-2007 09:03 PM |
| What is the best way to secure mount point? | chiku | Linux software | 1 | 06-04-2005 12:40 AM |