Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-14-2014, 02:59 PM   #1
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

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:

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 03:07 PM.
Old 11-14-2014, 03:04 PM   #2
Senior Member
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,211

Rep: Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612
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:

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.'

#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: 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 03:09 PM.
Old 11-14-2014, 03:34 PM   #3
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,552

Rep: Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112
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.


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

All times are GMT -5. The time now is 10:11 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration