You are currently browsing the post archives for 1 July 2009.

Get current authentication provider

Posted on July 1, 2009 at 1:53 am in

SELECT auth_scheme FROM sys.dm_exec_connections WHERE session_id=@@spid
 
This command should return NTLM or Kerberos

Get current authentication provider - continue reading

Comment on Get current authentication provider


Automatic SSH logon

Posted on July 1, 2009 at 1:51 am in

Host1:

ssh-keygen
No PassPhrase (so automatic logon works)
Default filename and path is ok
cat ~/.ssh/id_rsa.pub
Copy content of id_rsa.pub

 
Host2:

Create ~/.ssh
Create ~/.ssh/authorized_keys
Paste content of clipboard into authorized_keys

 
Both steps vice vera
 
At the first logon a warning appears that the hostkey is added
to know_hosts. Yes to proceed.
 
That’s it

Automatic SSH logon - continue reading

Comment on Automatic SSH logon


Find and delete files with specific content

Posted on July 1, 2009 at 1:49 am in

Ever wanted to deleted (or move, copy, what else) all files in a directory? It’s quite easy:
egrep -l NEEDLE * | xargs rm
This command will find all files with NEEDLE in it, pipes the filename (that’s because we need the parameter L) to xargs which then use the STDIN (our filename) and put’s it to rm.
Just play…

Find and delete files with specific content - continue reading

Comment on Find and delete files with specific content

Tags:

Start of the blog

Posted on July 1, 2009 at 1:06 am in

And it’s time again. I’ll start with a blog (again). I’ve already tried it time ago with WSS3.0. Now, because I had to move to Linux-Servers I’m using WordPress.

Start of the blog - continue reading

Comment on Start of the blog


Top