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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ftp login

Status
Not open for further replies.

marghe

Instructor
Joined
Apr 5, 2004
Messages
13
Location
IT
I have 2 server SCO-UNIX link by router.
Some users are the same on both the servers.
I try to put file by ftp from server1 to server2.
Using root it's ok.
Using user 'uno' (it haven't password) login is refused (ftp give me 530 error).
If I try to connect the servers by telnet with user uno, it's ok.

I've write an ftp script but can I use an user without password? How can I do?
Thanks
Dax
 
It depends on your ftp-server.
Having a look at /etc/ftpusers might help.

If not, find out which ftpserver is used (/etc/inetd.conf) and look for it's manual.

If there are still questions come again with more information.
 
Ok, I see that the ftpusers on etc directory don't exist.
On inetd.conf what do I do?

The script is this
ftp -v <<END_FTP
open xxx xxx
user user
bin
put filename filename_destination
close

The problem is:
If I use root that's without password the script don't go.
If I use the command presents in my ftp script with user root goes.
If I use another user don't go again. Also by hand's command.
Why?

 
I don't use SCO but LINUX, so my hints may not match for your system.

But if you have a inetd.conf-file, it might be similar.

For small systems, which aren't meant to be 'a ftp server' (and nothing else), it's a good idea to have a inetd - daemon. This is waiting for requests - http, ftp, telnet to mention the best knowns - echod, chargen, timed to mention some not so well known - but you may as well manage a database-daemon or self-invented daemons too.

Instead of running 3-200 different daemons, doing almost nothing all the time, since there is low traffic on your server, the inetd manages every request, and starts the needed service by demand.

In the /etc/inetd.conf file you find which ftp-daemon is called when an ftp - request occurs, e.g. /usr/sbin/tcpd

With this information you may go further, finding out how to setup this ftpd.

/usr/sbin/tcpd --help

or

man tcpd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top