New answers tagged

0 votes

How to deduce remote location of RPM that has been installed?

dnf-plugins-core provides core plugins for dnf, including DNF download plugin. To display package RPM download URL, try using dnf download command from dnf-plugins-core package, e.g.: dnf download --...
user avatar
  • 2,310
0 votes

How to use modsecurity with lighttpd

I wrote lighttpd connector to libmodsecurity here: https://github.com/gstrauss/lighttpd1.4/tree/mod_security3 The connector has not been tested and it is not currently recommended since I was not very ...
user avatar
  • 221
-2 votes

How to deduce remote location of RPM that has been installed?

Try using the locate command as in locate <file>. Hope this helps you!
user avatar
0 votes

Mapping Linux users/groups to Windows 2019 NFS Share

I had the same issue and was struggling with it since a log time... Now I intigrated Linux server with AD. Managing all files and directory level permissions from Windows the application user ...
user avatar
  • 1
0 votes

iptables wont let me connect to mysql from remote server

Update your rule as below: -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT -A INPUT -p icmp -j ACCEPT -A INPUT -i lo -j ACCEPT -A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ...
user avatar
0 votes

FreeIPA migrate the current NFSv4 storing home directories to another server

Technically, just copying thenfilws and spinning a new NFS server should be sufficient. You will need to add keytab file for the new server and configure sssd to use LDAP server running on FreeIPA to ...
user avatar
  • 4,208
0 votes

DKIM error: dkim=neutral (bad version) header.i=

In case you're running Exim, the solution might be to edit /etc/exim4/exim4.conf and set DKIM_CANON = simple In case the setting is relaxed Exim may apply changes to message that cause problems for ...
user avatar
0 votes
Accepted

How to recover from the GRUB losing its entries and faced with only "grub> _" at boot?

It turns out that the key to resolve this issue in the context of a Linode server was to disable GRUB_ENABLE_BLSCFG and rerun grub2-mkconfig, eg: $ nano /etc/default/grub ### set: GRUB_ENABLE_BLSCFG=...
user avatar
0 votes

Firewalld drop by default and allow the existing rules that are in place

From the docs: public For use in public areas. You do not trust the other computers on networks to not harm your computer. Only selected incoming connections are accepted. Which means, you are ...
user avatar
1 vote
Accepted

folder size not corresponding to files inside

Is it cpanel? Check your trash. It's probably your recycle bin that has a lot of files.
user avatar
1 vote

How do I install PHP 5.5 on a new version of CentOS or Amazon Linux or Redhat or Ubuntu?

If you want to turn back the time, you can install Docker on this EC2 instance and then load one of the legacy Docker images for PHP 5.5, https://github.com/devilbox/docker-php-fpm Like others ...
user avatar
  • 848
1 vote

fail2ban not creating jails in CentOS

The jail isn't started because files inside jail.d must end with either .local or .conf. So rename your asterisk.full to, say, asterisk.conf. Also don't use both jail.local and jail.d/* files at the ...
user avatar
  • 196
1 vote

How do I install PHP 5.5 on a new version of CentOS or Amazon Linux or Redhat or Ubuntu?

The most straightforward way to achieve this is build 5.5 from sources with necessary extensions and FPM, install it under /opt and configure your webserver to use this particular FPM instance for ...
user avatar
  • 2,161
0 votes

Firewall not keeping relay attempts from reaching postfix

You have configured a Milter and failed to ensure it is running and accessible, Postfix complains that it cannot connect connect to Milter service inet:127.0.0.1:8891: Connection refused. This could ...
user avatar
  • 6,533
0 votes

yum not updating dependency during install

Maybe it is because the inproper Provides in spec file of my-common. I encountered the similar problem, and finally I found that, the Provides in spec was misconfigured. For example, # without version ...
user avatar
  • 101
0 votes
Accepted

How to increase the size for /dev/mapper/centos-root without data loss

# resize the last partition to utilize the free disk space growpart /dev/sda 3 # resize the physical volume to match the partition size pvresize /dev/sda3 # extend the logical volume to utilize the ...
user avatar
0 votes

Centos mailx sending body as attachment

Similar aproach but without a file: RESULT='' for i in "${ARRAY[@]}" do FILE=($(ls /tmp/backup/*$i*.xml -Art | tail -n 1)) BACKUP_NAME=$(grep 'label' $FILE) BACKUP_NAME=${...
user avatar
0 votes

How to configure rsyslog to send multiple logs to a remote server and save them as individual files?

(Trivial answer, but I can't comment yet) You may try more tagging https://www.gilesorr.ca/blog/rsyslog-intermediate-local.html or see Filter Conditions: https://www.rsyslog.com/doc/master/...
user avatar
0 votes

make rpm find dependencies in a specific location

yum install --downloadonly --downloaddir= Try this command to download the required rpms
user avatar
0 votes

Infiniband + KVM

NVidia (Mellanox), the main proponent of Infiniband, has good support for Infiniband virtualization. With NVidia ConnectX cards and SR-IOV support, this works with KVM under Redhat, Centos, Debian and ...
user avatar
  • 101
0 votes
Accepted

pam_sss(crond:session): Request to sssd failed. Public socket has wrong ownership or permissions

The issue has been solved. The problem was, as stated by the error, a permission problem for the file: srw-rw-r--+ 1 root root 0 Jun 1 14:30 pam Fixed it by setting permissions to 0666: chmod 0666 /...
user avatar
  • 13
1 vote
Accepted

Postfix / OpenDKIM config on Centos8

You have the common configuration for dovecot, putting the socket at /var/spool/postfix/private/auth. Since your SASL provider is Dovecot (smtpd_sasl_type = dovecot), Postfix is looking for a socket ...
user avatar
  • 6,533
2 votes
Accepted

How can stop sftp download and upload a specific file in the root user and cat command

I have a text file located in the root folder ... Probably not a Good Idea to start with. Linux has conventions about where files should be placed. The root directory is not one of them. But I want ...
user avatar
  • 1,306
0 votes
Accepted

How to boot custom .iso from CentOs 7

When using a VPS, you must reboot the server and find the virtual terminal immediately. You only have a couple seconds to press any key to boot from the DVD drive, but it's possible. You just have to ...
user avatar
  • 1,365

Top 50 recent answers are included