LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 11-14-2003, 12:00 PM   #1
clau_bolson
Member
 
Registered: Nov 2003
Location: Argentina
Distribution: Debian Sarge
Posts: 52

Rep: Reputation: 15
vsftpd - "real" vs. "virtual" users


Hi, I'm setting up a new webserver and FTP server.
The idea is this:
Owners of websites (identified by name and password) must be able to make changes to their home directories.
Anonymous user is only able to download files from user ftp home directory.

Using vsftpd, I want to know if there is a difference regarding security between:

a. users are real users, with no shell access
chroot_local_user=YES
userlist_enable=YES
userlist_deny=NO
userlist_file=/etc/vsftpd.user_list

and

b. users are all virtual, only one real user and guest_enable=YES, then mapping everyone to their home directory as explained in the man page.

Thanks
 
Old 11-17-2003, 06:02 AM   #2
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
anonymous-like users have more restrictive write permissions; like anon-users are not allowed to chmod & similar. when configured properly (non-anon-users) there is just a slight difference (http://www.linux-corner.net/linux/services/ftp.html)
 
Old 11-17-2003, 07:22 AM   #3
clau_bolson
Member
 
Registered: Nov 2003
Location: Argentina
Distribution: Debian Sarge
Posts: 52

Original Poster
Rep: Reputation: 15
Thanks Markus, your page explains very well what I need.
- BUT -
I need anonymous logins too, because we offer to our users (we are an ISP) to download NAV updates directly from our site (a must for those who have "mail only" service), and other useful program.
So, will this configuration be safe enough?
(*** are my changes)

anon_world_readable_only=NO
*** anonymous_enable=YES ***
*** anon_upload_enable=NO ***
chroot_local_user=YES
guest_enable=YES
*** guest_username=virtual ***
hide_ids=YES
listen=YES
listen_address=xx.xx.xx.xx
local_enable=YES
max_clients=100
max_per_ip=1
nopriv_user=ftp
pasv_max_port=65535
pasv_min_port=64000
session_support=NO
use_localtime=YES
user_config_dir=/etc/vsftpd/users
userlist_enable=YES
userlist_file=/etc/vsftpd/denied_users
xferlog_enable=YES

anon_umask=0027
async_abor_enable=YES
connect_from_port_20=YES
dirlist_enable=NO
*** download_enable=YES ***

/etc/vsftpd/users/user1

anon_mkdir_write_enable=YES
anon_other_write_enable=YES
anon_upload_enable=YES
dirlist_enable=YES
download_enable=YES
local_root=/home/user1
write_enable=YES

One more question, should I add "virtual" to the list of denied users?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 6 03-21-2013 11:35 AM
what is "sticky bit mode" , "SUID" , "SGID" augustus123 Linux - General 10 08-03-2012 05:40 AM
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 12:26 PM
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 04:07 PM
"adduser" not adding users to default group "users" PunkPT Slackware 2 09-23-2004 12:50 PM


All times are GMT -5. The time now is 04:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration