Linux / UNIX Tech Support Forum
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 ...
|
|||||||
| Getting started tutorials So much to read, so little time! If that is your problem, we have solution. Read our FAQ and tutorials to help you cut through the clutter of information overload. Only members of "contributors" group can post new tutorials. Other members can just reply to thread. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
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
__________________
Vivek Gite Linux Evangelist |
| Sponsored Links | ||
|
|
|
||||
|
B!n@ry,
Quote:
Quote:
To set chroot just add an option in vsftpd.conf file Code:
chroot_local_user=YES |
|
||||
|
B!n@ry/Monk good points about jailing user, just updated post. Keep the information coming
__________________
Vivek Gite Linux Evangelist |
|
||||
|
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 |
![]() |
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 | 23-04-2008 12:20 PM |
| Jailing vsftpd user to home directory | grifs71 | CentOS / RHEL / Fedora | 2 | 26-12-2007 12:56 AM |
| secure smtp and secure POP | shaun_s | Mail Servers | 0 | 11-12-2007 06:56 PM |
| Ubuntu Linux folder permissions | myfoot | Ubuntu / Debian | 1 | 01-12-2007 08:03 PM |
| What is the best way to secure mount point? | chiku | Linux software | 1 | 03-06-2005 11:40 PM |