autosmbmnt — automatically mount SMB shares when available
autosmbmnt [OPTIONS]
host,share[,username[,password]]
...
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).
Mandatory arguments for long options are mandatory for short options, too.
-h, --helpshow summary of options and exit
-v, --versionshow version of program and exit
-s, --smbmountuse smbmount/smbumount instead of mount/umount
-w, --writeablemount shares with write permission
-d, --dir=directorymount shares on mount points under instead of the current working directorydirectory
-q, --quietbe less verbose
-Q, --very-quietbe even less verbose
--debugproduce verbose debugging output
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.