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 produces the same results ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access