Knowledgebase
Next Step Innovation
>
Next Step Innovation Help Desk
>
Knowledgebase
Ask a question:
Loading knowledgebase suggestions...
Auto-mounting an SMB share from OS X Lion to a Windows system
Solution
When trying to mount a Window share, it will fail if you run it after "sudo" or "sudo -s". It will mount as a regular user (non-sudo) but if you need the OS to perform some automated task using launchd, you will need to put something like the following into your script:
/usr/bin/su - osxuser -c
"/sbin/mount_smbfs //WORKGROUP\;windowsuser:windowspassword@10.1.0.1/backup /backup"
You can use automount (editing the auto_master file), but this seems to have issues of its own. The command above has worked without issue.
Was this article helpful?
yes
/
no
Article details
Article ID:
8
Category:
OS X
Date added:
2012-10-28 21:35:47
Views:
647
Rating (Votes):
(79)
<<
Go back