All posts by tom

Changing file permissions recursive

Just a note for myself (because I always forget):

# change permissions for files in current directory (and all sub-directories):
find ./ -type f -exec chmod 644 {} \;

# change permissions for directories in current directory (and all sub-directories):
find ./ -type d -exec chmod 755 {} \;

When console columns and lines are not enough

If you want to use a higher resolution on your linux console, you have to add the specific option while loading the kernel.
i.e: kernel /vmlinuz-2.6.25 root=/dev/sda3 resume=/dev/sda2 vga=0x0325

Problem: The settings differ depending on your graphics card.
But: There is an easy way: hwinfo

[ sudo ] hwinfo −−framebuffer

Example output:
Mode 0x0307: 1280×1024 (+1280), 8 bits
Mode 0x031a: 1280×1024 (+2560), 16 bits
Mode 0x031b: 1280×1024 (+5120), 24 bits
Mode 0x0305: 1024×768 (+1024), 8 bits
Mode 0x0317: 1024×768 (+2048), 16 bits
Mode 0x0318: 1024×768 (+4096), 24 bits
Mode 0x0312: 640×480 (+2560), 24 bits
Mode 0x0314: 800×600 (+1600), 16 bits
Mode 0x0315: 800×600 (+3200), 24 bits
Mode 0x0301: 640×480 (+640), 8 bits
Mode 0x0303: 800×600 (+832), 8 bits
Mode 0x0311: 640×480 (+1280), 16 bits

Thanks to Gerd [de] for the hint.

SUSE Linux 10.1 discontinued and out of support

SUSE Linux 10.1 has reached End of Life : /

Quote from the opensuse-security-announce mailing list:

With the release of an mysql security fix on August 13 we have released
the last update for SUSE Linux 10.1. (Actually 10.1 was discontinued on
May 31st, but the queue took a bit longer to flush from all updates.)


Critical Bug in Joomla 1.5.5 (and older 1.5.x versions)

The password of the user with the lowest ID (typically an administrator) can be reset by an unauthorized user in Joomla 1.5.x installations prior version 1.5.6 because of a bug in the password remind functionality.

All 1.5.x installations prior to and including 1.5.5 are affected

The Joomla developer team advises to upgrade to 1.5.6 (or patch the /components/com_user/models/reset.php file with the code below).

After global $mainframe; on line 113 of reset.php, add:

if(strlen($token) != 32) {
    return false;

See: Joomla! Developer – Password Remind Functionality