Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 10-20-2003, 02:31 AM   #1
LQ Newbie
Registered: Aug 2003
Location: Finland/aland
Distribution: Red Hat
Posts: 12

Rep: Reputation: 0
ftp in RH9...


I am in school and trying to setup a red hat 9 server as a www server, ftp server, mail server, domain server and maybe as a router.

but something is worng when i'm trying to setup my ftp server..?

I use VSFTP and it's working, i can download files etc.
but i can't upload something ;(
can't make a directory, and i don't know whats wrong..

This is my configuration in etc/vsftpd/vsftpd.conf is:


i also have i directory with write permissions..

What's going wrong ? any suggestions friends?

Please help..

Old 10-20-2003, 03:33 AM   #2
LQ Newbie
Registered: Oct 2003
Posts: 2

Rep: Reputation: 0
Well, I have no idea at all, and i have the same problem aswell. I really need to know this. So i would be happy if anyone could share me that information.


Last edited by Duzzy; 10-20-2003 at 03:35 AM.
Old 10-20-2003, 03:57 AM   #3
Registered: Dec 2002
Location: Singapore
Distribution: Fedora Core 6
Posts: 647

Rep: Reputation: 30
login as root and type this.

chkconfig vsftpd on

then type this.

Old 10-20-2003, 04:20 AM   #4
LQ Newbie
Registered: Oct 2003
Posts: 2

Rep: Reputation: 0
Hi moe,

Im not really sure what that command did, but it doesnt work for the upload thingy.

Theres another thing I'd like to ask about.

I can make a new user with the start > systemsettings > Users and Groups, first add a group, then add a user and home directory.

Then i can connect from any client in my network with where the x's is the ip to the server, and give my password.

So far so good, I can come to my home directory, d/l files, create new dirs etc.

But now, when I connect with the terminal I give user id and password, getting in my home dir, can make dir, d/l file as usual but, heres the problem, from my home dir, i can simply type the command "cd .." and that brings me to the root dir.

So my question is, Is there any way to disable that, so I cant come "lower" then my home dir ?

Thanks in advance

Last edited by Duzzy; 10-20-2003 at 04:54 AM.
Old 10-20-2003, 08:50 AM   #5
LQ Newbie
Registered: Sep 2003
Location: bracknell
Posts: 12

Rep: Reputation: 0
If you want to stop users going above their home directory you need to restrict them using the chroot command..
This can be a pain to set up - but it is well worth the hassle.

The best way for ftp is to set the user up ONLY to be able to use ftp. you can create ftp sub-logins with a shell of /bin/false (then they cannot login as normal users)

in vsftpd there is a flag that you can set to effectively chroot the user - this will do what you need. (sorry I can't remember which flag, but it has been a long time since I did this.)


ok - found the options - have a look at : this page under chroot_local_user..



Last edited by zovat; 10-20-2003 at 08:56 AM.
Old 10-27-2003, 01:09 AM   #6
LQ Newbie
Registered: Aug 2003
Location: Finland/aland
Distribution: Red Hat
Posts: 12

Original Poster
Rep: Reputation: 0
thx for the info !


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
RH9 FTP install fails moosedrool42 Red Hat 3 02-02-2005 02:56 AM
Secure Backup to RH9 from RH9 or Windows using secured FTP funaroma Linux - General 7 01-03-2005 08:36 AM
Allowing FTP in RH9 jrwizzard Linux - Newbie 1 09-09-2004 03:35 PM
Dedicated FTP HD on RH9 demain Linux - Hardware 1 03-14-2004 12:31 AM
FTP no longer works on RH9 Kellis Linux - Newbie 3 11-18-2003 10:41 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:16 PM.

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