Skip to main content


Showing posts from December, 2010

Changing File and Directory Permission en masse.

Running msec on one of my Mageia Linux machines turned up a number of world-writable files. These are potential security problems, especially on a machine that faces the Internet. The obvious solution was to use chmod to remove any world writable permissions. But there's the problem. The chmod command has a recursive directive, -R , that would work except that it would change permissions on the directories as well. After all in *NIX, all directories are files. Thanks to my friends at TWUUG , I discovered that the find command, used with its -exec directive could accomplish what I wanted. find /xxx -type f -exec chmod o=-w {} + ; Breaking this down: find - the find command itself. Depending on what files you are modifying, you may need to be root. /xxx - the path to where the files are located. -type f - this tells find to look for files; type d would tell it to look for directories. -exec - this directive tells find to execute the command that follows, in

Going Postal with Postal2

I have always enjoyed computer games that are out of the ordinary. Postal2 by Running With Scissors is certainly that. It is both amusing and offensive in a very politically incorrect way, featuring Gary Coleman, the Taliban and dead cow heads. At , I am in the process of documenting how to install and run the game on a Linux computer as well as run the win32-only 1409X version of the dedicated Postal2 server. The site is also providing me with experience in site development using SSI ( Server Side Includes ) and Cascading Style Sheets ( CSS ). UPDATE I have no made any progress other than to realize that the 1409X version can only run well under MS Windows, so it looks like a VirtualBox WindowsXP instance would do the trick, but my webserver lacks the computing power to do that, so it looks like I'm waiting on a hardware upgrade to move forward.

A screen-like command for X applications

The screen command has been very useful for running programs on remote machines because you can detach the sessions and log out of the remote machine and the application is still running remotely. It would be nice to do that with a graphical application since you can connect to a remote graphical application via X or VNC or similar applications, any graphical application terminates when you close the session. That's changed with xpra . Connecting to an X server (the special Xvfb server, basically an X server minus any video drivers so it can run on a headless computer -- yes, X with no video card) as a compositing window manager on the remote computer allowing you to log in later (even from a third computer), re-attach the session and the program is still running. The parent project that includes xpra is partiwm , a tiling window manager. The current version of xpra has many enhancements from the version originally reported here. Compiling and Installing on Mandriv