Posts

Enable https on Apache website

How to install OpenSSL and mod ssl First need to install the openssl and mod ssl and then will generating the certificate to be used. Open a terminal prompt and issue the following command  [root@Centos7 conf.d]# yum install mod_ssl Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile  * base: mirror.nbrc.ac.in  * epel: kartolo.sby.datautama.net.id  * extras: mirror.nbrc.ac.in Resolving Dependencies --> Running transaction check ---> Package mod_ssl.x86_64 1:2.4.6-67.el7.centos.5 will be installed --> Finished Dependency Resolution Dependencies Resolved ========================================================================  Package                     Arch                 ...

How install xrdp on CentOS 7 / RHEL 7

How to install xrdp on CentOS 7 / RHEL 7 1. First Install Gnome on CentOS 7 2. Install and configure EPEL repository. [root@Centos7 system]# yum install epel-release Loaded plugins: fastestmirror, langpacks base                                                                                                           | 3.6 kB  00:00:00 extras                                                                                                         | 3...

How to fix postfix/smtp Network is unreachable error

While configuration postfix authentication getting the error status=deferred (delivery temporarily suspended: connect to smtp.office365.com[2603:1026:3:ca::2]:587: Network is unreachable) its because of you were not using IPv6/ wrong settings for ipv6. You can either use IPv4, or correct your IPv6 settings. [root@mailserver postfix]# netstat -nutlap | grep 25 tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      3956/master tcp        0      0 127.0.0.1:38442         127.0.0.1:3306          ESTABLISHED 2596/httpd [root@mailserver postfix]# vi /etc/postfix/main.cf [root@mailserver...

sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set

Getting the error while running the sudo -s to become root sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set 1.Login the server using root and change the permission of /usr/bin/sudo chmod 4755 /usr/bin/sudo 2. if you do not have root password then reboot the server on single usermode and run these commands. mount -o remount,rw /dev/mapper/lv_root / chown root:root /usr/bin/sudo chmod 4755 /usr/bin/sudo restart

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 authenticat...

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 alread...

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