LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ftp in RH9... (https://www.linuxquestions.org/questions/linux-software-2/ftp-in-rh9-106177/)

straw 10-20-2003 02:31 AM

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,

Duzzy 10-20-2003 03:33 AM

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

moeminhtun 10-20-2003 03:57 AM

login as root and type this.

chkconfig vsftpd on

then type this.

/etc/init.d/vsftpd

Duzzy 10-20-2003 04:20 AM

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

zovat 10-20-2003 08:50 AM

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>

straw 10-27-2003 01:09 AM

thx for the info !


All times are GMT -5. The time now is 01:52 AM.