New answers tagged

1 vote

Should I remove ICMP Protocol from firewall rules base on security concern?

There's been many discussions around ICMP allowing leaking type of messages. However, it was strengthen in ICMPv6 which would mean that all the CVE about those messages are probably obsolete (see CVE ...
  • 2,419
0 votes

katello-agent for CentOS Stream 9?

I just received this message from the Foreman site: Dirk Packager 10h Yes, it will be supported on CentOS Stream 9, but the software must be ready for the newer version of Ruby, NPM, NodeJS, … before ...
  • 1
0 votes

How do I send a window to the back (lower it) in GNOME Shell?

It is disabled by default but a hotkey can be assigned here: Settings -> Keyboard -> Keyboard Shortcuts -> View and Customize Shortcuts -> Windows -> Lower window below other windows
0 votes

docker: Error response from daemon: failed to create shim: OCI runtime create failed

CentOS 7 default kernel (3.10) has some problems with the latest Docker releases. It needs to be updated to kernel version 5+. https://forums.docker.com/t/centos7-docker-hello-world-fails/68941/4 I ...
  • 251
0 votes
Accepted

why the result of `yum deplist` and `yum install --downloadonly` is different?

yum install selects all the missing dependencies, taking into account packages installed in the system, and processing all the given packages’ dependencies including transitive dependencies. yum ...
2 votes
Accepted

rsync does not exclude specified directory starting with a hash character (#)

I'm going to answer this to say that with rsync version 3.1.3 protocol 31 I cannot reproduce the issue as ORIGINALLY described. (Raspbian GNU/Linux 10 "buster".) The modified question shows ...
  • 93.6k
0 votes

Connection timed out no servers could be reached, port is open but connection refused

If you are ok with iptables and selinux; you must check all network services status once on your machine. The issue I found is network.service ; was failing on the vm.
0 votes

How do I install an older version of Apache httpd in CentOS 6 using YUM

By mistake i have deleted mod_ssl package from server. Can i reinstall without removing all httpd conf files. I tried to install but getting below error. You can skip repo name [root@gabsvrameyo yum....
  • 1
0 votes

What's the difference between /usr/lib/systemd/system and /etc/systemd/system?

The runtime files in /run/systemd/system stem from the ability to make modifications to a process (unit) during the current boot without that change/modification persisting across a reboot. From ...
  • 1
0 votes

CentOS 6: Group descriptors corrupted

It depend on how you are using corrupted file system, you may need to run fsck to fix these error and for that you need to unmount the related mount point. So you don't have to take complete system ...
  • 628
0 votes

lsof - age of file

I tried to get this for myself. What I came up with is this: #!/bin/sh BASE=`basename "${0}" ".sh" ` TMP="/tmp/tmp.$$.${BASE}" #COMMAND PID USER FD ...
1 vote

CentOS buffer/clipboard usage in console-only environment

Plain Linux text terminal is quite limited in terms of its abilities. Not true at all! Linux Bash Terminal Keyboard Shortcuts Shortcut Action Bash Navigation Ctrl + A Move to ...
0 votes

Decrease /home and increase /root without losing data

It's fairly easy to use e.g. a SystemRescueCD, and use gparted to do the resizing while the filesystems aren't mounted. Regarding the shrinking: you may be out of luck if you went with the DeadRat ...
  • 5,809
0 votes

missing disk space on server

It's 1 server out of several 100 with the same configuration and partition Can you estmate what real fs usage should be? Is it 6GB is to small? df get info with statvfs() wich reports number of free ...
  • 441
0 votes

Failed to start The Apache HTTP Server - httpd.service failed

This command: yum --enablerepo=epel install perl-DateTime-TimeZone* returned the following error for me: Error: Unknown repo: 'epel'
0 votes

CentOS 7 - yum install not working

First install EPEL(Extra Packages for Enterprise Linux), then install your need packagename $ yum -y install epel-release $ yum -y install autossh
0 votes

How to automatically run a command when directory updates?

You can monitor directory with inotifywait and run a command when file is added: inotifywait -m -e create -e moved_to --no-newline --format "%f%0" /opt/data | \ while IFS= read -r -d '' ...
  • 366
0 votes

missing disk space on server

The best tool to figure out what's taking space on a fs (but NOT deleted-but-sill-open-files) is ncdu. Try ncdu -qx / to diagnose your rootfs. Since your problem persists after a reboot, it seems that ...
  • 231
0 votes

mdadm RAID1: can you grow to 3 disks, then revert back to 2?

I had a 'dying' drive, as suggested by SMART, in a RAID10 config. I was looking for a similar solution, so as not to degrade the array before adding the new drive. I used mdadm --replace and did what ...
0 votes

missing disk space on server

On running system you should check disk usage as root user to have access to all files and dirs. Maybe your root fs has quota enabled. Check xfs_quota -x -c 'free -hi' / Boot from live cd (gparted, ...
  • 441
3 votes

missing disk space on server

It seems likely there are a significant number of files hidden under one of the boot, dev, run, sys mountpoint directories that are usually inaccessible due to other filesystems being mounted there. ...
  • 93.6k
0 votes

No longer able to enable my network interface in Centos 8

Did you clone your VM? I had also the same issue and the same solution worked. In my case I had cloned a VM from the existing Linux VM. Its better to do basic configuration of the Primary VM from ...
1 vote
Accepted

Why does journaltcl logs start only today when the last reboot was done 5 days before?

A glance at the logrotate status output does seem to confirm that the scality app's logs were rotated. However, there is a bit of confusion here because there are two sets of logs to consider, and ...
  • 83.5k
1 vote

Read and convert date from file

$ let diff=($(date +%s -d 'today')-$(date +%s -f VM1_EOMAP_TIME.log))/60 $ echo "$diff"
  • 2,109
1 vote

Why mce panic @4.18 kernel pass @5.15 kernel

As I has suspected when commenting & answering your very first related question you are typically facing a double fault. I add here : and possibly a triple. (under the 4.18) Regarding the 4.18 ...
  • 3,865
1 vote
Accepted

Why mce panic @4.18 kernel pass @5.15 kernel

Based on a couple facts listed below, my working theory is a uncorrected hardware memory error (UHME) occurred resulting in a NMI. During processing the NMI, a page fault happens. There may an order ...
1 vote

Read and convert date from file

Your problem is quoting. And that you should use date -u to compensate for timezone. $ echo "07 Sep 2022 16:30" > infile $ var="$(<infile)" $ cat infile; echo "$var"...
1 vote

Read and convert date from file

If your bash is recent, the current time in epoch seconds is builtin: $EPOCHSECONDS Otherwise, bash's printf can get it with the %(fmt)T directive and magic value "-1": printf -v ...
0 votes

LV Write Access read/write (activated read only) problem

It's a virtual disk. Check that your underlying host hasn't run out of disk space
  • 93.6k
2 votes
Accepted

if condition always false despite the condition being true upon manual execution

The problem is that you're testing the output of your command sequence rather than the status. Try this instead #!/bin/sh if grep -v '^#' "$HOME/2_need_softwares.txt" | grep -iq mongo then ...
  • 93.6k
0 votes

Unable to boot to Windows 10 after installing Centos 7 x_86-64 minimal

I don't know if it's the case on CentOS, but in Fedora (the "incubator" for RedHat/CentOS), the minimal selection doesn't install the program which, needed by os-prober. Try to do sudo yum ...
  • 1
0 votes

Why mce panic @4.18 kernel pass @5.15 kernel

It seems BUG_ON(true) will trigger a kernel BUG which is invalid opcode 0000 If yes in this case, then BUG_ON(!in_nmi()); trigger this dump.
  • 333
0 votes

Telnet: Connection refused for specific port only. [CentOS 8]

Can you elaborate on what you did ? "opened redis config to bind 0.0.0.0" is pretty vague as i have no clue what redis is supposed to be. I have the same problem but mine was already on 0.0....
0 votes

Is there a way to retrieve UUID information of an unmounted hard drive?

blkid should work with unmounted disks, but you must make sure that the disk is formatted. List disks: $ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 1,7T 0 disk sdb 8:16 ...
  • 101
0 votes

Why mce panic @4.18 kernel pass @5.15 kernel

Think it is not related to the kernel, but simply a HW memory error whereby you hit that memory address with the newer kernel and not (yet) with the old one. Have you performed a mem test?
0 votes
Accepted

Running a few commands (that then ask questions) on startup

It wants to authenticate because you're not root. So starting from rc.local will work as that runs as root. But this is not the way to go - uwsgi is a service so can just be set to start at bootup ...
3 votes

"route add/del" in bash script does not work when invoked from within systemd service

Ok, found what the problem is, if the service type is oneshot one needs to add to it: RemainAfterExit=yes otherwise what seems to happen when you run systemctl start <service> is that ExecStart ...
  • 41
0 votes

fpsync syntax error

Remove -lptgoD -v from the options list as this is already included in the default rsync -av command generated by fpsync. You haven't quoted the parameters for the -e ssh -p 222 so these will be ...
  • 93.6k
1 vote

Run program with specified library

If you preload a library, the dynamic linker will use that to bind symbols before looking for other libraries: LD_PRELOAD=/path/to/library.so program You can check this beforehand with ldd: ...
1 vote

Run program with specified library

You have a couple of options here. The most common would be LD_LIBRARY_PATH=/custom/path:$LD_LIBRARY_PATH ./yourprogram Second, slightly more powerful is LD_PRELOAD=/custom/path/lib.so ./yourprogram ...
  • 4,408
0 votes

Where do I get "Development Tools" for CentOS 7 when trying to install via yum?

I was also trying the same to isntall Development Tools for CentOS 7 but couldn't make a way. Finally I did something alternative. You can install the following, this also includes basic development ...
  • 101
0 votes

Restrict User Functions to only "su" to other users

Both parts of the question should be possible to solve by adding proper entries in /etc/sudoers file by command visudo issued from the root account. There you can allow or disallow users to have ...
  • 291
0 votes

Can't open syntax.vim error when using vimrc

I had this error after using "export VIM=vim" in my shell startup script. I had copied someone else's from the internet, so my VIM variable wasn't set properly. Removed the line from .kshrc (...
0 votes

CentOS7 Log User Activity from SFTP

Please check this first: https://linux.die.net/man/8/sftp-server From here you can choose what is available and what is the perfect option according to your demand; logging "user activities"....
  • 11

Top 50 recent answers are included