Menu

Mount cifs and passwords with !

Help
2016-03-02
2016-03-18
  • Chris Schwemin

    Chris Schwemin - 2016-03-02

    Hello, I have been using clonezilla to image workstations succesfully for some time now, but today i was presented with a problem. I have been using the same user name and password for this on most installations. What i have come across is one installation is requiring a more complex password. The password has a ! in it. when i try and pass this in an ocs_prerun3="mount -t cifs -o user=myusername,password=pass!word,sec=ntlm //10.20.30.99/images /home/partimag" it fails becuase that is the shell history shortcut. I tried escaping the ! but that did not work either. Is there a way to pass this special character in the ocs_prerun. I cannot enclose the password in " becuase that is what the ocs_prerun uses to enclose the string being sent to it.

    Thanks for any help, it is greatly appreciated

     
  • Steven Shiau

    Steven Shiau - 2016-03-06

    That's true. This is the limitation when parsing the boot parameters, and it's not easy to make it. The solution is, change the password to avoid using "!". Sorry. It's not a good solution but at least it will work.

    Steven.

     
  • Chris Schwemin

    Chris Schwemin - 2016-03-18

    Thanks Steven for the reply.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.