[Samba] $ char in password

Xu, Qiang (FXSGSC) Qiang.Xu at fujixerox.com
Tue Mar 11 08:04:01 GMT 2008


> -----Original Message-----
> From: Michael Heydon [mailto:michaelh at jaswin.com.au]
> Sent: Tuesday, March 11, 2008 3:55 PM
> To: Xu, Qiang (FXSGSC)
> Cc: samba at lists.samba.org
> Subject: Re: [Samba] $ char in password
> This isn't a samba issue, it's your shell.
>
> $ echo 111$111
> 11111
> $ echo '111$111'
> 111$111
>
> Enclose your password in single quotes.

That's great. Mike.
Previously, I enclosed the password with double quotes. I didn't realize that double quotes will cause symbols like $1, $2 to be interpreted by Shell. Only single quotes can provide plain, uninterpreted text.

Thank you so much,
Xu Qiang


More information about the samba mailing list