Changes

Jump to: navigation, search

OPS335: File Servers

45 bytes added, 12:49, 21 February 2016
no edit summary
In this investigation, we will set up a '''Samba server''' on our '''VM2''' machine. +++Complete this sentence +++
===Installing & Configuring a Samba Server on Linux===
*On your VM 2 install Samba
dnf install samba samba-client
*It will show you a list of all available shares.
===Connecting to a Linux SMB Server from a Linux Client===
There are many ways that a Linux client can connect to an SMB server.
==== Using smbclient ====
*In a full installation you should not need to install samba-client on your host, but if it is not present then do so.
*You will also need to install the cifs-utils package to be able to mount the filesystem.
*When you are finished close the connection.
==== Using 'mount -t cifs' ====
*The next way is to use the mount command.
*Use the mount command on the host to mount your home directory
ls /tmp/vm2-home
==== Using Nautilus to browse Samba shares ====
*Use the "Places" menu from the desktop and open 'Browse Network'.
*From the menu in the side-bar of the files tool, choose 'Connect to Server'.
*After you have checked that you can access your files, unmount the share by right-clicking its icon in the side-bar and clicking 'Unmount'.
==== Using a browser ====
*You can also use a web browser with support for the SMB protocol such as Konqueror.
**Note that firefox does not have such support.
*cat the file on your VM2 to ensure the changes were properly uploaded.
====Connecting to a Linux SMB Server from a Windows Client (Windows 7)====
*Power up a Windows 7 system in the lab and login using your LEARN username and password.
*Add the prerouting and forwarding rules to your Centos host's iptables necessary to redirect samba traffic from outside your network to your VM 2.
13,420
edits

Navigation menu