LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-10-2002, 01:45 AM   #1
lzyking
Member
 
Registered: Dec 2002
Posts: 74

Rep: Reputation: 15
Post how to deny all users in vsftp except one?


I use Redhat 8.0 , and vsftp , now I want to deny all users in vsftp except one user , I found that there are 3 files in /etc/

how can i do ? Dose someone have articles intruduce vsftp?

thanks
 
Old 12-10-2002, 04:17 AM   #2
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
edit /etc/vsftpd.conf and add the following:

userlist_enable=YES
userlist_deny=YES
userlist_file=/etc/vsftpd.user_list

Then edit /etc/vsftpd.user_list and add he usernames that you want to deny ftp access. You can do this the other way around (add the users that you will 'allow to ftp'). run this:

man vsftpd.conf

And do a search for options starting with 'userlist_'.
 
Old 12-10-2002, 06:26 AM   #3
hotrodowner
Member
 
Registered: Mar 2002
Distribution: Too many to count
Posts: 368

Rep: Reputation: 30
Can you do that with wu-ftpd or is only for that secure server?
 
Old 12-11-2002, 05:40 AM   #4
lzyking
Member
 
Registered: Dec 2002
Posts: 74

Original Poster
Rep: Reputation: 15
thanks , but I have a new question
now, when user use ftp ,they can see other people's directory,I think this is not security, but I don't know how to configure my vsftp to avoid it.
 
Old 12-11-2002, 06:01 AM   #5
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
Quote:
Originally posted by hotrodowner
Can you do that with wu-ftpd or is only for that secure server?

u can do that with wu-ftpd in a different way. what i suggested is only for vsftpd
 
Old 12-11-2002, 06:07 AM   #6
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
Quote:
Originally posted by lzyking
thanks , but I have a new question
now, when user use ftp ,they can see other people's directory,I think this is not security, but I don't know how to configure my vsftp to avoid it.
you can. edit /etc/vsftpd.conf and uncomment the following lines:

chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list

Now, create the file /etc/vsftpd.chroot_list and add the usernames you want to jail to their home directory.


u can do this with wu-ftp. i'm digging my notes for that but i think i lost it.
 
Old 12-11-2002, 06:28 PM   #7
hotrodowner
Member
 
Registered: Mar 2002
Distribution: Too many to count
Posts: 368

Rep: Reputation: 30
Sorry to invade on your post, but I need to know this.
How do you deny anyone but anonymous to use the wu-ftpd server?
 
Old 12-11-2002, 10:02 PM   #8
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
check /etc/ftpaccess. not sure how to set that up but you need to set the uid/gid of the users that you don't want to have ftp access.
 
  


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
ssh: deny all users, except one hamish Linux - Security 13 09-07-2008 07:58 PM
HowTo sshd deny all users except for one? mattengland Linux - Security 28 11-04-2007 02:53 PM
VSFTP Virtual users Rage79 Linux - Security 7 01-10-2005 06:57 AM
Add VSFTP Users Gjallis Linux - Software 1 06-26-2003 04:52 PM
Deny some users access to the web with IPtables? osX-linux Linux - Networking 4 06-22-2003 01:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:45 PM.

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