Name

autosmbmnt — automatically mount SMB shares when available

Synopsis

autosmbmnt [OPTIONS] host,share[,username[,password]] ...

Description

autosmbmnt takes a list of SMB shares and continually monitors the availability of those shares. Shares are mounted when available, and are automatically un-mounted when they are no longer available.

Shares are mounted under the current working directory like ./host/share. If directory is specified (with --dir), shares are mounted on mount points under that directory instead of the current directory. Mount points are automatically created by autosmbmnt before mounting begins, and will be removed on exit (unless autosmbmnt failed to un-mount the share).

Options

Mandatory arguments for long options are mandatory for short options, too.

-h, --help

show summary of options and exit

-v, --version

show version of program and exit

-s, --smbmount

use smbmount/smbumount instead of mount/umount

-w, --writeable

mount shares with write permission

-d, --dir=directory

mount shares on mount points under directory instead of the current working directory

-q, --quiet

be less verbose

-Q, --very-quiet

be even less verbose

--debug

produce verbose debugging output

Bugs

Shares are specified using non-standard comma syntax (described above). Passwords for shares must be provided on the command-line, and are not obfuscated in memory, and, consequently, are easily seen using ps or other methods.

Please report bugs on launchpad at http://launchpad.net/products/autosmbmnt/+bugs.

See Also

mount(8), umount(8), smbmount(1), smbumount(1), smbclient(1)