Forfatterarkiv: mike

Sudo crash course

The sudo utility can help you delegate some system responsibilities to other people, without giving away full root access. It is a setuid root binary that executes commands on an authorized user’s behalf, after she has entered her current password. … Læs resten

Udgivet i Knowledge Base, Old Base | Skriv en kommentar

Append only logfiles freebsd/linux

Use file attributes to prevent intruders from removing traces of their break-in. In the course of an intrusion, an attacker will more than likely leave telltale signs of his actions in various system logs. This is a valuable audit trail … Læs resten

Udgivet i FreeBSD, Knowledge Base, Linux, Old Base | Skriv en kommentar

Access Control Lists , advanced permisions in linux

Most of the time, the traditional Unix file permission system fits the bill just fine. But in a highly collaborative environment with multiple people needing access to files, this scheme can become unwieldy. Access control lists, otherwise known as ACLs … Læs resten

Udgivet i Knowledge Base, Old Base | Skriv en kommentar

Loosy dir permisions and sticky bit

# find / -type d \( -perm -g+w -o -perm -o+w \) -exec ls -lad {} \; Any directories that are listed in the output should have the sticky bit set, which is denoted by a t in the directory’s … Læs resten

Udgivet i Knowledge Base, Linux, Old Base | Skriv en kommentar

Scan for SUID and SGID programs

Unfortunately, a poorly written SUID or SGID binary can be used to quickly and easily escalate a user’s privileges. Also, an attacker who has already gained root access may hide SUID binaries throughout your system in order to leave a … Læs resten

Udgivet i Knowledge Base, Old Base | Skriv en kommentar

Secure mount points

A mount option is a flag that controls how the filesystem may be accessed. It is passed to the operating system kernel’s code when the filesystem is brought online. Mount options can be used to prevent files from being interpreted … Læs resten

Udgivet i Knowledge Base, Linux, Old Base | Skriv en kommentar

Set up IPSEC in openbsd

Use IPsec the OpenBSD way. Setting up IPsec in OpenBSD is fairly easy since it’s compiled into the kernel that ships with each release and is enabled by default. All that is left to do is to create the appropriate … Læs resten

Udgivet i Knowledge Base, Networking, Old Base, OpenBSD | Skriv en kommentar

Using CVS

Opret CVS: $ export CVSROOT=/home/cvs/cvsroot $ cvs init Skal nu have noget source i vores cvs, vi laver noget fiktiv source: $ mkdir bigproject $ cd bigproject $ touch source1.c $ touch source2.c $ touch source3.c $ mkdir libs $ … Læs resten

Udgivet i Knowledge Base, Old Base, Windows, Workstation | Skriv en kommentar

Vladimirr’s pancakes

Ingredients: 250 gram wheat flour, 6 dl milk, 4 eggs, 2-3 teaspoonful sugar, 1/4 – 1/2 teaspoonful salt 60 gram margarine HOWTO: Mix the milk and the flour, add sugar and salt and the 4 eggs and mix it all. … Læs resten

Udgivet i Knowledge Base, LifeHack | Skriv en kommentar

Tilpas vindue efter indholds stoerese[IE]

<body leftmargin=”0″ topmargin=”0″ rightmargin=”0″ onblur=”self.close();”> <div id=’mydiv’> 1blablablalbalbalbalabababfgadZ 2blablablalbalbalbalabababfgadZ 3blablablalbalbalbalabababfgadZ 4blablablalbalbalbalabababfgadZ </div> <script> w=document.all[“mydiv”].clientWidth || document.getElementById(“mydiv”).offsetWidth; h=document.all[“mydiv”].clientHeight || document.getElementById(“mydiv”).offsetHeight; document.write(document.body.offsetWidth); document.write(document.getElementById(“mydiv”).offsetHeight); window.resizeTo((document.body.offsetWidth+6),(document.getElementById(“mydiv”).offsetHeight+30)); </script>

Udgivet i Knowledge Base, Old Base, Programmering | Skriv en kommentar