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
Mapping Another MAC Hard Drive Using Shell Script
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="37Shannon" data-source="post: 1814442" data-attributes="member: 401815"><p>Not having much luck with this.</p><p></p><p>I am logged in as "bill". I created a mount point called "mntpoint" within my home directory, and issued "chmod 777 mntpoint" against it. Thus, the specific mount point is "/User/bill/mntpoint":</p><p></p><p>MAC-SYSTEMC:~ bill$ ls -al | grep mntpoint</p><p>drwxrwxrwx 2 bill staff 68 Feb 12 11:23 mntpoint</p><p>MAC-SYSTEMC:~ bill$ </p><p></p><p>But when I try the "mount_smbfs" command it fails thus:</p><p></p><p>MAC-SYSTEMC:~ bill$ sudo mount_smbfs '//User:User&123@MAC-SYSTEMB/Desktop' mntpoint</p><p>mount_smbfs: server rejected the connection: Authentication error</p><p>MAC-SYSTEMC:~ bill$</p><p></p><p>However, using the "open" command with exactly the same credentials for SYSTEMB, it works:</p><p></p><p>MAC-SYSTEMC:~ bill$ open 'smb://User:User&123@MAC-SYSTEMB/Desktop'</p><p>(Finder window opens to desktop on SYSTEMB).</p><p>MAC-SYSTEMC:~ bill$ </p><p></p><p>So I don't understand why I'm getting an authentication error.</p><p></p><p>A couple of times, sudo asked for a password, but I couldn't remember whether it wanted my password or an admin password, so I entered mine. Now it doesn't ask for the password any more, it seems to remember and use the (wrong) one. I do know the admin password, and would try it if I could get sudo to ask for it. Quitting out of terminal altogether and starting a new terminal session doesn't seem to make any difference.</p></blockquote><p></p>
[QUOTE="37Shannon, post: 1814442, member: 401815"] Not having much luck with this. I am logged in as "bill". I created a mount point called "mntpoint" within my home directory, and issued "chmod 777 mntpoint" against it. Thus, the specific mount point is "/User/bill/mntpoint": MAC-SYSTEMC:~ bill$ ls -al | grep mntpoint drwxrwxrwx 2 bill staff 68 Feb 12 11:23 mntpoint MAC-SYSTEMC:~ bill$ But when I try the "mount_smbfs" command it fails thus: MAC-SYSTEMC:~ bill$ sudo mount_smbfs '//User:User&123@MAC-SYSTEMB/Desktop' mntpoint mount_smbfs: server rejected the connection: Authentication error MAC-SYSTEMC:~ bill$ However, using the "open" command with exactly the same credentials for SYSTEMB, it works: MAC-SYSTEMC:~ bill$ open 'smb://User:User&123@MAC-SYSTEMB/Desktop' (Finder window opens to desktop on SYSTEMB). MAC-SYSTEMC:~ bill$ So I don't understand why I'm getting an authentication error. A couple of times, sudo asked for a password, but I couldn't remember whether it wanted my password or an admin password, so I entered mine. Now it doesn't ask for the password any more, it seems to remember and use the (wrong) one. I do know the admin password, and would try it if I could get sudo to ask for it. Quitting out of terminal altogether and starting a new terminal session doesn't seem to make any difference. [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Operating System
Mapping Another MAC Hard Drive Using Shell Script
Top