July 2013
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
293031  

Categories

July 2013
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
293031  

Linux Kerberos Configuration Guide

SERVER auth.example.com * yum install krb5-server krb5-workstation pam_krb5 * conf files – /etc/krb5.conf – /var/kerberos/krb5kdc/kdc.conf – /var/kerberos/krb5kdc/kadm5.acl – /etc/pam.d/system-auth

* kdb5_util create -r EXAMPLE.COM -s * kadmin.local -q “addprinc admin/admin” * kadmin.local -q \ “ktadd -k /var/kerberos/krb5kdc/kadm5.keytab kadmin/admin kadmin/changepw” * kadmin.local -q “addprinc testuser” * kadmin.local -q “addprinc -randkey host/auth.example.com” * kadmin.local -q “ktadd -k […]

Encrypt/Decrypt string with openssl

Sometimes it can be helpfull to encrypt/decrypt strings on Linux.

Of course we can install tools like crypt but is not always available after default installation.

Good thing is that we also have openssl which is nearly always installed on a linux server.

How to encrypt a string with openssl :

$ echo “juicy” […]

Shutdown or Reboot Sun Solaris

Solaris is usually used as a server operating system. Because of this, you want to make sure that you shut the system down as gracefully as possible to ensure there isn’t any data loss.

For every application that is installed on your server, you should make sure that you have the correct scripts in /etc/rc(x).d […]

Manage with Remote Desktop Services

This topic includes sample Windows PowerShell cmdlets that you can use to automate some of the procedures described. For more information, see Using Cmdlets.

1.1. Manage updates automatically with Windows Update

To verify the current Windows Update setting, at a command prompt, run the following command:

Cscript scregedit.wsf /AU /v

To enable automatic updates, run […]

Switch to Server with a GUI mode

There may be situations in which you need to use the graphical user interfaces available in Server with a GUI mode. You can switch the system to Server with a GUI mode by following the steps below, although a restart is required. For more information about the differences between Server Core mode and Server with […]

To configure Windows Firewall to allow MMC snap-in(s) to connect 2012

To allow all MMC snap-ins to connect, run

Enable-NetFirewallRule -DisplayGroup “Remote Administration”

To allow only specific MMC snap-ins to connect, run:

Enable-NetFirewallRule -DisplayGroup “”

Where:

Rulegroup is one of the values from the table below, depending on which snap-in you want to connect.

Proxy server with Squid, Dansguardian on CentOS and CBQ

The advantages of using a proxy server within a company, or even a small network are endless, ranging from bandwidth savings, using the cache to a decent content filter. In this tutorial I will show how to configure a proxy using CentOS. Resources used

Hardware In our specific case, I was fortunate to have a […]

Logon User SID Details

Whoami / ? -> To get the Help

whoami /All > mydetails.txt -> It will get all the details of the user Eg: User SID and etc

Change Server 2008 Product Key

Remove the Existing Product Key from Server

slmgr.vbs -ckms

Enter the New Product key in to Server 2008

slmgr.vbs -ipk xxxx-xxxx-xxxx-xxxx

Note: Replace the xxxx by given code

If the product code is correct this should return a dialog box indicating success, otherwise it fails. Once you have specified the correct product code it’s time […]

Logoff remote desktop sessions via CMD

To List the session in remote server we use quser.exe

Display information about users logged on to the system.

QUSER [username sessionname sessionid] [/SERVER:servername]

username Identifies the username. sessionname Identifies the session named sessionname. sessionid Identifies the session with ID sessionid. /SERVER:servername The server to be queried (default is current).

Example:

C:>quser /server:testserver

USERNAME […]