LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-07-2003, 11:59 AM   #1
JesusAddict3791
LQ Newbie
 
Registered: Jul 2003
Location: Laurel, MD
Distribution: Red Hat 9
Posts: 13

Rep: Reputation: 0
FTP server questions


I'm trying to set up a ftp/http server on Red Hat 9. I was able to get the http part working fine, but I'm running into some problems with ftp. Let me tell you what I've done.

First I enabled vsftpd. I had assumed that there would be something that would allow me to set up ftp accounts, but after searching I haven't been able to find anything to configure the ftp. So I thought that maybe I had to log in via my linux account. I tried it and it worked. The problem was that the ftp home directory was my home directory. I want the ftp home to be the same as the http home, so I changed my linux home to match the http home. This works fine with two exceptions.
1. There's a desktop directory in my http/ftp directory that I don't really want there.
2. There's nothing stopping me from accessing the parent directories through ftp.

To solve the first problem I tried creating a test account without a home directory, then assigning it one afterward. I logged into ftp successfully and there was no desktop. Then I tried logging in locally (which I'd like to be able to do also) and it created the desktop directory. I thought that maybe I could just hide the directory, but I have no clue how to do that.

For problem #2 I tried denying access to the parent directory. Logged in via ftp and I wasn't able to access the parent (good). Logged in locally and everything worked (good). Then I tried to access with http and I had no access to anything (bad). I have no clue what to do about this.

Ok, so here are my questions.
1. Am I even doing this right in the first place? If not, how should I be doing it?
2. Assuming that I'm on the right track, how do I get rid of (or at least hide) the desktop directory?
2b. If hiding the directory is not the answer, how would I hide a file/directory?
3. How do I restrict ftp access without totally blocking http access?

Last edited by JesusAddict3791; 11-07-2003 at 12:01 PM.
 
Old 11-07-2003, 12:07 PM   #2
joesbox
Member
 
Registered: Feb 2003
Location: hampton va
Distribution: ubuntu
Posts: 502

Rep: Reputation: 30
look in /etc/vsftp/ for a vsftp.conf file. this will be the file that you need to edit to make vsftp to work the way you need. also when you are done configing it you will have to mv it to /etc/. i have read in another part of the LQ site that it needs to be there for it to work properly.

ref::
http://www.linuxquestions.org/questi...003/08/4/61817
 
Old 11-07-2003, 12:48 PM   #3
JesusAddict3791
LQ Newbie
 
Registered: Jul 2003
Location: Laurel, MD
Distribution: Red Hat 9
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks joesbox! That explains a lot of things.
I didn't see any answer's to my original questions in the file though.

I still want to know how I can get rid of/hide the desktop directory and how to keep ftp users from moving up through the parent directory.
 
Old 11-07-2003, 04:00 PM   #4
joesbox
Member
 
Registered: Feb 2003
Location: hampton va
Distribution: ubuntu
Posts: 502

Rep: Reputation: 30
i think that within the vsftp.conf (which is supposed to be very well documented) there is an access restriction type section. i am not sure since i only started working on RH9 at work and have not gotten to the ftp portion but i think that a lot of your answers there about the parent dir.
as far as the desktop dir you can change the permissions (chmod) to 700 and only allow the owner full access and chown the folder to a user that doesn't have ftp access.
 
Old 11-07-2003, 04:17 PM   #5
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Well you do not require to chmod it to a user not having ftp access and also you can still move out of the initial root directory if you do not chroot the user to it.

For a tutorial check out:
http://www.markus-welsch.de/linux/services/ftp.html
 
  


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
ftp server - Pure ftp - logs in OK but no files visible tp11235 Linux - Networking 2 08-30-2005 05:11 AM
FTP Server Up and running... how do I hide ftp users from local login screen? joe1031 Mandriva 2 03-18-2005 04:24 PM
Questions regarding FTP server stuff... Gormless Linux - Networking 1 11-09-2004 07:39 AM
ftp server questions jagaholic Linux - Newbie 1 08-06-2003 06:49 AM
how can I restrict ftp users listing files from a pure-ftp server adrianmak Linux - Networking 2 12-31-2002 08:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:19 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