Powered by Invision Power Board


  Reply to this topicStart new topicStart Poll

> ftp setup, how to ftp
gaujun
Posted: Mar 3 2004, 10:34 PM
Quote Post


Newbie
*

Group: Members
Posts: 4
Member No.: 200
Joined: 3-March 04



Ok, I'm new to unix, so if you give any ideas, tell me exactly what to do. I have a network setup running windows machines. I just added a sun box to the network. Now I want to be able to ftp from my windows machines to my sun box. Everything seems to me to be correctly set up by someone on the sun box to allow ftp. But when i try to ftp to my sun box, it says:

Connected to Sun.
Connection closed by remote host.

So how can I make it that the sun box will allow the computer i'm sitting at to ftp to it? What kind of settings do I need to do on the sun machine?
PMEmail Poster
Top
fishsponge
Posted: Mar 4 2004, 02:23 AM
Quote Post


Administrator
********

Group: Admin
Posts: 679
Member No.: 1
Joined: 13-February 03



first of all, check that you can FTP from the Sun box to itself... If you can do that, then check /etc/hosts.allow and /etc/hosts.deny and post them on here in [code] tags.

It seems strange because Sun boxes, in my experience, accept FTP connections from any machine as standard...
PMEmail PosterUsers WebsiteICQAOLYahooMSN
Top
gaujun
Posted: Mar 4 2004, 04:22 PM
Quote Post


Newbie
*

Group: Members
Posts: 4
Member No.: 200
Joined: 3-March 04



I tried ftp to itself, and it didn't work. Now what?
PMEmail Poster
Top
fishsponge
Posted: Mar 6 2004, 10:20 PM
Quote Post


Administrator
********

Group: Admin
Posts: 679
Member No.: 1
Joined: 13-February 03



can you post the error messages, and commands you ran? without them, i don't know why it didn't work.
PMEmail PosterUsers WebsiteICQAOLYahooMSN
Top
gaujun
Posted: Apr 6 2004, 10:02 PM
Quote Post


Newbie
*

Group: Members
Posts: 4
Member No.: 200
Joined: 3-March 04



Ok, I think my sun box is missing some files thats why it can not ftp. Now I do have the os installation discs. Now how do I go about installing the proper files? You will need to give me the exact commands, because like I said,I'm not a unix user.
PMEmail Poster
Top
gaujun
Posted: Apr 6 2004, 10:07 PM
Quote Post


Newbie
*

Group: Members
Posts: 4
Member No.: 200
Joined: 3-March 04



Oh again, i'm not trying to ftp out from the sun box, but to try and allow others to ftp to it. I'm not sure what files are missing, but if there is a way that I can just reinstall the ftp packages, and get it to work that would be great. If there is more to it than just installing the proper files, please include instructions on what to do after installation so I can get the ftp server to accept connections.

thanks
PMEmail Poster
Top
fishsponge
Posted: Apr 7 2004, 11:25 AM
Quote Post


Administrator
********

Group: Admin
Posts: 679
Member No.: 1
Joined: 13-February 03



well... after installation, the FTP server should just be running! That's if you reboot... otherwise, i suggest you have a look in /etc/rcx.d (where x is a number between 1 and 5, but probably 2 or 3) for the FTP startup script.

i'm afraid i don't know which files you need to install either, and i also don't know how to install them.
PMEmail PosterUsers WebsiteICQAOLYahooMSN
Top
L1-a
Posted: Apr 7 2004, 03:57 PM
Quote Post


User Level: 2
**

Group: Members
Posts: 12
Member No.: 18
Joined: 22-February 03



FTP on Solaris is enabled by default as was said. Those users specified in /etc/ftpusers cannot use the FTP service. Also, by default, root is in the /etc/ftpusers file, starting with Solaris 7 or 8. This might explain the message you are seeing.

FTP requests are handled by the super daemon as specified in /etc/inetd.conf.

CODE

# fgrep in.ftpd /etc/inetd.conf
ftp     stream  tcp6    nowait  root    /usr/sbin/in.ftpd       in.ftpd
#


If /usr/sbin/in.ftpd is not installed, then you need the following packages, man pages being optional of course.

CODE

# nawk '/in.ftpd/ { print $NF }' /var/sadm/install/contents
SUNWftpu
SUNWman
#
PMEmail Poster
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | Web Servers & FTP Servers | Next Newest »

Topic Options Reply to this topicStart new topicStart Poll

 



[ Script Execution time: 0.1637 ]   [ 12 queries used ]   [ GZIP Enabled ]




Partners: Cambridge Plus :: <Link Available> :: 3D Mechanical Design :: <Link Available>
Unix Man Pages / Linux Man Pages :: HiFi Forum :: SIP VoIP Phone & Provider Reviews :: UNIX/Linux Forum Archives

More info on advertising on Unix/Linux Forum