Posts

Showing posts from September, 2017

issuse :SASL(-1): generic failure: GSSAPI Error: Unspecified GSS failure. Minor code may provide more information (Server not found in Kerberos database)

root@HPUX:~# realm join --user=domainuser  windows.local  --install=/ -v  * Resolving: _ldap._tcp.windows.local  * Resolving: windows.local  * Performing LDAP DSE lookup on: 192.16.100.194  * Successfully discovered: windows.local Password for domainuser:  * Assuming packages are installed  * LANG=C /usr/sbin/adcli join --verbose --domain windows.local --domain-realm WINDOWS.LOCAL --domain-controller 192.16.100.194 --login-type user --login-user domainuser --stdin-password  * Using domain name: windows.local  * Calculated computer account name from fqdn: HPUX  * Using domain realm: windows.local  * Sending netlogon pings to domain controller: cldap://192.16.100.194  * Received NetLogon info from: GDCADC001.windows.local  * Wrote out krb5.conf snippet to /var/cache/realmd/adcli-krb5-OYG8o8/krb5.d/adcli-krb5-conf-QbSlJr  * Authenticated as user: domainuser@WINDOWS.LOCAL  ! Couldn't authenticate to active directory: SASL(-1): generic failure: GSSAPI Error: Unspecified

Could not join realm: Necessary packages are not installed: sssd-tools sssd libnss-sss libpam-sss adcli

Couldn't join realm: Necessary packages are not installed: sssd-tools sssd libnss-sss libpam-sss adcli root@HPUX:~# realm join --user=domainuser@windows.local  windows.local -v  * Resolving: _ldap._tcp.windows.local  * Resolving: windows.local  * Performing LDAP DSE lookup on: 192.168.20.24  * Successfully discovered: windows.local Password for domainuser@windows.local:  * Unconditionally checking packages  * Resolving required packages  ! Necessary packages are not installed: sssd-tools sssd libnss-sss libpam-sss adcli realm: Couldn't join realm: Necessary packages are not installed: root@HPUX:~# apt-get install sssd-tools sssd libnss-sss libpam-sss adcli Reading package lists... Done Building dependency tree Reading state information... Done adcli is already the newest version (0.8.1-1). libnss-sss is already the newest version (1.13.4-1ubuntu1.7). libpam-sss is already the newest version (1.13.4-1ubuntu1.7). sssd is already the newest version (1.13.4-1u

EPEL Repository in RHEL/CentOS 7/6

 EPEL Repository in RHEL/CentOS 7/6 To enable the EPEL repository on CentOS 7.x, RedHat 7.x, or Oracle Linux 7.0/7.1 This section describes how to download and install the EPEL repository. Download the EPEL repository: wget http://download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm Install the EPEL repository: rpm -Uvh epel-release-7*.rpm Or you can use the commands [root@Centos7 ~]# yum install epel-release Loaded plugins: fastestmirror, langpacks epel/x86_64/metalink                    

install nrpe plugins on Ubuntu & Centos

install nrpe plugins  on Ubuntu & Centos  Find the source code for the latest stable release of NRPE at the NRPE downloads page. Download the latest version to your Nagios server. root@nagiosclient:/# cd /tmp root@nagiosclient:/tmp# wget https://github.com/NagiosEnterprises/nrpe/releases/download/nrpe-3.2.0/nrpe-3.2.0.tar.gz --2017-09-11 14:34:41--  https://github.com/NagiosEnterprises/nrpe/releases/download/nrpe-3.2.0/nrpe-3.2.0.tar.gz Resolving github.com (github.com)... 192.30.255.112, 192.30.255.113 Connecting to github.com (github.com)|192.30.255.112|:443... connected. HTTP request sent, awaiting response... 302 Found Location:  Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|54.231.120.35|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 517743 (506K) [application/octet-stream] Saving to: ‘nrpe-3.2.0.tar.gz’ nrpe-3.2.0.tar.gz               

Install and configure rsyslog Centralized logging server in CentOS

 Install and configure rsyslog Centralized logging server in CentOS 6.5 In this tutorial we will learn, how to install and configure rsyslog 7.6 version on RHEL 6.5/CentOS 6.5 .The scenario is, install and setup rsyslog Centralized Logging Server in RHEL/CentOS 6.5. All the logs from client servers will be sent to Centralized logging server i.e rsyslog server. Check Pre-installed rsyslog package Step 1: First of all check the rsyslog package is installed in your system.Generally by-default we get rsyslog version 5.x , after minimal installation of CentOS 6.x / RHEL 6.x We will install the latest rsyslog package. At the time of writing this post, rsyslog stable version 7.6 was available. You can find the latest package information from rsyslog official website Note: By default, RHEL 6.x and CentOS 6.x has rsyslog version 5.x. So here we will update the rsyslog with new version. You can get the rsyslog version information, by using below given two commands rpm -qa|grep rsyslog

how to spot a spammer on a server ?

The most important file to check is : Quote from: exim main log /var/log/exim_mainlog There you will find all information about exim operation status. These are also useful command to get stats about exim queue: To list email summaries and counts by domain: #exim -bp | exiqsumm To clear emails older than one day: #exiqgrep -o 86400 -i | xargs exim -Mrm To delete emails from queue FOR a particular user: #exiqgrep -ir email@domain.com | xargs exim -Mrm To delete emails from queue FOR a particular domain: #exiqgrep -ir @domain.com | xargs exim -Mrm To delete emails from queue FROM a particular user: #exiqgrep -if email@domain.com | xargs exim -Mrm To delete emails from queue FROM a particular domain: #exiqgrep -if @domain.com | xargs exim -Mrm