New answers tagged

0

per man 1 tail: -f The -f option causes tail to not stop when end of file is reached, but rather to wait for additional data to be appended to the input. The -f option is ignored if the standard input is a pipe, but not if it is a FIFO. -F The -F option implies the -f option, but tail will also check to see if the file being followed has been ...


0

FWIW, I've had this happen even when I was properly using >> (or some other appending method, e.g. tee -a). In those cases the issue has turned out to be that a different process was writing to the same file, without appending. In that situation, it might be that you can spot the process easily with ps, but if not, this answer has some discussion of ...


0

Most likely a SELinux issue. Do a ls -Z on the files that do/don't work, and chcon to set the context so that it is the same.


1

Checking netstat and firewalld is correct, but a few tips: Disabled firewalld doesn't mean you don't have any firewall set, i.e. netfilter can be controlled by iptables and nftables, so you may need to check that too. $ iptables -nL $ nft list tables Always check for PID/Process name when you're doing network service diagnostic, i.e. netstat -nltp ...


0

I believe that your output was empty because of *ApplyhttpDate, which is using %d/%b/%Y:%H:%M:%S: if this pattern can't be found at the start of the log line, logwatch will not pipe it to /usr/share/logwatch/scripts/services/nginx. $SearchDate = TimeFilter('%d/%b/%Y:%H:%M:%S'); if ( $Debug > 5 ) { print STDERR "DEBUG: Inside ApplyHTTPDate...\n&...


0

The process depends on your SSL certificate provider. If you are doing it with LetsEncrypt and all subdomains are served by the same HTTP server, then just pass each DN to certbot, e.g. certbot certonly --standalone --http-01-port=8888 -d blog.example.com -d labs.example.com -d www.example.com For a commercial SSL provider then if you want a single SSL ...


1

You somehow installed a package named mysql80-community-release intended for RHEL/CentOS 8, but your system is CentOS 7. This package provides the repositories to download MySQL, but it provides packages for RHEL/CentOS 8. This won't work on your system. You need to remove this package and replace it with its equivalent for CentOS 7, i.e. with yum remove ...


1

SNI support was not present in pure-ftpd 1.0.47. It was added in 1.0.48. You should upgrade to CentOS 8, for which EPEL already includes the latest version of Pure-FTPd (1.0.49) with SNI support.


3

By default on direct installs on Linux (so not Docker Desktop, and not a Snap), docker uses /var/lib/docker for storing images, containers, and volumes. The command docker system df will show you disk usage, and docker system prune can be used to remove unused containers and images. To relocate this to another partition, I'd recommend a symlink rather than ...


0

Your firewall is "open" because someone decided to allow virtually every port. Notice the allowed ports contains: 1025-65535/tcp You should remove this and replace it with any ports in that range that you actually need to have opened to the world. (It looks like some are already specified, but you should double check what you actually need.) ...


0

Really comes down to this: You either trust your system admin or you don't. Linux does indeed have what you are talking about, but they could just as easily delete said history given their level of access. What you would need is a separate system that is logging everything done on the Linux system, but it sounds like you'd have to have the same system ...


1

php53u is the Apache module for PHP, commonly known as mod_php. It links against the stock version of httpd, and thus cannot stay installed with httpd24u, which replaces the stock httpd. IUS packages are designed to replace their stock equivalents. If you need multiple versions of PHP or Apache installed, software collections are what you are looking for. ...


0

Old question, but the answer should be pretty timeless: If you can at all, my recommendation would be to keep servers and software up-to-date and in the state recommended by the distribution managers. The alternative if there are no supported and trusted third-party repositories for the software version you need to run, is to compile your version from ...


1

You should be able to track it down using find and the inode number ino=... that you have removed.


0

Check out this snippet from the /etc/sysconfig/network-scripts/ifup-tunnel script # Create the tunnel # The outer addresses are those of the underlying (public) network. /sbin/ip $proto tunnel add "$DEVICE" mode "$MODE" \ ${MY_OUTER_IPADDR:+local "$MY_OUTER_IPADDR"} \ ${PEER_OUTER_IPADDR:+remote "$PEER_OUTER_IPADDR&...


0

yum remove mysql* find / -name mysql rm -rf (all folders listed in find)


1

I think those numbers are quite normal. Your CPU usage is 50%, and not 25% (don't forget the sys load - userprocesses waiting for the kernel to compute something also count as running!) ... Let's take a look at the definition of system load: link A rough summary would be "the average number of running processes (non-idle) over time". From your top ...


2

Since posting my question above, I have managed to get the mail working, so I will post my solution below to hopefully help others. I know it has all be covered before, as I found it all by searching, however bits were missing or didnt work for me so I have put it all together below. This is what got my email working, in two different ways, via gmail and ...


0

Checkout this question, which is quite similar... And, while you are at it, read a bit of introduction about a site-to-site openvpn tunnel here. I really would think twice if I really would setup a complicated setup like this... if you really need two servers for that task, think of the following setup: Server B has a OpenVPN Server instance running on Port ...


3

Foreign SMTP servers are not going to be listening on ports 465 or 587 for general mail; they will only listen on port 25. Ports 465 and 587 are for secure relaying, and systems will accept mail on those ports only for authenticated users. Thus you would need an external mail service to relay your messages properly.


2

Your error is could not open error log file /etc/httpd/logs/ssl_error_log You say you deleted the whole log folder; the problem is that while Apache will happily create the log file at startup, it will not create the folder. /etc/httpd/logs is meant to be a symlink to /var/log/httpd, so the question is "what did you delete?". Execute ls -ld /var/...


1

Recreate it by running as root: touch /var/log/httpd/error_log Then restart apache.


0

The necessary driver tg3 doesn't appear to have been present in RHEL/CentOS 6.0. The first release in which it documented as present is 6.1. And the current 6.x version at the time of your post was 6.5. Update your system.


1

Double backslash at the end of the regex means substitute s/(\w+).jpg$1_00.jpg$ with an empty string. I used this: rename 's/\.jpg/_00.jpg/' *.jpg


0

You can always look at the logs at /var/log/secure to find the ssh logs. You can use grep to list out the exact details. Like if you are looking for a failed attempt you can use like grep -i "failed" /var/log/secure


2

As sshd service managed by systemd, you should look into journal. For example: $ journalctl -u sshd Jul 19 05:24:07 xx-1 sshd[30983]: Received disconnect from 43.254.220.207 port 59846:11: Bye Bye [preauth] Jul 19 05:24:07 xx-fsn1-1 sshd[30983]: Disconnected from invalid user ik 43.254.220.207 port 59846 [preauth] Jul 19 05:26:25 xx-1 sshd[30986]: Invalid ...


0

You need to put /bin on the path. You can make that permanent by editing your shell's configuration file. If you're using bash that would be .bashrc or .bash_profile, if you're using a different shell the file will be different. Note that editing /etc/environment to add /bin will likely fix things regardless of the shell. According to this answer /etc/...


0

As explained in this Stack Overflow post, it may be that you have hit ctrl + a s, which blocks scrolling, making it appear than anything you type is not entered. Hit ctrl + a + q to unblock scrolling. N.b. ctrl + a is the escape sequence of course, so if you've changed that, use whatever you set. All credit to user wkl on Stack Overflow. I'm just posting ...


2

I need to install PHP from Webstatic. But why ? Sorry, but it seems webtatic is a dead project (no change since Oct 2019) and latest version is 7.2.24 (latest being 7.2.32, no 7.3 and no 7.4) so I will heartily recommend to avoid it. I need to run two PHP version in my centos 7 server. Installation of various versions simultaneously is possible using ...


1

Resolution I don't know if this is the best solution, but the issue got resolved when I replaced CAP_DAC_OVERRIDE by CAP_DAC_READ_SEARCH in the CapabilityBoundingSet of /lib/systemd/system/openvpn-server@.service. My understanding is that from a security standpoint this might be preferable anyway. CAVEAT: Although for my configuration this did not raise any ...


2

Capability python(abi) = 3.6 and file /usr/bin/python3 are provided by python3 package in the base repository (reference). You should run yum install openscap-containers while the base repository is enabled. Since yum didn't pick it up as dependency, you have a problem that the base repository was disabled or its repo definition is missing. In the latter ...


1

First of all, make sure you have proper backups. You will effectively be destroying and recreating your data partition, so there's a small but non-zero chance of data loss. If you don't have LVM, the process doesn't have many steps: Note the starting sector for sda3 Enter fdisk and remove sda3 Create a new primary partition from sda3's old starting sector ...


1

The crontab(5) man page gives the answer: The RANDOM_DELAY variable allows delaying job startups by random amount of minutes with upper limit specified by the variable. The random scaling factor is determined during the cron daemon startup so it remains constant for the whole run time of the daemon. So if you put RANDOM_DELAY=60 in your crontab,...


0

Sounds like SSSD to me. Can you show your /etc/nsswitch.conf together with /etc/sssd/sssd.conf plus systemctl status sssd? You also have /usr/sbin/nologin shell set so users won't be able to log in (although they should be able to authenticate). Local users are cached by SSSD


1

The <Directory> containing the .htaccess file must itself allow this, with AllowOverride Options.


0

I had also DHCPREQUEST spam on my logs (Debian 8). I had dhclient (isc-dhcp-client 4.3.1). My setup was a bit peculiar, but I fixed my problems just by removing isc-dhcp-client and installing dhcpcd 6.0.5 (by Roy Marples). dhcpcd seems to be smarter than isc-dhcp-client. Works like a charm now.


0

These commands worked for me after uncommenting the mirror list in the /etc/yum.repos.d/CentOS-Base.repo file and running the following # yum clean all sudo yum clean all # yum update sudo yum --disablerepo=openlogic update # yum install sudo yum --disablerepo=openlogic install git Hope it helps.


0

I had the same problem, so I got to this page. While testing the remove and reinstall iptables solution, I notice, I already had firewalld installed (It should be disabled, but I am not sure if it was). Removing firewalld with: yum remove firewalld And everything goes right....


Top 50 recent answers are included