samedit script -c problems

Joseph Crawley joseph at
Mon Nov 20 22:44:30 GMT 2000

    I'm trying to use samedit to change passwords through a script. The
script look like this.
 samedit -S$SAMBASERVER -Uroot%xxxxxx -c $com
where com='samuserset '$username' -p'$newpassword
In this case samedit thinks the -p is meant for it and not for
samuserset and fails. Samedit claims that the commnad should be `
surrounded not '. But of course shell doesn't like `. And escapeing them
doesn't seem to work. Has anyone gotten this to work properly.
thanks Joseph
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2484 bytes
Desc: S/MIME Cryptographic Signature
Url :

More information about the samba-ntdom mailing list