I am contemplating writing tool that checks that the information in
/etc/amandapass is correct.  I don't think that amcheck actually checks
the shares, at least in 2.4.1p1.

The germ of my idea is the following:

spinoza!backup 252# /g/rcs/sw/bin/smbclient  //thalassa/C WRONG_PASSWORD

tree connect failed: ERRSRV - ERRbadpw (Bad password - name/password
pair in a Tree Connect or Session Setup are invalid.)
spinoza!backup 253# echo $?
1
spinoza!backup 254# /g/rcs/sw/bin/smbclient  //thalassa/C
CORRECT_PASSWORD
smb: \> exit
spinoza!backup 255# echo $?
0
spinoza!backup 256#

It should be really easy to write a perl script (which I would publish,
of course) which reads the /etc/amandapass file and tests this - but
I wonder if it is necessary to do so or is there another way?


Many thanks,


Jeff



--
Jeff Silverman, sysadmin for the Research Computing Systems (RCS)
University of Washington, School of Engineering, Electrical Engineering Dept.
Box 352500, Seattle, WA, 98125-2500 FAX: (206) 221-5264 Phone (206) 543-9378
[EMAIL PROTECTED]     http://rcs.ee.washington.edu/~jeffs



Reply via email to