Archive for August, 2003

Restricted OpenSSH users

Friday, August 29th, 2003

Did you know that OpenSSH allows you to restrict users from accessing your machine?

By default, OpenSSH allows logins for anyone with a shell and valid password. Imagine a mail server where mail users have a system account. If you would like to deny access to some of them, OpenSSH provides a means of doing so.

(more…)

Let’s stop software patents in Europe

Tuesday, August 26th, 2003

On September 1st the European parliament will vote on a directive that legalizes software patents in Europe. If this directive comes through we will be stuck with software patents in the foreseeable future. The FFII (The Foundation for a Free Information Infrastructure) is organizing a conference in Brussels on August 27 as a last minute protest to raise the attention of yet undecided members of the parliament and asks webmasters to close their websites on August 27th.

(more…)

Recreating /dev/null

Monday, August 25th, 2003

If for some reason you have lost your /dev/null you can easily recreate it by moving a file to /dev/null as root. Another way is to just recreate the soft link (as root again):

devlinks

But if you have messed up the original device in /devices proceed as follows:

mknod /devices/pseudo/mm@0:null c 13 2
chown root:sys /devices/pseudo/mm@0:null
chmod 666 /devices/pseudo/mm@0:null
cd /dev
ln -s ../devices/pseudo/mm@0:null null

Disable replies to broadcast pings

Monday, August 25th, 2003

Some types of DoS – Denial of Service – attacks (i.e. smurf, fraggle) utilize IP directed broadcasts in combination with echo protocols and spoofed packets to generate multiplied traffic streams.

(more…)

Lost MySQL root password?

Sunday, August 10th, 2003

Ok, if this is your only problem this little trick will show how to recover your root password.

(more…)

Web bugs (spam)

Sunday, August 10th, 2003

Web bug is a common technique designed to monitor who is reading a web page or email message. It is also known as clear GIF, 1-by-1 GIFs or invisible GIFs.

(more…)

The nohup command

Saturday, August 9th, 2003

When you are working on your system, there will be times when you will want to run commands or jobs that survive to a logout or to an unexpectedly session termination. The command for handling this task is the nohup unix command.

(more…)

Gentoo and masked packages

Wednesday, August 6th, 2003

Maybe you’ve found yourself trying to install a Gentoo package and you got something like this:

emerge -p portmon
These are the packages that I would merge, in order:

Calculating dependencies
!!! all ebuilds that could satisfy “portmon” have been masked.

!!! Error calculating dependencies. Please correct.

(more…)

OpenSSH: disable root access

Sunday, August 3rd, 2003

As part of the OpenSSH package there is a tool called ssh that allows you to remotely log into your servers in a safer way than, say, telnet.

(more…)