Archive for the ‘linux administration’ Category

HowTo: test if suPHP works with your apache installation.

I wrote this small script to verify that my suPHP was infact working on the server.
Copy & paste this in to a file test.php on your server and run it on your favourite browser.
If the current script owner is the same as the user that php runs as, than suPHP works.
<?php
echo ‘Current script owner: ‘ [...]

Leave a Comment

HowTo: Find Extensive Hard Disk Info on Linux

If you want to find additional information on your hard disks in linux you can use an utility called: hdparm.
If you can’t find this utility install it using apt-get on debian: apt-get install hdparm
then at the console type: hdparm -I /dev/sda an it should list something like this:
/dev/sda:
ATA device, with non-removable media
Model Number:       ST31000340NS
Serial Number:      [...]

Leave a Comment

Apache not reading .htaccess

I had this problem on a client’s server. Apache was not reading the .htaccess files thus mor_rewrite was not working. After i did a few searches i found out that the Directory settings in the apache configuration hat AllowOverride None as directive instead of AllowOverride All.
I made the change, restardet apache and all went as [...]

Leave a Comment

Samba: Can’t browse domain computers list. The network path was not foud.

I’ve ran into this situation while configuring a samba domain. I’ve searched for hours in forums and in google and found lots of causes for this issue. In my case i had the following:
i could ping the domain clients using their netbios name ( my pdc was also running as a wins server )
i could [...]

Leave a Comment

HowTo: rename a samba domain member computer from registry

I had the difficult task to reorganise a medium network in a factory. Inbetween all the operations i had to do i also had to rename all the computers in the network and organise them by departments. Now this wouldn’t be such a headache unless all the computers are in a linux domain. As you [...]

Leave a Comment

SSH Password Prompt Timeout

When try-ing to ssh into a linux server from a machine that doesn’t have reverse dns setup you might fall intro the situation where your ssh connection times-out befor you get the password prompt.
In this case, on the server, in sshd_config add the following line to solve your issue:
UseDNS no

Leave a Comment

HowTo: force umount a busy device in linux

Here’s how :
When you try to umount the regular way, if a device is busy you’ll get the following :
dev:/# umount /dev/sda1
umount2: Device or resource busy
umount: /boot: device is busy
This can be solver very easy by entering this :
dev:/# umount -l /dev/sda1

Comments (1)

Useful iproute2 comands in linux

While reading the Link Advanced Routing and Trafic Control howto i decided to extract a list of useful commands, in case i forget them later. I’ve posted them here for whoever finds’em useful.
ip link show – shows the available interfaces on your machine
ip address show – shows the IP addresses attached to your interfaces.
ip route [...]

Leave a Comment

HowTo: Test the link on your network cards in linux

If you work remote and want to test if the link is up or not on your linux interfaces use mii-tool.
If the thing is not already installed on your machine, if you run debian simply use apt-get install mii-tool . After the tool in installed just type mii-tool in your console.
Example:
server1:~# mii-tool
eth0: negotiated 100baseTx-FD flow-control, [...]

Leave a Comment

dk_eom(): resource unavailable: d2i_PUBKEY_bio() failed

Ok, i’ve gotten this error while trying to implement DomainKeys on one of my servers.  I’m using a debian etch with postfix amavis and dk-filter for signing emails. The errors i was getting in the logfiles were:
dk_eom(): resource unavailable: d2i_PUBKEY_bio() failed
SSL error:0D06B08E:asn1 encoding routines:ASN1_D2I_READ_BIO:not enough data
After searching a while over the internet i’ve figured [...]

Leave a Comment

Web Brands