Skip to content

Tag: centos7

Google Cloud Pub/Sub C++ Client: Authentication Failure When Binary Has setuid (root) [CentOS7]

The application (bin) loads the (service account) credentials fine when it has “normal” permissions. This is the run script: However when bin permission are changed: I get this error: E1003 10:02:07.563899584 60263] Could not get HOME environment variable. E1003 10:02:10.563621247 60263] Could not create google default credentials: UNKNOWN:creds_path unset {created_time:”2022-10-03T10:02:07.563943484+09:00″} Any advice would be appreciated. Thanks. Answer As

unzip a list of archives

I need to Unzipped a list of zip archives. These archives are not empty, in each one there are a lot of file. In my directory I have a lot of file zip archive and all have the the name in the same format: but change only the numeric part. I can extract each archive with unzip command but

Why is kill -2 not killing the process?

EDIT: From my tests, it seems not to be possible to terminate a process with the SIGINT/SIGQUIT signal from a script. I do not know why though. I am working on Centos 7, with bash. I would like to know why isn’t kill -2 $pid killing the process. I have a master script that starts a subprocess. That subprocess stays

error while loading shared libraries: cannot open shared object file: No such file or directory

I am currently facing an issue with a project of mine foudn while configuring CI. Resume The problem faced is the following: error while loading shared libraries: cannot open shared object file: No such file or directory. For the problem above I am not installing the google test/google mock framework but I am compiling it. Although it says it

Docker overlay2 resource is busy

I need some help with docker! 😀 When I have to deploy my application, sometimes I have this error OR This is my docker info output: Everytime that the resource is busy error appears, I move the HASH’s directory in /var/lib/docker/(containers OR overlay2) to HASH_old directory and retry to deploy the application, used to work, but now the no such

bash script to auto run on boot, make screen, execute a command and detach

I am using Centos 7 and on boot I would like to: Make a screen Execute a command: osrm-routed –algorithm=MLD ~/osrm-backend/profiles/australia-latest.osrm Detatch from screen (possibly not needed, just as long as I can access it myself after its running in future) Here is something I have thought about, although not correct and wont work filename: Contents of file: With

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 found any good working examples of