November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Secure Secure Shell

Secure Secure Shell

How to Change Linux User’s Password in One Command Line

I frequently create new user accounts and change or set password for these accounts on a batch of Linux boxes. The create new user can be done by one command line. The problem is to change the password. In Linux, we use passwd to change password, but passwd requires input from stdin to get the […]

rhel7: Message “Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached” is coming on system after setting the hostname

hostnamectl set-hostname <hostname> Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached (g-io-error-quark, 24) Also other commands fail:

[root@rhel7u2a ~]# systemctl restart sshd Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: GDBus.Error:org.freedesktop.DBus.Error.TimedOut: Activation of org.freedesktop.PolicyKit1 timed out (g-dbus-error-quark, 20) [root@rhel7u2a ~] # Resolution The permissions should be […]

NFSv4 mounts show “nobody” as owner and group on a RHEL 6 client

Issue

On Red Hat Enterprise Linux a NFS mounted share shows “nobody” as the owner and groupowner of all the files and directory. Resolution Create the same user on the Server and Client Use a centralized namespace like LDAP domain, NIS, Active Directory etc Root Cause

The observed behavior is an expected and intended behavior […]

XFS Filesystem has duplicate UUID problem Administration

XFS Filesystem has duplicate UUID problem Administration If you can not mount your XFS partition with classical wrong fs type, bad superblock etc. error and you see a message in kernel logs (dmesg) like that:

XFS: Filesystem sdb7 has duplicate UUID – can’t mount you can still mount the filesystem with nouuid options as below:

[…]

Lsyncd on CentOS 7 & RHEL 7

Lsyncd stands for “Live Syncing Daemon“, as the name suggest lsyncd is used to sync or replicate files & directories locally and remotely after a specific time of interval. It uses Rsync & ssh in the backend.

Lsyncd works on Master and Slave architecture where it monitors the directory on the master server, if any […]

CentOS 7 – Create CentOS 7 Mirror

CentOS 7 – Create CentOS 7 Mirror

The tutorial below will show you how to configure a CentOS 7 server with Nginx to act as a mirror for other CentOS 7 servers. Steps First we need to update and install all the necessary packages. yum update yum install -y createrepo rsync nginx Now we need […]

Compiling and Installing Linux kernel from Source

Compiling and Installing Linux kernel from Source

As you many know, Kernel 4.x.x has been released with tones of changes and enhancements. We all know new kernel always have latest drivers, support for new devices, new features, filesystem enhancements.The feature that all Linux IT guys awaits for, yes it’s Live kernel patching permit a user […]

postfix

Biglobe is OP25B because there are regulations, to set via the relay server of Biglobe. Thus SASL to transmit authentication. SPF perform the source domain authentication in. S25R , Greylisting , Tarpitting prevent access from suspicious server approach. Because you do not want to do in the form of a patch to Postfix, the […]

Certificate Management by using gsk7cmd command

Certificate Management by using gsk7cmd command Command: gsk7cmd

Purpose: gsk7cmd is a command line tool for certificate management. Prerequisite: set JAVA_HOME varriable. Example: export JAVA_HOME=/usr/IBM/WebSphere/AppServer/java (this depends on your environment)

Parameters for below examples:

keystore Name: testcacerts.jks / test.kdb password: changeit / testit

NOTE:- If you are practicing below examples kindly practice it in the […]