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.

-- 
 Les Mikesell
  [EMAIL PROTECTED]




-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to