LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 12-31-2006, 09:49 PM   #1
PhillipHuang
Member
 
Registered: Aug 2006
Location: Shen Zhen
Distribution: Ubuntu 22.04
Posts: 199

Rep: Reputation: 33
vsFTP permission problem


Happy new year, folks,

Assume there's two lines in /etc/vsftpd/vsftpd.conf
Code:
userlist_enable=YES
userlist_deny=NO
I know that "userlist_enable=YES" command points to a list of disabled users in /etc/vsftpd.user_list. and when I read "/etc/vsftpd.user_list", which begins with following comments:
Code:
# 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.
Hmm, I'm confused by the previous two lines, if I add "phillip" account to "/etc/vsftpd.user_list", it is possible to use "phillip" to login ftp with relative password. however, "userlist_enable=YES" command points to a list of DISABLED users in /etc/vsftpd.user_list, this restriction seems to not take effection.

What's the order for "userlist_enable" and "userlist_deny" restrictions? is it just querying as tcpwrapper(host.allow, host deny, and no match=access granted)?

Thanks in advance.
Phillip
 
Old 12-31-2006, 11:11 PM   #2
kotnik
Member
 
Registered: Nov 2004
Location: Novi Sad, Serbia
Distribution: Debian, Slackware, Gentoo, openSuSE
Posts: 254

Rep: Reputation: 31
The way it works is this:

Code:
 if userlist_enable=YES
  then check userlist_deny
    if userlist_deny=NO, only allow users in this file
    else if userlist_deny=YES (default), never allow users in this file
If userlist_enable is set to NO, then userlist_deny option won't be even considered.
 
Old 12-31-2006, 11:57 PM   #3
PhillipHuang
Member
 
Registered: Aug 2006
Location: Shen Zhen
Distribution: Ubuntu 22.04
Posts: 199

Original Poster
Rep: Reputation: 33
I see. Thank you, Kotnik.
 
  


Reply



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
vsftp 550 Permission denied and upload limitation problem jchibbra Linux - Networking 1 02-16-2007 02:25 PM
vsftp problem Ypnos Red Hat 2 11-24-2006 03:53 AM
Vsftp Upload/Download permission acbenny Linux - Networking 7 08-02-2004 03:31 PM
Vsftp upload/download permission acbenny Linux - General 0 07-28-2004 10:17 AM
vsftp umask and permission problem dagalicous Linux - Software 2 10-22-2003 08:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 04:36 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
Open Source Consulting | Domain Registration