Introduction
This lab provides you with the instructions and practical
experience to mount a shared resource from an SMB file server. This
allows access to files on a Windows system from a FreeBSD client using
SMB/CIFS. On the FreeBSD side the SMBFS kernal module is loaded
automatically when the mount_smbfs command is used. No software need be
installed.
Pre Lab Requirements:
You are responsible for reading and understanding the mount
command in the FreeBSD Handbook. You are also responsible for
"sharing a folder " from a Windows SMB file server using a variety of
access privileges. You will require a TCP/IP network
configuration with a valid IP address on both machines, an
account and password on the windows server and the server name.
Boot the FreeBSD image and test your network configurations:
- Boot the FreeBSD VMware image stored under D:\\courses
- Once FreeBSD is booted, login with fbuser and su to root. Check
that the network is configured and that you have a valid IP, use ifconfig.
- Use the Windows host server or one in your row and check the
network and make a note of the IP address. This will be in the
same 10.100.1.0 network
- Confirm connectivity by pinging the Windows machine..
Create a user account and a shared folder on the Windows SMB server:
- Create a user account on the Windows Server and call it
bsd-user and apply a password.
- Log in with bsd-user and create a share called bsd-share and edit
a file using Wordpad in the bsd_share folder. Call it bsd_test
and put some data (your name and the time and date) in the file.
- Share the file and make it readable by all.
Questions:
From your workstation can you ping your Windows machine ?
Can you ping the Mohawk College nameserver?
Are you able to ping hosts in other networks?
Mount A shared folder from an SMB file server
- Create a mount point on the unix host and call it
/home/windows-shr
- Use the mount_smbfs command to mount the Windows share to your
mount point
- mount_smbfs -I <IP address>
//<user>@<hostname>/<shared_folder>
</mount/point>