Skip to content

Tag: linux

issue in logging in as sudo user

here is the script sample.expect : expecting to log into the host as sudo user. but getting issue [sudo] password for USER: invalid command name “sudo” while executing “sudo” invoked from within “expect “[sudo] password for USER:”” (file “sample.expect&#82…

Running bash script on multiple shells

So I was trying to create a script on bash shell, I came to know that the script doesn’t run on ksh or dash shells. So my question is how you make a script to run on all 3 (bash, dash & ksh) shells. Answer In order to write a script that is guaranteed to be portable between the various

RPM SPEC Systemd enable and start

I have created a RPM SPEC file but I am struggeling with Systemd enabling and starting. Updating the package through yum disables and stops the service. The distribution is Centos 7.x I have installed the service under /etc/systemd/system. This is what I have tried so for but it does not work. I have not foun…

Avoiding kinit when cache still has credentials

I have a systemd service that calls a webservice to perform some maintenance periodically (every minute). The service looks like: now this destroy and reinitializes my kerberos ticket every time. the kinit can take up to 2-3 min. I would like to avoid that step and only kinit if needed. any ideas? Answer Afte…

How to run a dockerfile?

Found a dockerfile that want to create image and run: https://gist.github.com/matsuu/d5b4e83b3d591441f01b7be2ede774e2 Stored it in a new folder as centos-redhat-8-beta.dockerfile on my computer and tried: What is exact command that need to run? Answer Dockerfile is not an extension, per default the file shoul…

Redhat/CentOS – `GLIBC_2.18′ not found

I was trying to run redis server (on a CentOS server) with specific module: and getting error: this is the linux version: Also this is what is showing for /lib64/libc.so.6: Also: Tried as well: What is the process of installing/setting GLIBC_2.18 on Centos/Redhat servers? Thanks.. Answer You can upgrade to th…