-
Notifications
You must be signed in to change notification settings - Fork 6
samba mount
roubles edited this page Jul 23, 2015
·
5 revisions
To mount windows shares (that use the samba protocol) you would use mount with the -t smbfs
MOUNT_CMD=/sbin/mount -t smbfs //roubles:whatmeworry@example.com/remotefolder /Volumes/example
In context this looks like:
[example.com]
MOUNT_TEST_CMD=ls -l /Volumes/example && /sbin/mount | grep -q example
PING_CMD=/sbin/ping -q -c3 -o example.com
PRE_MOUNT_CMD=/sbin/umount -f /Volumes/example; /bin/mkdir -p /Volumes/example
MOUNT_CMD=/sbin/mount -t smbfs //roubles:whatmeworry@example.com/remotefolder /Volumes/example
Note that 'whatmeworry' is the password in cleartext. This is not recommended. Please read password management.