LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-10-2003, 03:33 AM   #1
sudhir
Member
 
Registered: Feb 2003
Distribution: redhat
Posts: 58

Rep: Reputation: 15
Setting up FTP ....


Hi all

I am using a Red Hat Linux 7.3. And now I am planning to install VMWare, and use it for Windows.

But I am not sure about how to set up an FTP / Telnet connection between my host (Linux machine) and VMWare.. I came across two things, namely Bridge Networking and Host-Only networking. But I am not sure as to how this will help me enable my FTP.

I heard that I ahve to kinda enable or activate the FTP server in my host machine, which in this case, is a Linux Red Hat 7.3....

I would be very happy if you could help me with this..

Hope U can understand what I am asking... thanks a lottt..

-- SS...
 
Old 02-10-2003, 02:03 PM   #2
SlickWilly
Member
 
Registered: Dec 2002
Posts: 327

Rep: Reputation: 30
This package is what you want :

wu-ftpd-2.6.2-5.i386.rpm

install it - rpm -i <name>

run up2date to patch it.

Read up on how to configure it to your taste and you should be good to go.
 
Old 02-10-2003, 09:08 PM   #3
sudhir
Member
 
Registered: Feb 2003
Distribution: redhat
Posts: 58

Original Poster
Rep: Reputation: 15
Thanks, but still........

Thanks a lot for your reply..

I got the ftpd file downloaded.. But at the same time, yesterday I also noticed tat there is a kwuftpd in my comp as well...

I guess the ftp daemon is alreayd installe, but I need to activate it..

I checked few docs on how to do it, and they mentioned about editing the inetd file.. in my case it is xinetd .. but I cant see any provision or mention about ftp, and stuff..

I am not a comp pro or even an amateur for tat matter. So could you please help me with how to edit the xinetd file and setting up the FTP server..

Thanks again.....
 
Old 02-10-2003, 10:54 PM   #4
ELHMMM
LQ Newbie
 
Registered: Feb 2003
Location: Sydney
Posts: 3

Rep: Reputation: 0
Hi sudhir try this:

1) In the /etc/xinetd.d/wu-ftpd file, change the code line disable = yes to disable = no. This will allow the FTP service to be activated.

2) At the command line, enter /etc/rc.d/init.d/xinetd restart to enable the FTP serice on your machine.

cheers and good luck.
 
Old 02-11-2003, 12:18 AM   #5
sudhir
Member
 
Registered: Feb 2003
Distribution: redhat
Posts: 58

Original Poster
Rep: Reputation: 15
Hmmmmmmm

Well well...

Luks like am in the middle of a long tunnel now.. cant find a way either side.. :-((

neway... thanks EL for ur msg..

I cud spot the /etc/xinetd.d file.. But I cud not see any wu-ftpd file there.. here is a screen view for you..
*****************************
[root@malar xinetd.d]# ls -lt
total 72
-rw-r--r-- 1 root root 370 Apr 18 2002 imap
-rw-r--r-- 1 root root 365 Apr 18 2002 imaps
-rw-r--r-- 1 root root 453 Apr 18 2002 ipop2
-rw-r--r-- 1 root root 359 Apr 18 2002 ipop3
-rw-r--r-- 1 root root 335 Apr 18 2002 pop3s
-rw-r--r-- 1 root root 267 Apr 18 2002 kotalk
-rw-r--r-- 1 root root 267 Apr 18 2002 ktalk
-rw-r--r-- 1 root root 392 Apr 8 2002 sgi_fam
-rw-r--r-- 1 root root 297 Apr 5 2002 chargen
-rw-r--r-- 1 root root 317 Apr 5 2002 chargen-udp
rw-r--r-- 1 root root 297 Apr 5 2002 daytime
-rw-r--r-- 1 root root 317 Apr 5 2002 daytime-udp
-rw-r--r-- 1 root root 289 Apr 5 2002 echo
-rw-r--r-- 1 root root 308 Apr 5 2002 echo-udp
-rw-r--r-- 1 root root 314 Apr 5 2002 servers
-rw-r--r-- 1 root root 312 Apr 5 2002 services
-rw-r--r-- 1 root root 321 Apr 5 2002 time
-rw-r--r-- 1 root root 317 Apr 5 2002 time-udp
[root@malar xinetd.d]# pwd
/etc/xinetd.d
******************************

One file I was luking at was the "servers" ... there was some kinda of "disable = yes" thing I found there.. But I dun know tat is wat U r saying... :-|

Neway..... me does not know wat to say, but keep doin all that U people ask me to do.. Luking forward to ur help.. thanks again EL .. )
 
Old 02-11-2003, 09:30 AM   #6
SlickWilly
Member
 
Registered: Dec 2002
Posts: 327

Rep: Reputation: 30
You didn't install the package.

I'm not entirely sure what the 'k' version is, but I'd bet a month's mortgage it's a KDE client...

Go install the package listed above. It'll stick a file in your /etc/xinetd.d directory called wu-ftpd which looks like this :

# cat wu-ftpd
# default: on
# description: The wu-ftpd FTP server serves FTP connections. It uses \
# normal, unencrypted usernames and passwords for authentication.
service ftp
{
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.ftpd
server_args = -l -a
log_on_success += DURATION
nice = 10
disable = yes
}


Change the 'disable = yes' to no, and as EL says.. restart your init daemon.

Slick.
 
Old 02-11-2003, 08:56 PM   #7
sudhir
Member
 
Registered: Feb 2003
Distribution: redhat
Posts: 58

Original Poster
Rep: Reputation: 15
Thanks Slick & EL ..

Yes.. its a KDE ..

I installed the wu-ftpd, but it did not place a file in the /etc/xinetd.d dir... I uninstalled it and installed it again.. but theres no file..

So wat I want to know is that whether I can manually place the file as *Slick* mentioned, and restart xinetd ???

Please let me know about this.. thanks again for ur help.. Hope I shud get this done soon.. assuming I am almost there
 
Old 02-11-2003, 08:57 PM   #8
sudhir
Member
 
Registered: Feb 2003
Distribution: redhat
Posts: 58

Original Poster
Rep: Reputation: 15
I am sorry...

Slick did not mention about placing the file manually.. I was referring to whether I can use Slick's message as a template for placing the file manually..

Sorry for the error..
 
Old 02-11-2003, 09:49 PM   #9
sudhir
Member
 
Registered: Feb 2003
Distribution: redhat
Posts: 58

Original Poster
Rep: Reputation: 15
Hii Slick / EL ...

Thanks a lot friends.. I got the file but cud not install properly becos the rpm was for i386, while my comp was an i686 .. so I got the rpm for i686, and installed it and a file called, wu-ftpd was placed in /etc/xinetd.d dir..

The following is the contents of the file.. Though I cud not see any line with "disable" in it ... So I assume that the server is active by default !!!!! Is my assumption correct ??? becos, when I tried to see whether the server is active by doing "ftp localhost" at the command prompt, I cud connect up and with my user name and password, without any problem .... so I assume the server is active ... Please tell me whether I shud edit this file by putting in the line for "disable" ????? Or shud I leave it alone ???????

# default: on
# description: The wu-ftpd FTP server serves FTP connections. It uses \
# normal, unencrypted usernames and passwords for authentication.
service ftp
{
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.ftpd
server_args = -l -a
log_on_success += DURATION USERID
log_on_failure += USERID
nice = 10
}

And as some websites mentiones, I tried doin chkconfig or /sbin/chkconfig kwuftpd ... Nuttin happens.. it simply shows up the command prompt ????? Is this what happens is the installation is OK and if the server is up and running ?????

Hope I am not troubling You too much .. luking forward to ur help, which I hope will be the last step ...

Cheerrrrssssss )
 
Old 02-11-2003, 09:57 PM   #10
ELHMMM
LQ Newbie
 
Registered: Feb 2003
Location: Sydney
Posts: 3

Rep: Reputation: 0
Hi sudhir ...then just add the

disable = yes

under the nice = 10 and then restart the service...

service xinetd restart
 
Old 02-11-2003, 10:50 PM   #11
sudhir
Member
 
Registered: Feb 2003
Distribution: redhat
Posts: 58

Original Poster
Rep: Reputation: 15
Thanks EL ..

I put in the line under nice = 10..

It goes like this..

disable = yes

But I guess, I shud change it back to no .. I mean

disable = no

For the server to be active right ???

Neway.. tats what I did.. and restarted xinetd ... shutting down was OK and Starting was OK too .. Hope things are fine then !!!!

Cheeerrrssss )
 
Old 02-12-2003, 12:59 PM   #12
SlickWilly
Member
 
Registered: Dec 2002
Posts: 327

Rep: Reputation: 30
Um.. indeed.

disable=yes

will disable your server. I occasionally have need of one, althuogh I can't for the life of me think when it last happened. So my configuration has it turned off by default.

You would need to change it to 'no', for it to run.

*PLEASE* run up2date.

up2date -l

lists updates available. Look for your wu-ftp and then :

up2date wu-ftp

to install patches. If you leave the default package up on the internet you'll be down faster than a whore's drawers.

to check the boot-ness of your services run :

chkconfig --list

At the bottom you'll see :

xinetd based services:
wu-ftpd: off

Or in your case.. on.

Slick.
 
Old 02-12-2003, 09:16 PM   #13
sudhir
Member
 
Registered: Feb 2003
Distribution: redhat
Posts: 58

Original Poster
Rep: Reputation: 15
Thanks Slick )

I did wat U said, and things were fine.. The following is the screen grab of wat I saw !!!

[root@malar sudhir]# up2date wu-ftpd

Retrieving list of all available packages...
########################################

Removing installed packages from list of updates...
########################################

Removing packages with files not specified from list...

Removing packages marked to skip from list...
########################################

Getting headers for available packages...
########################################

Removing packages with files marked to skip from list...
########################################

Testing package set / solving RPM inter-dependencies...
########################################
Retrieving selected packages...
wu-ftpd-2.6.2-5.i386.rpm: ########################## Done.
Preparing... ########################################### [100%]
1:wu-ftpd warning: /etc/xinetd.d/wu-ftpd created as /etc/xinetd.d/wu-ftpd.rpmnew
########################################### [100%]

In the end, U can see a line which says, "warning......

Is that okey ??? Or is nething wrong ??? I mean.. Now I have two wu-ftpd files in my /etc/xinetd.d dir.. one is wu-ftpd and the other is this wu-ftpd.rpmnew !!! Are things fine .. I cant make out..

And also, I cud not do chkconfig... it says command not found ... ( I tried ckconfig too.. but tis not working..

-- SS
 
Old 02-13-2003, 09:41 AM   #14
SlickWilly
Member
 
Registered: Dec 2002
Posts: 327

Rep: Reputation: 30
My bad..

chkconfig is kept in /sbin

/sbin is 'programs for 'superuser'' (ie, root) and is not placed on your path by default.

When you type a command at a prompt it'll look in your path for the location of that command. It goes through all the directories and if it doesn't find it there, will say 'command not found.'

There's a reason /sbin isn't included in your path, mostly security related. So you can type the full pathname to the program :

/sbin/chkconfig --list

Should you ever come across this problem again - people telling you to run a command, that you can't find on your machine - you can run locate to find it :

locate chkconfig

gives :

[root@randalf root]# locate chkconfig
/usr/share/man/man8/chkconfig.8.gz
/sbin/chkconfig

and the /sbin/chkconfig is what you want.

RPM.new
------------

When you update a package it will go fetch the updated package from RedHat's site, and install it. Most packages come with some kind of configuration file, in this case it's /etc/xinetd.d/wu-ftp

the same file that you edited earlier on to enable the FTP.

However, there may be occasions where the configuration file changes between versions, or includes new options, and suchlike. But *replacing* your edited configuration file (which now contains the disable=no line) would be bad. The default is 'disable=yes' so replacing the file would break your FTP program.

So, what they do is look to see if you have a configuration file already (and if it's been changed) and if so, they save the new one as <program configuration file>.rpmnew

What *you* need to do is look at that new configuration file, and see if it has anything in it that's new, that you'd like to use, any defaults which have changed, and just generally be aware of stuff that might have changed between your version of the config file and the new one.

This particular update, I don't think, changes anything at all. So you can safely look at the file, note that it's the same as the one you already have, minus the changes you made to your original one, and safely delete it.

Woot!

Slick.
 
Old 02-13-2003, 08:35 PM   #15
sudhir
Member
 
Registered: Feb 2003
Distribution: redhat
Posts: 58

Original Poster
Rep: Reputation: 15
Thanks a looott Slick )

First .. I figured out the chkconfig thing (I did /sbin/chkconfig --list), and found wu-ftpd at the bottom .. and it said "wu-ftpd: ON" .. And I assume this means the FTP server is active now..

Next .. I looked at the new config file, wu-ftpd.rpmnew as U said, and found nutting new in that.. so I deleted that file (wu-ftpd.rpmnew) and retained the old one. Which now has the line "disable=no" ....

Soo.. I guess things are pretty fine as of now with the FTP server in my comp ... Is my thought correct ???

Anyway ... Thanks a lot Slick and EL for your help with this... And I must say I luv this forum ) .. very helpful for people like me who dun know much abt the comp language... ) Anyway .. Thanks again !!!!
 
  


Reply



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
setting up FTP mole_13 Linux - Newbie 3 03-22-2005 03:08 AM
Setting up FTP Carpaurion Linux - Newbie 1 11-09-2004 09:02 PM
Setting up FTP psycoperl Linux - Networking 1 09-18-2004 09:09 PM
Setting up a ftp.... Xetox Linux - Newbie 3 08-05-2003 12:42 PM
Setting up ftp klada Slackware 1 05-10-2003 06:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:43 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
Open Source Consulting | Domain Registration