Mounting Samba Shares

There are two ways to mount Samba shares to your Linux host. Mounting a share is the same as mounting an available media partition or remote NFS directory except that the Samba share is accessed using SMB. The first method uses the standard Linux mount command:

matthew@seymour:~$ sudo mount -t smbfs //10.10.10.20/homes /mount/point -ousername=heather,dmask=777,\ fmask=777

Note

You can substitute the IP address for hostname if your name service is running or the host is in your /etc/hosts file.

The preceding command mounts heather’s /home directory on your host and gives all users full permissions to the mount. The permissions are equal to the permissions on the chmod command.

The second method ...

Get Ubuntu Unleashed 2014 Edition: Covering 13.10 and 14.04,Ninth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.