Книга: Fedora™ Unleashed, 2008 edition
Mounting Samba Shares
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 you use SMB to access the Samba share. (See Chapter 35, "Managing the File System," to see how to mount partitions.) The first method uses the standard Linux mount
command:
mount -t smbfs //10.10.10.20/homes /mount/point -o username=ahudson,dmask=777,
fmask=777
NOTE You can substitute a hostname for an IP address if your name service is running or the host is in your /etc/hosts
file.
This command mounts ahudson
'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, using the smbmount
command as follows:
# smbmount //10.10.10.20/homes /mount/point -o username=ahudson,dmask-777,
fmask=777
To unmount the share, use the standard:
# umount /mount/point
These mount
commands can also be used to mount true Windows client shares to your Fedora host. Using Samba, you can configure your server to provide any service Windows can serve, and no one but you will ever know.
- Глава 6 В стиле Samba
- Putting Samba to Work
- Configuring Samba with system-config-samba
- 6.1. Конфигурирование Samba
- 6.4. Использования Samba
- Configuring Samba with SWAT
- Manually Configuring Samba with
- Testing Samba with the testparm Command
- Mounting File Systems
- Mounting Automatically with
- Mounting the New Partition and Populating It with the Relocated Files
- Mounting a Partition as Read-Only on a Running System