Re: Odd Samba problem
2003-08-12 23:11:47
On Tue, Aug 12, 2003 at 05:54:43PM -0400, Archie Warnock wrote:
>
> ... . The entries in /etc/amandapass look
> like this (obviously scrambled to protect real passwords):
>
> //pommard/MyDocuments me%foo#bar
> //maranges/PrisDocs metoo%foobar
>
> Note that this command works fine:
>
> smbclient //pommard/MyDocuments foo#bar -U me
>
> I'm guessing that the # sign in foo#bar is being treated as the start of
> a comment when /etc/amandapass gets read. I sure don't want to change a
> working password to get a backup, though. What am I missing?
I don't think anything. My reading of the code in findpass.c shows
the user/passwd is picked up with a loop like this.
while((c) != '\0' && (c) != '#' && !isspace(c)) (c) = *(ptr)++;
That appears to terminate at the octothorpe (formal name for #).
Thus your password would not be foo#bar but foo.
If I understand it correctly, this is a limitation in the "amanda-valid"
passwords and is not correctable by quoting etc.
--
Jon H. LaBadie jon AT jgcomp DOT com
JG Computing
4455 Province Line Road (609) 252-0159
Princeton, NJ 08540-4322 (609) 683-7220 (fax)
|
|
|