Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
mounting smb share through terminal
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="arvz" data-source="post: 1219262" data-attributes="member: 198339"><p>Hey all,</p><p></p><p>I'm trying to write a script that allows me to mount an SMB share.</p><p></p><p>So far I have got it working with this: </p><p></p><p>[CODE]mkdir /smbaudit</p><p>mount -t smbfs //username:password@pathname/share /smbaudit[/CODE]</p><p></p><p>And this works assuming the computer is in the right domain. However I will be using this script on computers of a different domain so I will need to provide the domain name to the username</p><p></p><p>how do I provide the domain name? I tried:</p><p></p><p>[CODE]mount -t smbfs //[B]domain\[/B]username:password@pathname/share /smbaudit[/CODE]</p><p></p><p>but it just gave me: mount_smbfs: server rejected the connection: Authentication error</p><p></p><p>I even tried to escape the backslash and instead I got mount_smbfs: URL parsing failed, please correct the URL and try again: Invalid argument</p></blockquote><p></p>
[QUOTE="arvz, post: 1219262, member: 198339"] Hey all, I'm trying to write a script that allows me to mount an SMB share. So far I have got it working with this: [CODE]mkdir /smbaudit mount -t smbfs //username:password@pathname/share /smbaudit[/CODE] And this works assuming the computer is in the right domain. However I will be using this script on computers of a different domain so I will need to provide the domain name to the username how do I provide the domain name? I tried: [CODE]mount -t smbfs //[B]domain\[/B]username:password@pathname/share /smbaudit[/CODE] but it just gave me: mount_smbfs: server rejected the connection: Authentication error I even tried to escape the backslash and instead I got mount_smbfs: URL parsing failed, please correct the URL and try again: Invalid argument [/QUOTE]
Verification
Name this item. 🍎
Post reply
Forums
Apple Computing Products:
macOS - Operating System
mounting smb share through terminal
Top