From: Ourliac C. <Chr...@ma...> - 2006-05-26 06:01:33
|
Good morning, You were right I had a typo problem in password as it seems that = password given by .conf is uppercase while my password has lower and = uppercase. If I put PASSWD it works perfectly but little drawback in transfer logs = user can see it in command line given to smbclient.. Thanks very much, after one month with your help I'm making some = progress... Christophe Ourliac Matthey s.r.o. Arcelor Group Predlick=E1 453/26 400 01 =DAst=ED nad Labem =20 Tel: +420 477 757 122 Fax: +420 477 757 100 Mobile: +420 602 746 853 Email: chr...@ma... -----Message d'origine----- De=A0: les [mailto:le...@fu...]=20 Envoy=E9=A0: jeudi 25 mai 2006 18:35 =C0=A0: Ourliac Christophe Cc=A0: Justin Best; bac...@li... Objet=A0: RE: [BackupPC-users] Understanding parameters smbclient On Thu, 2006-05-25 at 15:29 +0200, Ourliac Christophe wrote: > Sorry but I'm quite fresh in Linux and I need a bit more details on = how to create shell script and replace smbclient. cd /usr/bin mv smbclient smbclient.keep vi smbclient hit i for insert, paste in the following 4 lines of text: #!/bin/sh echo "$0 $@" >/tmp/cmd_log env >/tmp/env_log exit 2 hit escape, then ZZ chmod +x smbclient Start a backup via the web interface, then look at the /tmp/cmd_log and /tmp/env_log files to see if the PASSWD in the environment and the username in the command are what you expect. Note that all quoting is removed in this process. To repeat the command manually to the shell you'd have to either add single quotes around any items containing special shell characters (\,$,etc.) or prefix each with a \. Don't forget to cd /usr/bin mv smbclient.keep smbclient when done testing. --=20 Les Mikesell les...@gm... |