Wednesday, May 27, 2009
I read over the man pages for smbpasswd and saw that I needed to add the -n switch because this user will not have a password. So again I tried to add the user with "smbpasswd -a -n [USER]" and got the same error.
A quick Google search lead me to a newb mistake on my part... I didn't have the user I was trying to add in my UNIX password file. A quick "useradd [USER]" followed by the same "smbpasswd -a -n [USER]" and I was all set.
Granted there are other reasons why this process might fail, but for me this was the reason.
Friday, May 22, 2009
I happened upon this script on Lifehacker a while ago, but I have been using it more and more lately.
First you will need to download sdelete from Microsoft. I copy this exe to the Windows directory on each machine as part of my install process.
The script if very simple:
FOR %%F IN (%1 %2 %3 %4 %5 %6 %7 %8 %9 %10) DO sdelete -p 7 -s %%F
I save this as shred.cmd and place it in my C:\Scripts folder. It will take up to 10 files at a time and run sdelete with 7 passes on each file. Sdelete will also rename the file 26 times to obfuscate the file name.
About once a month I will run sdelete -p 3 -z to clean the free space on my PC and to make sure that any temp files I didn't shred are cleaned up. Now this won't obfuscate the file names at all, but the contents of the files are gone for good.
You can also place a short cut to the shred.cmd file into your Send To menu options and have an easy way to clean files from any folder.
If you open up %APPDATA%\Microsoft\Windows\SendTo in Windows Explorer.
You see %APPDATA% is an environment variable that usually maps to something like C:\Documents and Settings\[YOUR USER PROFILE]\Application Data\ in Windows 2000/XP and "C:\Users\[YOUR USER PROFILE]\Application Data\" in Windows Vista.
Let's say you wanted to add an item to the Send To menu to shred files with sdelete. You could just drag a shortcut to the shred script this folder, or create a new shortcut.
This method should work for any application that allows you to open a file by using a command line argument.