12.07.2015 Views

download

download

download

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Network Services—Local Network ServicesThis will mount a share called cygwin from a host called babak-winxp with IPaddress 192.168.0.14. The share is mounted with the permission of user admin andthe password is asked for, during the mount process.Note that the -I parameter takes the actual IP address of the SMB server (in thiscase 192.168.0.14). You should also specify the name of the SMB server (forexample babak-winxp). In case you do not specify the IP address of your serverusing the -I options, the IP address will be looked up from the host name, usingNetBIOS name resolver. However, it would be a good idea to use -I to speed up themounting process.Once you enter this command, the password for the specified user, in this case,admin, is asked. If the authentication succeeds, the remote share will be mountedto the node you have specified (/mnt/cygwin in this example).You can also verify whether the share is mounted as you wanted as shown here:# mount/dev/ad0s1a on / (ufs, local, noatime, soft-updates)devfs on /dev (devfs, local)procfs on /proc (procfs, local)/dev/md0 on /tmp (ufs, local)//ADMIN@BABAK-WINXP/CYGWIN on /mnt/cygwin (smbfs)The last line of the mount(8) output shows that the share has beenmounted successfully.Note that you can also unmount the mounted share like a typical mount point, usingthe umount(8) utility# umount /mnt/cygwinSMB ServerSAMBA is a very popular open-source implementation of the SMB protocol that runson various operating systems including FreeBSD. Using SAMBA, you can turn yourFreeBSD server into a high performance Windows File Sharing server, which canintegrate into your hybrid network.SAMBA is available in FreeBSD's ports collection under /usr/ports/net/samba3.After installing SAMBA via port (or package), just like any other server package youshould configure it using the configuration file and enable it in /etc/rc.conf:samba_enable="YES"[ 244 ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!