samedit script -c problems
joseph at wigwamlab.com
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2484 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.samba.org/archive/samba-ntdom/attachments/20001120/bf8019d5/smime.bin
More information about the samba-ntdom