LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-14-2014, 01:59 PM   #1
kotobaganai
LQ Newbie
 
Registered: Nov 2014
Posts: 1

Rep: Reputation: Disabled
Setting up a FTP client and server in VirtualBox for Fedora 20


I am new to Linux and would like to set up an FTP client and server on the same machine in a VirtualBox. I am using Fedora 20 for this. The book I am using that contains instructions on setting up a client and server (it does not, however, tell me how I would do so in the same VB). The command the book instructs me to enter is

Quote:
cp -r /usr/share/doc/pam-0.77/* /var/ftp/pub
on the server. When I do so, I get this message:

cp: cannot stat 'cp -r /usr/share/doc/pam-0.77/*': No such file or directory

When I typed in cd /usr/share/doc/pam-0.77 I received this:

Quote:
bash: cd: /usr/share/doc/pam-0.77: No such file or directory

I am in the doc directory and did an ls, but the pam-0.77 does not exist. What should I do? Is there another way to setup an FTP server and client?

Last edited by kotobaganai; 11-14-2014 at 02:07 PM.
 
Old 11-14-2014, 02:04 PM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,185

Rep: Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586
That is the wrong version of PAM. That version is from a decade ago.

You'll want to find out what version of PAM is actually installed, perhaps like this:

Code:
rpm -qa|grep pam
Additionally, I don't know what guide you are using to install FTP, but it seems wrong. All there really is to do is install the 'server' and the 'client.'

Code:
#install server
yum -y install vsftpd

#configure server (Refer to docs for explanations)
vim /etc/vsftpd/vsftpd.conf 

#enable ftp server
systemctl start vsftpd.service 
systemctl enable vsftpd.service 

#install client
yum -y install ftp
Here is a more current guide: https://www.digitalocean.com/communi...on-centos-6--2 which will differ a little bit from Fedora. But between my example and the guide, you should have a good starting point.

Last edited by szboardstretcher; 11-14-2014 at 02:09 PM.
 
Old 11-14-2014, 02:34 PM   #3
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,454

Rep: Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052
As szboardstretcher said, that is a terrible way to "install" an ftp server. I might even go as far as to say you should shelve that book and never open it again.

And installing FTP in a VM is no different than installing it in a real machine, apart from setting the appropriate networking settings in the VM software on the host.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
ftp server and web based ftp client pedenski Linux - Newbie 1 06-11-2013 07:21 AM
file transfer program in c using FTP client and FTP server renuaseri Linux - Newbie 2 01-29-2011 05:49 AM
Setting up virtualbox on Fedora 14? linuxunix Linux - Newbie 1 12-12-2010 09:06 AM
LXer: Setting Up An NFS Server And Client On Fedora 13 LXer Syndicated Linux News 0 11-15-2010 12:30 PM
Setting Up FTP client/server with vsftpd in Ubuntu 9.04 CircleDown Linux - Newbie 3 02-23-2010 06:01 PM


All times are GMT -5. The time now is 12:55 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration