Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

redhat linux 9.0 as FTP server 2

Status
Not open for further replies.
Jun 11, 2003
88
US
hi
i am a linux newbie but i am in the process of setting up a linux redhat 9.0 machine to be used as an FTP server.
i can sucessfully see the machine from my windows XP machine when i type in the IE address window (in this case 192.168.1.223) and see the pub folder. but when i try to put anything into that folder i get the following error message

File folder error
an error occurred copying a file to the FTP server. Make sure you have permission to put files on the server.

Details
200 switching to Binary mode
200 PORT command sucessful. Consider using PASV.
550 Permission denied.

my questions are
1) what do those errors mean exactly ? (i know they have to do with permissions but i would like to know more detail than that. :))
2) how do i configure the linux box to gain permission to copy files into and out of it?
3) what is PASV?

any help or links that you can give would be great

thanks in advance

peace
david
 
PASV is "passive" mode, it is a generally more likely method of selecting ports (between the machines) to allow FTP data and control traffic to pass through networks, firewalls, etc.

I believe you have a user-level access problem. You are probably signing in through your browser as an anonymous user (by typing a plain URL with no username:password@ftp_ip/).

Linux normally has files in the /etc directory that look like 'ftpuser' or somesuch (varies by distribution).

look for those files in the /etc/ folder and either read them or try 'man ftpuser' (the filename you find).

There are many different FTP server daemons as well and they all implement this differently.
Essentially,
1) create a linux user
2) add them properly to the ftp server files
3) login

There are some gymnastics to address adding the "anonymous" or "guest" users and determine their rights to read, write, etc.... That's another exercise entirely.

Good luck.
D.

"Surfinbox Shares" - A fundraising program that builds revenue from dialup Internet users.
 
Good morning,

By default, redhat 9 uses vsftp as the ftp server, which automaticly allows anonymous ftp logins and has loca user logins disabled. It is very likely that you have logged into the server as an anonymous user, which explains why the server is not prompting you for a username and password. If you want to be able to login the server as a particular user, you will need to uncomment out the following line from vsftp's configuration file(/etc/vsftpd/vsftpd.conf):

local_enable=YES

Once this line has been uncommented out, you can restart vsftp with the following command:

/etc/rc.d/init.d/vsftpd restart

For security reasons, you are unable to write to the /var/ftp directory. If you change the permissions of this directory to allow anyone to write to it, vsftp will not work at all, as it will find it very unsecure and it will show you an error similiar to the following:

*** BEGINNIG ***
Unexpected response: OOPS: vsftpd: refusing to run with writable anonymous root
OOPS: vsftpd: refusing to run with writable anonymous root
OOPS: child died
Redialing (try 1)...
(vsFTPd 1.1.3)
Unexpected response: OOPS: vsftpd: refusing to run with writable anonymous root
OOPS: vsftpd: refusing to run with writable anonymous root
OOPS: child died
qleeping 20 seconds...
*** END ***

If you are looking to have users login your server to ftp data, I suggest creating users and allowing each to upload content individually. i hope you find this information useful and let me know if I can be or further assistance.

dprovenger,
RHCE
dprovenger@unixtx.com
 
i uncommented out the local_enable=yes line as suggested but still got the same error message, any further suggestions?


the user name is listed on the linux box how do i add them to the ftp files as suggested in the first response?

peace
david
 
i went to the redhat site and did the following at at terminal window
mkdir /var/ftp/pub/upload


chmod 730 /var/ftp/pub/upload



i also added the following line to the /etc/vsftpd/vsftpd.conf file

anon_upload_enable=yes

now i am getting the following error message when i try to write to it

an error occured opening the folder on the FTP server. make sure you have permission to access this folder.

Details
550 Failed to change directory

david

when i did that
 
Hi

Does "ls" work, or does that give the same error???

Are these two boxes on the same network????

Simon
 
both boxes are on the same network.

actually by looking at some docs that i found on a google search i got past the 550 error and now get a logon screen
when i input my username and password (as set by using the following : useradd -g ftp-users -d /home/ftp-docs <username>
passwd <username>)

but the redhat box still wont give me access, saying it cannot log on with the username and password provided.
so i feel i am getting there to having access but still am missing a step somewhere.

david
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top