Mount_smbfs fails if password contains '@'

I am using mount_smbfs command in a shell script like this:
mount_smbfs -W <work-group> '//<user-name>:<password>@<host-name>/<share>' <mount-point>
But, if the password has the character '@', the command fails.
For example: mount_smbfs -W <workgroup1> '//user1:abcd@xy@hostname1/sharename1' /abcd/def
(Where password = abcd@xy
hostname = hostname1)
The command fails with the error -
mount_smbfs: can't get server address `xy@hostname1':
Unknown host
mount_smbfs: can't get server address: syserr = Network is down
Is there a way to overcome this problem?

There might be a few things worth trying:
* Don't use quotes at all and escape the @ character in the password:
//user1:abcd@xy@hostname1/sharename1
* Quote just the password:
//user1:'abcd@xy'@hostname1/sharename1
* Use double quotes and escape the @ character
"//user1:abcd@xy@hostname1/sharename1"
* Make the mount command ask for the password interactively
mount_smbfs -N -W <workgroup1> //user1:@hostname1/sharename1 /abcd/def
* If nothing else works then consider changing the password.
Maybe one of them will work.

Similar Messages

  • Cannot login with password containing non-ascii characters

    Hello,
    I have web application, form based login. UTF-8 is specified "everywhere".
    And it works, except for passwords.
    If user register itself with password containing non-ascii characters, it is correctly written in database, but when doing either programmatic login or normal form based login, if fails.
    If the password is only ascii, it works.
    Username of login could be ascii or non-ascii, it doesn't matter, both works.
    I'm using sun java application server 9.1.
    jdbc realm.
    I'm not using hashing passwords, just clean (now)
    I tried configure realm Charset: UTF8 as last chance, but it doesn't work either.
    The problem is only with non-ascii characters in password.
    Any help very appreciated
    Thanks a lot

    hi,
    I know all that, but that's not the case. My app uses preparedStatements, everything is properly configured, in all pages, utf-8 is going from user to db and back without any problems.
    The only problem is with password field. As I am using form based login, with jdbc realm configured (again, nicely working when only ascii characters), I have very little chance to do something bad through the login phase.
    I'm not talking about special characters, I'm talking about non-ascii characters, let's say - Chinese, arabish, Russian alphabet etc.
    When user registers (my code), the fields are properly written to db. I have checked that, trust me.
    But the Sun app server realm seems to have some problems with the password field.
    (realm uses jdbc connection to mysql, the url contains all extra parameters to be sure about utf8. there is nothing more what can be configured...)
    If I try other alphabet codes in login and ascii in password, it works. But soon, as I use other alphabet code also in password, it doesn't work anymore.
    My only idea is, that I could try MD5 to create ascii only characters (I hope it works that way) on the client with javascript and then set Digest to MD5 in realm configuration. But still, it seems very strange. The clear way storage should also function? (now set Digest to 'none')
    Is it a bug of Sun App Server?
    thanks

  • Export Database With Password Containing Special Characters

    Hi,
    I'm doing a database export using the command:
    exp userid=user/pass@instance parfile=exp_parms.dat
    The problem is that the password contains special characters so the command fails with a syntax error. The command works perfectly fine when I run it without the password and just type it in when prompted, but I need to include the password in the command because I am running it in a batch file. I've tried using the escape character (\), but this results in a username-password mismatch.
    Is there some way of declaring a password containing special characters in the 'exp' command?
    ...Thanks in advanced!

    Hi,
    I'm using linux and this is how I did it.
    I created a user named ddg with a password ddg)ddg
    I did my expdp command like:
    expdp ddg/"ddg\)ddg" directory=dpump_dir dumpfile=ddg.dmp
    Put the password in double quotes and escape the funny character with a \
    Hope this helps.
    Dean

  • I spilled water on my laptop and my "i", "j" and "k" letters don't work on my laptop. However my main problem is that my password contains an "i" so i am locked out of my computer. Any ideas how I can get around the password and login.

    I spilled water on my laptop and my "i", "j" and "k" letters don't work on my laptop. However my main problem is that my password contains an "i" so i am locked out of my computer. Any ideas how I can get around the password and login. I tried the method where you go into single user mode and type in commands, however that method uses some of the letters that are not working on my laptop.

    You didn't mention which version of OS X your running but there are password reset utilities provided OS X: Changing or resetting an account password (Snow Leopard and earlier) - Apple Support  or  OS X: Changing or resetting an account password - Apple Support
    Alternately you can use an external keyboard to log in and change the password. Make a backup if you don't have one, it's likely that your problems aren't over. If that water continues to migrate downward and fries the logic board your macbook will be toast.

  • Password protected PDFs from Acrobat XI cannot be opened in DC when the password contains a hyphen

    I have documents created in Acrobat XI that are protected with an Open Password.
    The password contains a hyphen "-".
    They open fine in Acrobat XI, but Acrobat DC refuses to open them: "The password is incorrect. Please make sure etc..."
    Documents created in Acrobat DC that are protected with passwords that contain a hyphen do not have this problem.
    I am working with the latest Mac OSX 10.10.3
    Luckily I still have Acrobat XI installed, but it is a problem for those with the new Acrobat DC and the new Reader.
    Ton

    AFAIK there were no code changes in this area between XI and DC, Are you doing all your processing on the same platform (Mac) or does the problem manifest when you move encrypted PDF between Mac and Windows. As I recall the problem that I was talking about manifest when encrypted PDFs were moved between platforms. If you do move your PDFs between platforms, then which Acrobat version do you use on which platform? Is it Acrobat DC on both Mac and Windows? On which platform/Acrobat version do you encrypt and on which platform/Acrobat version you try to open?

  • BUG: registered servers missing when password contains non-alphanumeric

    I have a fresh installation of DS7 using Sun Java Web Server 7 to host DSCC7. Using DSCC7 web interface I click New Server and the procedure appears to complete successfully (no errors during creation, registration successful). However in the web interface the new server is not listed.
    From the command line the new server is listed.
    $ /opt/SUNWdsee7/bin/dsccreg list-servers
    Hostname Port sPort Type Owner Flags iPath Description
    www-c-directory 389 636 DS nobody /var/opt/SUNWdsee7/internal
    Cause: the DSCC administrator's password contained non-alphanumeric characters (e.g. a left-angle bracket plus a few other punctuation characters) with about 10 characters in total.
    Solution: from the web interface I navigated to Settings, Directory Service Managers, and changed the password for "admin" to a simpler password containing only alphanumeric characters.
    Resolution: the registered servers now appear in the DSCC7 web interface as well as the command line. Oddly I can now return the password back to its original value and the servers still appear in the web interface.
    Edited by: nhand42 on Jan 10, 2010 4:53 PM

    English / C 7-bit ASCII.
    The software has been installed inside a Whole Container, and the container was manually sysidcfg'd after the zone's installation (before the software installation) using zlogin -C.
    Edited by: nhand42 on Jan 11, 2010 2:31 PM

  • DadTool.pl obfuscation doesn't work with passwords containing a "$" sign !?

    Hi,
    we are using the OHS and mod_plsql which is bundled with the Oracle 9i Companion CD. When we try to obfuscate a password containing a $-sign (p.e. test1$test2) with dadTool.pl, the dads.conf is updated with an encrypted password and the dadTool.pl tells us that everything is ok and that it has encrypted one new password ...
    As long as we started the OHS with the plain text password, everything works fine. But when we start it with the obfuscated password and request our URL (p.e. http://myserver/pls/test), we get an error message that the username/passwort is incorrect.
    We tried everything and it looks like a bug in the dadTool.pl Perl script?!
    Does anyone know this behavior? And are there any workarounds?
    Best Regards,
    Matthias

    Sounds like your workaround is going to have to be removing the "$" from your password. Perl, like PHP and other popular languages, uses the "$" character to denote when a variable starts. Oracle must not be doing anything to cleanse the inputs to their perl scripts, assuming that their users are expert Perl scripters who already have a deep understanding of how Oracle relies on Perl scripts for helper utilities.
    Don't get me started on what Oracle frequently assumes, or the quality of their scripting. Suffice to say that I see dark times eventually in Oracle's future as their competition catches up in features (and has already left them far behind in usability), and I'm not going to buy Oracle stock.
    The point:
    Oracle's perlscript sees "test1$test2" and assumes this means "test1" and append the contents of $test2, which resolves to "test1" as $test2 is undefined (read: empty).
    Don't use "$". Or special characters (many of these have special meaning in Perl, the "write-once-read-never" language).

  • My zero Key isn't working after waking from sleep mode. This is a real problem for me because my password contains a zero

    My zero Key isn't working after waking from sleep mode. This is a real problem for me because my password contains a zero.  I don't recall spilling anything or jamming it just that it worked before I closed the computer and wasn't after I woke it up.
    I would like to fix the key but if that's not possible right away , Is there a way to reset my password without being able to type with a key thats in it?

    Start by swapping the keyboard. You don't need to spend a fortune, and handy to have spare. USB cables can be bad even new.
    When I had some problems Apple wanted to blame the mouse, keyboard, cable, but in the end I found
    A. run Disk Warrior
    B. Corrupt pref or conflict with version of Hardware Monitor and other background tasks

  • SQL connection string failed for $ password

    Hi Team,
    I am not able to connect to SQL DB when password contains $ symbol. Please help me to open connection for this scenenrio.
    $sqlconstr = "Data Source=Server1;Initial Catalog=DB;User ID=User;pwd='$$XXXXX0';"
    $sqlconn = New-Object system.Data.SqlClient.SqlConnection
    $sqlconn.connectionstring = $sqlconstr
    $sqlconn.open()

    Thanks I tried below string & it worked
    $sqlconstr = 'Data Source=Server1;Initial Catalog=DB;User ID=User;pwd=$$XXXXX0;'

  • Everytime i log in to my youtube app on my ipod touch it says authentication failed incorrect password or username

    everytime i log in to the youtube app on my ipod touch it says authentication failed incorrect password or username i even restored my ipod but it still didnt work

    - Reset the iPod. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on the router.
    - Reset networks settings: Settings>General>Reset>Reset Network Settings

  • Tried to use iphone connecting to wifi but failed dispite password correct, cable connection ok, and even reset network setting in iphone. Anyone can help? KC

    Tried to use iphone connecting to wifi but failed dispite password correct, cable connection ok, and even reset network setting in iphone. Anyone can help?
    Kin Chi

    I get in now with the following procedures taken:
    1. Reset network as suggested in Apple app.
    2. In the wifi connection, instead click in the user name as shown in the screen, I click Others and re-type the user name as appeared before. In the security, instead of none, I click WEP. It will then prompt you to put in password. I then put in password as I know for that user name again.
    Then, it joined the wifi..
    Hope this can help someone who get this problem.
    Kin Chi

  • Nw 7.3 user admin lock : Authentication failed. Password locked

    Hi expert.
    please help me
    i have a portal nw 7.3, but idont acceces ,  the administrator user  is lock.
    how i can this user?

    Please avoid double postings.
    The original question (where answers should be put, too) is here: Nw 7.3 user admin lock : Authentication failed. Password locked

  • Mount_smbfs fails for one file server but works on another

    I have a simple terminal .command file that i've written and added to my login items. this script mounts two SMB file shares from different servers (win2003). this script has been working for over a month now it fails for one server and works fine for the second one.
    script looks like this:
    mkdir /Users/me/Desktop/fs1
    mkdir /Users/me/Desktop/fs2
    mount_smbfs //winserv1/fs1$ /Users/me/Desktop/fs1
    mount_smbfs //winserv2/fs2$ /Users/me/Desktop/fs2
    When it runs it should use my kerberos credentials to authenticate me to the winserv1 but seems to fail and then prompts for password. If I enter the password in the terminal window it fails.
    the mount_smbfs command for fs2 on winserv2 works fine and uses my kerberos credentials.
    i looked through the system.log for clues and found:
    Oct 8 12:11:06 is3018 login[2009]: USER_PROCESS: 2009 ttys000
    Oct 8 12:11:08 is3018 gssd-agent[2017]: Error returned by svcmach_gss_init_seccontext:
    then I am prompted for password in terminal (which should not happen). i enter password and it fails
    then console log responds with:
    Oct 8 12:11:08 is3018 gssd-agent[2017]: Major error = 851968: Unspecified GSS failure. Minor code may provide more information
    Oct 8 12:11:08 is3018 gssd-agent[2017]: Minor error = 100004:
    Oct 8 12:11:33 is3018 BBDaemon[50]: IOBSDNameMatching returned a NULL dictionary.
    Oct 8 12:11:33: --- last message repeated 1 time ---
    Oct 8 12:11:33 is3018 com.apple.launchd.peruser.1368768338[141] ([0x0-0x91091].com.apple.Terminal[2005]): Exited: Terminated
    Oct 8 12:11:33 is3018 login[2009]: DEAD_PROCESS: 2009 ttys000
    the cryptic log file entries don't mean much to me - anyone have any ideas what might be happening?

    Turns out that our network time server was having some problems and the the two servers had drifted several minutes off the correct time. Once the time on each server was corrected my kerberos authentication issues resolved.

  • Unable to call report from jsp - password contains special characters

    Hi
    I used the following url to call my oracle report from my JSP webpage but got the error mentioned below. It seems that this error occurs when i use the login id with password that contains special characters only. How can I overcome this problem?
    Any help appreciated. Thx.
    Regards,
    Siti
    URL used: -
    "http://pc-325:8889/reports/rwservlet?server=pc-325&report=prodeff80120i&P_JDBCPDS="+vlogin1+"&destype=cache&desformat=pdf&paramform=no&p_type="+p_type;
    Error encountered: -
    REP-163: Invalid value for keyword DESTYPE.
    Valid options are FILE, PRINTER, MAIL, INTEROFFICE, or CACHE.

    Hi Stefan,
    Many of the customers are located in hungary and they have created the userid using their keyboard. Hence for now I already have a userid with that hungarian characters, in the SAP system.
    Only I would request for the help on how to interface these characters in SAP Business connector to call RFC.
    Thanks,

  • How can I set a password containing punctuation?

    I tried this:
    alter user <user> identified by <password>;
    where <password> has punctuation. I got:
    ORA-00922: missing or invalid option
    so I quoted the password and got:
    ORA-00988: missing or invalid password(s)
    How do I set a password that contains punctuation? TIA.

    Thank you very much. That worked fine. I think earlier I tried using single quotes instead of double quotes, and single quotes did not work.

Maybe you are looking for

  • Annoying error everytime i open Safari

    Hi there everyone. Really hope someone can help me out here. I have looked everywhere to see if someone else has had this error and I can't seem to find anything. I don't know what is causing it but it has been awhile. Most likely when I moved to SNo

  • When we go for reint.

    Hi all, In what scenario we go for reint. can somebody describe... Regards Kiran Kumar

  • CLDC 1.1 make fails with invalid storage class

    I am unable to build CLDC 1.1 I went into the j2me_cldc/build/linux directory and did this. make clean makeI get this error. make[3]: Leaving directory `/opt/j2me_cldc/tools/jcc' make[2]: Leaving directory `/opt/j2me_cldc/tools/jcc' ... obj/nativeFun

  • Input Help Frame too Narrow in WAD

    Hi everyone, We have a problem with some of our Web Applications. When we want to select values by using the input help in the variable screen, we can't see the values we have selected at the right side of the selector screen because the frame is ver

  • Disapearing files (entire albums mostly)

    I used Itunes 6.0.1 on a PBG4. My iTunes music is stored in root/itunes/itunes music. For some reason, from time to time an album disapears from my hard drive and iTunes can't find it (so I get exclamation marks). Spotlight can't find it either searc