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:
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:
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
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
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
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