Go Back   The macosxhints Forums > OS X Help Requests > Networking



Reply
 
Thread Tools Rate Thread Display Modes
Old 01-10-2013, 10:07 AM   #1
halbert5150
Prospect
 
Join Date: Jan 2013
Posts: 1
using mount command with password that has @ in it

Im mounting drives via scripts like this...
mount -t smbfs //user:password@server/share target_directory

My problem is that the password I need to use has the @ character in the password. On linux I would just put the password in quotes 'pass@word' like that. But that doesn't work on the mac. Is there a way to get around this?

By the way changing the password for the target account is not my first option. There are many, many machines and services that use this account and that would be a huge pain for me.

Thanks in advance.
halbert5150 is offline   Reply With Quote
Old 01-10-2013, 09:20 PM   #2
fracai
MVP
 
Join Date: May 2004
Posts: 2,012
If you read the man page for mount_smbfs, you should be able to pass '-N' and specify the password in '~/Library/Preferences/nsmb.conf'.
__________________
i am jack's amusing sig file
fracai is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 05:52 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.