Книга: 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.

Оглавление книги


Генерация: 3.551. Запросов К БД/Cache: 3 / 0
поделиться
Вверх Вниз