Skip to main content

All Questions

Tagged with
0 votes
1 answer
473 views

How do I prevent systemd from running my timer after reboot

I have the following oneshot service+timer : $ systemctl cat stop_syncro.service stop_syncro.timer # /usr/local/lib/systemd/system/stop_syncro.service [Unit] Description=Service d_arret de la Synchro ...
SebMa's user avatar
  • 1,883
0 votes
0 answers
112 views

cannot run command on Centos7

I've got a vps using Centos, the release version is 7.9. I've install the unhide in my vps.it does not work. I've check the permission, and the file type. but i still cant run this command . it's ...
HikariNewBee's user avatar
1 vote
2 answers
1k views

RPM none-zero exit code if a package is already installed

I created a new script to install a few local packages on CentOS 7 without internet. I want script exits upon any error set -e rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 rpm --import ./RPM-GPG-...
mercury's user avatar
  • 25
0 votes
1 answer
124 views

Getting a Particular Binary Package from A Source Package?

(Sorry if the title is worded incorrectly - I am a newbie in this domain, so please correct me wherever I am wrong) From https://packages.ubuntu.com/source/bionic/amd64/hdf5, I am trying to get the ...
algebroo's user avatar
  • 101
0 votes
0 answers
222 views

Issue with add Multiple user account and SSH key using Bash script

As per our requirement we provided our devloper group: devs:r-x to /var/log/httpd directory. What is the best way to create a user account (in my case Dev User) in a Group using bash scrip, with the ...
santosh baruah's user avatar
0 votes
1 answer
1k views

How can I correctly run a java batch application (a .jar application) in background on a Linux machine?

I am not a system engineer (I am a software edeveloper). I have to run a Java application (a runnable .jar file) on a Linux machine (Centos 7). I am connecting to a shell via SSH. This application is ...
AndreaNobili's user avatar
  • 7,201
0 votes
0 answers
270 views

How to view or record user's active time in Linux server

I'm a server admin for a university, and we have 4 CentOS servers that students can use for their projects in various classes. The CS professors have asked me to come up with a way to track a user's ...
Beanstalk's user avatar
0 votes
2 answers
87 views

How to delete any archives older than W weeks, but still keep up to N archives?

I have a CentOS 7 directory that gets filled with tar.gz archives for different packages, where each package can create multiple archive versions. I'm trying to find a way to delete any archives ...
boardrider's user avatar
  • 1,153
0 votes
1 answer
436 views

How to call .bash_logout on CentOS

I'm trying to call my own .bash_logout on CentOS when a user logs out. However, even when an 'exit' command is sent, .bash_logout is NOT called/executed (it just logs out). On CentOS, when I type '...
IanHacker's user avatar
  • 103
0 votes
1 answer
132 views

Dos2unix different behavior on macos and centos?

I have a file which I need to convert to unix format, so I am doing dos2unix filename.txt. But the format of the file after conversion is different on CentOS when compared to the macOS format. I have ...
Dookoto_Sea's user avatar
0 votes
1 answer
225 views

Jenkins service user to restart mongodb service

Centos 7. Usually when I would like to run a sudo command as a non root user, I open up the visudo, and add this line to the right place: %<userGroup> ALL= NOPASSWD: <command> when I ...
Dávid Hlavati's user avatar
0 votes
2 answers
44 views

How can I empty files at the same time with same paths?

I have a structure like this: Father: ├───Charlie │ └───lang.log ├───Ava │ └───lang.log ├───Sophia │ └───lang.log ... I would like to clean up the scheme. I try: cat /dev/null > Father/*...
Alberto Moro's user avatar
0 votes
1 answer
1k views

Deleted /usr/bin/docker on CentOs

I wanted to uninstall docker from my CentOs Machine and run this script : curl -sSL https://get.docker.com/ | sh But it told me that the docker command was already available on the system and it ...
xaoc2nd's user avatar
  • 11
0 votes
1 answer
800 views

CentOS - Path shows /usr/local/bin but installer shows path error

I'm trying to install heroku on a virtual machine running CentOS. When I use curl https://cli-assets.heroku.com/install.sh | sh I get an error message saying that my path does not include /usr/local/...
Zex13's user avatar
  • 3
0 votes
1 answer
605 views

Return to ec2-user from a custom user

When creating an ec2 instance I use a bootstrap script. On the instance I install and configure an nginx web server. For security reasons, I need to create a new user (www-data). The www-data user ...
florin's user avatar
  • 103

15 30 50 per page
1
2 3 4 5