LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-11-2002, 12:38 PM   #1
BamaFeva
LQ Newbie
 
Registered: Oct 2002
Distribution: RedHat 8.0
Posts: 9

Rep: Reputation: 0
vsFTP on RedHat 8.0 .. help!!


I am trying to setup vsftp but am having 1 main problem and I cannot find any good documentation on the program. I can get the ftp to work and I can login using the account I made. However, it lets me access like every file/directory on the hd. How can I make it to where the user cannot go past the ftp home directory. I know it has to do with permissions but I am still new to linux and do not know exactly how to do it yet. Any help would be appreciated.

Last edited by BamaFeva; 10-18-2002 at 02:40 PM.
 
Old 10-11-2002, 12:55 PM   #2
te_conway
Member
 
Registered: Apr 2001
Location: MA
Distribution: redhat 7.2
Posts: 182

Rep: Reputation: 30
chroot_local_user=YES

You should setup users who have no-shell accounts for ftp. Put them in one group and give them no privleges.
If you use regular user accounts and they are compromised which can easly happend with ftp, then someone could access your server via telnet or ssh.

Link to setup no-shell accounts

http://www.tldp.org/LDP/solrhe/Secur...p29sec295.html
 
Old 10-14-2002, 04:19 PM   #3
BamaFeva
LQ Newbie
 
Registered: Oct 2002
Distribution: RedHat 8.0
Posts: 9

Original Poster
Rep: Reputation: 0
I did have chroot_local_user=YES already set but not using it correctly I guess. I read the chapter on the link you sent and tried that as well. I have /usr/ftp setup to be the main directory with each user having their own directory inside. I have got the web server up and running which uses the same directory (public_html directory inside each user directory inside /usr/ftp) and I want to be able to access that directory using ftp to upload files, etc. I changed the users to have no shells. Am I only supposed to make 1 ftp user acct and then make virtual users for the ftp? I'm just trying to learn how all this works and to get it working. Any suggestions would be appreciated. Thanks for the help.

Last edited by BamaFeva; 10-14-2002 at 04:42 PM.
 
Old 12-16-2002, 11:46 PM   #4
v8625
LQ Newbie
 
Registered: Sep 2002
Posts: 11

Rep: Reputation: 0
What about those user accounts?

OK, All this was very helpful, but what's teh right way to set up those user accounts. I have a default setup - 'as is' after RedHat 8.0 installation - it allows anonymous user downloads, but no uploads. I guess I need to create a directory for that? And/or change permissioning on existing directories? Which one(s)? And what account is user anonymous using?


Quote:
Originally posted by BamaFeva
I did have chroot_local_user=YES already set but not using it correctly I guess. I read the chapter on the link you sent and tried that as well. I have /usr/ftp setup to be the main directory with each user having their own directory inside. I have got the web server up and running which uses the same directory (public_html directory inside each user directory inside /usr/ftp) and I want to be able to access that directory using ftp to upload files, etc. I changed the users to have no shells. Am I only supposed to make 1 ftp user acct and then make virtual users for the ftp? I'm just trying to learn how all this works and to get it working. Any suggestions would be appreciated. Thanks for the help.
 
Old 12-17-2002, 04:17 AM   #5
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
dude, check this thread:

http://www.linuxquestions.org/questi...threadid=37818
 
Old 12-17-2002, 05:46 PM   #6
Cynthia Blue
Member
 
Registered: Dec 2002
Location: SLC Utah USA
Distribution: SuSe 9.1
Posts: 102

Rep: Reputation: 15
Quick vsftp questions which is pretty related to this thread... I want to change the default vsftp directory to something else, a directory I specify that is not related to the user's home directory. How would I do that?

Thanks.
 
Old 12-18-2002, 12:54 AM   #7
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
Quote:
Originally posted by Cynthia Blue
Quick vsftp questions which is pretty related to this thread... I want to change the default vsftp directory to something else, a directory I specify that is not related to the user's home directory. How would I do that?

Thanks.
try this settings in vsftpd.conf:

chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
local_root=/iso

what will these do? if user1 is in the vsftp.chroot_list, he will be chrooted to /iso when he ftps to your machine. If user2 is not in the chroot list and he makes an ftp connection, the default directory will be /iso but he can still cd into his home directory ( ie cd /home/user2).

You might want to experiment with vsftp.conf. check the man page for vsftpd.conf

btw, user1 and user2 are real users.

Last edited by born4linux; 12-18-2002 at 12:55 AM.
 
Old 12-19-2002, 01:29 PM   #8
Cynthia Blue
Member
 
Registered: Dec 2002
Location: SLC Utah USA
Distribution: SuSe 9.1
Posts: 102

Rep: Reputation: 15
Thank you I will definitely try it out and experiment some.
 
Old 06-22-2003, 07:01 AM   #9
bodila
LQ Newbie
 
Registered: Jun 2003
Location: bucharest, romania
Distribution: RH8
Posts: 1

Rep: Reputation: 0
hi all,

regarding this problem,
i am using vsftp,
how can i lock different users to different places?
 
  


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
i Got 1 Harddisk with Win XP & RH8 Dual Boot,will WinXP perform slower coz i got RH8? kublador Linux - General 4 08-28-2003 12:32 AM
vsFTP on RH8.0 help needed hau Linux - Networking 1 08-14-2003 09:36 PM
i just installed a stock RH8 and heard that reiserfs is cool. can i use it in my RH8? kublador Linux - Software 16 08-06-2003 08:03 AM
RH8 + vt82c686b southbridge.. do i still need a via 4in1 driver in RH8? kublador Linux - Software 0 06-12-2003 02:02 PM
question of vsFTP on RH8 sieeus Linux - Software 1 10-21-2002 09:29 AM

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

All times are GMT -5. The time now is 08:14 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration