Name

smbmnt

Synopsis

This is a low-level helper program for mounting smbfs filesystems. It used by smbmount to do the privileged part of the mount operation on behalf of an ordinary user. Generally, users should not run this command directly.

Command synopsis

smbmnt mnt_point [options]

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 administrator, set the “set user ID” permission on the smbmnt executable. However, note that this can raise security issues.

Get Using Samba, Second 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.