Archive for February, 2009

Adding a zero to files in a directory

February 24th, 2009

I had a directory of pictures that I needed to prefix a zero to in the filename.  This is a simple bash script to do it.  I’m posting it here for when I forget what I did.  ;)   Cygwin on my work box running XP barfed running on it.  I used my Opensuse install on my laptop and just mounted a share on my XP machine and ran it from linux and it worked like a charm.

#!/bin/bash
for f in `ls`
do
echo “Prefixing Zero to filename $f…”
mv $f 0$f
done

Simple file sharing and Sophos

February 12th, 2009

We’re a Novell shop. No domain. Workstation policies are handled via zenworks. We have recently switched over to Sophos for virus scanning. Because we’re not running in a windows domain environment, I’m having difficulties forcing the virus scanner out using the Sophos enterprise console. I can manually install the client and the client will grab updates and policy settings from a Novell “share”, but the enterprise console is crippled.

Here’s the scenario. Workstation running XP PRO SP3. 2003 Server running the enterprise console. Both machines are in the same workgroup. I have a user on the server with the same username and password as a user on the workstation. The workstation user is in the ‘administrators’ group. I have a workstation policy(via zenworks) which will turn off simple file sharing at logon. At that point, I can push the sophos scanner out to the machine and/or simply go to \\machinename\C$ and see it’s C: drive. If the machine is sitting at the logon screen, I can’t push the sophos client out or even go to \\machinename\C$ to see the C: drive.

Is this by design? If so, is there anyway around it?