
Samba Distribution Programs
|
101
Options
-r
Mounts the filesystem as read-only.
-u uid
Specifies the UID to use for the owner of the files.
-g gid
Specifies the GID to use for the group of the files.
-f mask
Specifies the octal file mask.
-d mask
Specifies the octal directory mask.
-o options
Specifies the list of options that are passed to the smbfs
module.
To allow users to mount SMB shares without help from an admin-
istrator, set the “set user ID” permission on the smbmnt
executable. However, note that this can raise security issues.
smbmount
smbmount service mount_point [-o options]
This program mounts an smbfs filesystem on a mount point in the
Unix filesystem. It is typically called as mount.smb from mount,
although it can also be run directly by users. After mounting the
smbfs filesystem, smbmount continues to run as a daemon as long
as the filesystem is mounted. It logs events in the file log.
smbmount in the same directory as the other Samba log files
(which is commonly /usr/local/samba/var by default). The logging
level is controlled by the
debug level parameter in the Samba
configuration file.
The service argument specifies the SMB share to mount, given as a
UNC. The
mount_point argument specifies a directory to use as
the mount point. The options to smbmount are specified as a
comma-separated list of
key=value pairs. The documented options
are as follows. Others can be passed if the kernel supports them. ...