Languages

cifs

Automatically copying pstools to the windows server from your linux

Following the path we were... What if we want to use pstools in 50 servers? As an idea, we can creat a shared unit, and make all servers to execute pstools there. But if we have some in some networks, some in some other networks (including DMZ), in a domain or not... Couln't be an easy way to copy them?

With this purpose I've made this little script, doing exactly that: copying pstools to the server we want. First of all it mounts a cifs unit (with smbmount), then copy the files and then umount it.

I've made it to be called from other scripts. For instance, if we make a "winps", we can make it to check if pstools are installed first, and to copy them if they aren't.

In the full article you can see the code an download the file.

SAMBA and special characters (accents, ñ...)

Normally you don't use strange characters in filenames - you don't want problems. But this doesn't mean it can't be done, neither we should avoid it. In fact, applications like Word uses the first line of the document (the title) to suggest a default filename to the user, so if title has accents, so will filename...

Unfortunately, SAMBA doesn't seem to be prepared to show this filenames by default, and substitutes them with an underscore ("_"), so we should change the configuration this way:

Syndicate content