Linux

macfind

I’ve made a simple bash script to find MAC adresses in DHCP config files. #!/bin/bash if [[ -z $1 || $1 == “–help” ]] then echo “usage: $0 xx:xx:xx:xx:xx:xx ” fi grep -i $1 /etc/dhcpdb/* -R Usage example macfind 00:18:8B:2C:DC:AA Result /etc/dhcpdb/53-nettet/subnet.conf:hardware ethernet 00:18:8b:2c:dc:aa; /etc/dhcpdb/macadresser/it-avd.conf: subclass “it-avd” 1:00:18:8b:2c:dc:aa; # Hans-Henry

Read More
Linux

Samba share permissions simplified

Permission precedence Samba comes with different types of permissions for share. Try to remember few things about UNIX and Samba permissions. (a) Linux system permissions take precedence over Samba permissions. For example if a directory does not have Linux write permission, setting samba writeable = Yes (see below) will not allow to write to shared […]

Read More
Linux

chkrootkit

chkrootkit -x lkm gives more info about the rootkit lmk chkrootkit creates a separate binary called chkproc that allows you to search for hidden processes.

Read More
Linux

Using a usb stick to login to gentoo Linux

It was kinda late, and I wanted to do something tonight…something interesting. I was looking at my usb key when I had this flash…”Could I use my usb key to login to my pc with a certain account ?”. Googling … googling… I need a PAM module to do it. eix time now! #eix pam […]

Read More