Hello, I want to do file copy from one machine to another using SMBclient using cron. I want this to be secure, but I have to put the actual password into the crontab, which, of course gets spit out in the cron logs: 00 1 * * * smbclient \\\\myserver\\myshare mypassword -U myuser -c 'cd \mydirectory;prompt;put myfile;' Notice that mypassword will of course always be repeated in the logs. Can someone help me with this problem? Is there a more secure way to do this? Thank you for any help. Sanjay __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com
Probably not an ideal solution for security, but: Put the smblclient command in a shell scrip, make it executable, remove all permissions for everyone else. Ex: chmod 700 sambajob Now modify your crontab to run sambajob On Wed, 30 Jan 2002, Sanjay wrote: Hello, I want to do file copy from one machine to another using SMBclient using cron. I want this to be secure, but I have to put the actual password into the crontab, which, of course gets spit out in the cron logs: 00 1 * * * smbclient \\\\myserver\\myshare mypassword -U myuser -c 'cd \mydirectory;prompt;put myfile;' Notice that mypassword will of course always be repeated in the logs. Can someone help me with this problem? Is there a more secure way to do this? Thank you for any help. Sanjay __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com
> Hello, > > I want to do file copy from one machine to another > using SMBclient using cron. I want this to be secure, > but I have to put the actual password into the > crontab, > which, of course gets spit out in the cron logs: > > 00 1 * * * smbclient \\\\myserver\\myshare mypassword > -U myuser -c 'cd \mydirectory;prompt;put myfile;'edit /etc/syslog.conf to get cron to only log errors and not every job. Or let cron log to /dev/null. Restart syslogd Christian> > Notice that mypassword will of course always be > repeated in the logs. Can someone help me with this > problem? Is there a more secure way to do this? > > Thank you for any help. > > Sanjay > > __________________________________________________ > Do You Yahoo!? > Great stuff seeking new owners in Yahoo! Auctions! > http://auctions.yahoo.com > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >_(_)_ wWWWw _ @@@@ (_)@(_) vVVVv _ @@@@ (___) _(_)_ @@()@@ wWWWw (_)\ (___) _(_)_ @@()@@ Y (_)@(_) @@@@ (___) `|/ Y (_)@(_) @@@@ \|/ (_)\ / Y \| \|/ /(_) \| |/ | \ | \ |/ | / \ | / \|/ |/ \| \|/ jgs|// \\|/// \\\|//\\\|/// \|/// \\\|// \\|// \\\|// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^