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-20-2003, 03:31 AM   #1
straw
LQ Newbie
 
Registered: Aug 2003
Location: Finland/aland
Distribution: Red Hat
Posts: 12

Rep: Reputation: 0
ftp in RH9...


Halluu..

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:

anonymous_enable=YES
local_enable=YES
local_umask=022
anon_upload_enable=YES
anon_mkdir_write_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
ascii_upload_enable=YES
ascii_download_enable=YES
pam_service_name=vsftpd
userlist_enable=YES
listen=YES
tcp_wrappers=YES

i also have i directory with write permissions..

What's going wrong ? any suggestions friends?

Please help..

Regards,
 
Old 10-20-2003, 04:33 AM   #2
Duzzy
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.

Cheers

Last edited by Duzzy; 10-20-2003 at 04:35 AM.
 
Old 10-20-2003, 04:57 AM   #3
moeminhtun
Member
 
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.

/etc/init.d/vsftpd
 
Old 10-20-2003, 05:20 AM   #4
Duzzy
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 ftp://user@xxx.xxx.xxx.xxx 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 05:54 AM.
 
Old 10-20-2003, 09:50 AM   #5
zovat
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.)

<edit>

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

HTH

</edit>

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

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


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


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