Centos 7 change root passwd

February 7th, 2017 No comments

How to change root password on Centos 7

  1. reboot press ESC to go into menu, then press ‘e’ to edit
  2. change line of Linux 16 and change ro with rw init=/sysroot/bin/sh
  3. CRTL-X to boot
  4. chroot /sysroot
  5. passwd root
  6. touch /.autorelabel
  7. reboot -f

Read more…

Categories: HowTo, Linux, Security Tags:

check schedulle task nagios

February 3rd, 2017 No comments

Script to get failed schedulle jobs (plugin for Nagios/Centreon)
REQUIRES: schtasks.exe
Tested only Windows 2003

Read more…

Categories: Centreon, Nagios, plugins, script, VbScripts Tags:

vbs to list all local users of Adminisitrator

January 26th, 2017 No comments

VBS Script to list all local users of Adminisitrator and Remote Desktop,id,desctiption,enable/disable, last_login(if local)

Read more…

Windows Enumerate Servers

January 26th, 2017 No comments

Back to some VBS scripting…
This script enumerates all Servers on the current domain and test it with a ping then writes to a server.txt file.

Read more…

Categories: script, VbScripts, Windows Tags: , , , ,

yum update security check script

January 12th, 2017 No comments

simple bash script to check for missing security

this is important to make sure your linux is updated
here is the script:

Read more…

Categories: bash, BashScripts, Linux, Security Tags: , , ,

Failed to read keytab [default]

January 10th, 2017 No comments

When starting sssd in centos 7 I was getting this
ERROR:
Failed to read keytab [default]: No such file or directory

Read more…

Categories: HowTo, Linux Tags: , , ,

centos 7 disable useless services

January 4th, 2017 No comments

This some of the tuning I do on a centos 7 install

REMOVE USLESS NETWORK INTERFACE
brctl delbr virbr0
systemctl get-default
systemctl set-default multi-user.target

Read more…

python nagios scrape

December 22nd, 2016 No comments

Wrote a script in python using beautiful soap to scrub a web page.

Categories: python Tags: , , ,

Python 3 Django Mariadb

December 7th, 2016 No comments

Centos 6 x64 Python 3 Django Mariadb
I found out the hard way that python 3 default mysql driver does not work
Anyways You will need to install mariadb devel

Read more…

Categories: HowTo, Linux Tags: , , , ,

Centos 6 python 3.5 django

December 7th, 2016 No comments

I do like working with RedHat / Centos 6 (python 2.6.6) but when it comes to Python, urghh…They just remain old old, its sad. I dont know why. Solution is to use virtualenv and install a second python version.

Read more…