Hot answers tagged

2

In addition to permissions & ACLs, files may also have a "security label" (or security context) attached to them, most commonly by SELinux which I believe is enabled in CentOS. For example, if the file was originally created by you in /home/dawid, it'll have the security label of "user personal file" which Apache is not allowed to ...


2

To define a cronjob, you can open up a terminal and type in crontab -e use sudo crontab -e to do this as root user. This should open up your text editor you have defined as your $EDITOR. here you can add your command @reboot npm run dev in the last line and the file should look something like this # Edit this file to introduce tasks to be run by cron. # #...


2

I realized that VM doesn't recognize the clipboard data from some specific applications (like in my case Foxit PDF reader). To workaround, I copy the data from the application to a default location like notepad or even in the start menu search bar. Then again I copy the text from that notepad/start-menu where I pasted it. Then when I go into my VM and ...


2

You temporary disable verifying ssl in yum with the following. echo "sslverify=0" >> /etc/yum.conf yum reinstall -y ca-certificates Remove temporary hack with editor of your choice from /etc/yum.conf Edit: If for some reason, this still doesn't work, you might try the following: Find the package. In the case of RPM packages, I recommend ...


2

(Technically this ought to be a comment under Marcks Thomas's answer, but I don't have the rep for that here.) For readers in 2021 and beyond, https://icanhazip.com/ is still online, works perfectly with CURL, and is now owned and operated directly by Cloudflare (here's the original creator's announcement of the new ownership). It apparently runs on ...


2

The only solution that I came across is this: cat <<EOF| sudo tee /etc/systemd/system/load-realtek-driver.service [Unit] Description=Load Realtek drivers. Before=network-online.target [Service] Type=simple ExecStartPre=/usr/sbin/rmmod r8169 ExecStart=/usr/sbin/modprobe r8169 [Install] WantedBy=multi-user.target EOF sudo systemctl enable ...


2

Software collections (SCL) are designed for parallel installation beside the system default version, thus allowing to run multiple versions simultaneously. This is described in PHP Configuration Tips, especially the switch to FPM for httpd users (as mod_php, used by default in CentOS 7), allow only a single version). Nginx users always use FPM. In remi ...


2

Couple of ways I've done this in the past scp "your script" to the remote server then run it over ssh ssh remote server 'bash -c "./path/to/script"' Port forward the remote hosts mysql port of 3306 to your local host 3333 ssh -L 3333:remote_server_name_or_ip:3306 Then, run your script with sql queries and have it point to your ...


1

See if the following workaround makes any difference. Run the following commands as root / with sudo (every time after reloading rules; shouldn't be necessary after adding new rules without --permanent afterwards though): (Btw, make sure you bare in mind that rules added without --permanent will be gone after reloading, just like the following.) nft add ...


1

Yes, it is possible. The simple Match condition of a port you should only use for the 2222 port - it's the one, where you want sftp only. In the other rule, you need to specify not only port (this would kick out your regular users too), but also another condition (if there are some users or groups which are not to be allowed to use other possibilities ...


1

The inelegant solution: I had this state of recovery = 99.9% for more than a day. After getting impatient, I rebooted the server, recreated the RAID, which then started syncing.


1

After the nc-listener receives the first packet, it calls connect() on the socket to permanently associate it with the remote endpoint (sender host:port) that it just saw. This allows nc to use its standard read() loop instead of the UDP-specific recvfrom(). However, every invocation of the nc-sender uses a new socket and therefore a different ephemeral ...


1

I didn’t know Homebrew worked on Linux. But apparently it does! Seems like those are the official instructions you reference indicate that you need to install some prerequisites before the steps you got to. Just run these two commands and you should be good: sudo yum groupinstall 'Development Tools' sudo yum install curl file git Then afterwards run these ...


1

I was able to fix this problem by simply creating the missing directory and creating an empty uninstall file as follows: mkdir /opt/VBoxGuestAdditions-<version> touch /opt/VBoxGuestAdditions-<version>/uninstall.sh chmod 777 /opt/VBoxGuestAdditions-<version>/uninstall.sh Then, re-run the VBoxGuestAdditions installer. It does not appear that ...


1

The way to release mouse and keyboard from the guest is to press the Host key which is the Right Ctrl key by default. VirtualBox always explains this to you the first time you run a VM and you need to read that If the Host key doesn't work reliably then chances are it has been partly broken, in which case you can go to settings to change the Host key to ...


1

On a default centos 7 install, you can monitor these files for tampering: # logs /var/log/secure /var/log/messages /var/log/audit/audit.log # configs /etc/audit/auditd.conf /etc/ssh/sshd_config /etc/sudoers And some example folders to monitor where files could be uploaded: # common web server root /var/www/ /var/www/html/ # common FTP server folder /ftp/ # ...


1

SSH keys are indeed user-specific, although the user assignment is done on the server and isn't a property of the key itself. The same key can be used to access multiple users/hosts but needs to be separately authorized for each user. On Linux, the list of permitted keys is stored in the ~/.ssh/authorized_keys file within each user's home directory. It ...


1

Please go into the BIOS and confirm that CPC (Collaborative Power Control) is disabled. When CPC is disabled intel_pstate will be used instead by the operating system to control power management.


1

The only way that will actually work is creating a 3rd package, which provides the config.json file and having your two packages "Require:" the config.json-providing package.


1

firewall-cmd --permanent --add-port={80/tcp,443/tcp,9200/tcp,5601/tcp,5044/tcp} firewall-cmd --reload


1

I agree with @Lukas that it it likely that your username/password is not correct. In my case, my companies domain got added in front of the user account (domain\user), while the lab machine was configured to login as user without domain.


1

I know this is old, but for posterity. given the input (as posted by OP), cat << EOF > myfile 1 2 3 4 5 EOF you can solve the problem using awk awk 'FNR > 2 {print $1}' myfile will yield desired result 3 4 5 tested with awk version (GNU Awk 4.1.4, API: 1.1 (GNU MPFR 4.0.1, GNU MP 6.1.2))


1

A bit late to the party but I was looking for exactly the same thing. A drop-in replacement for Send-MailMessage without additional configuration. The best alternative I found is msmtp which is available via yum and apt. echo -e "Subject: Alert aagh!\n\nThe boron control rods have melted, again" | msmtp --auth=off --host=smtp.mycompany.net --port=...


1

Edit your crontab by executing the following command: # crontab -e The first time you do this, it will ask you what text editor to use (e.g. nano). Then add the following line to your crontab: @reboot npm run dev This will execute the command on every boot.


1

So yes, your system is in an inconsistent state. In the future, if dnf freezes up, try switching to another terminal and watching your system logs. Interrupting it with a hard power off is always a bad idea. In the worst case you can issue a kill and then try the transaction again. There are a few things you can try here, but please back up this system ...


1

A potential solution I can think of would be to mount the EXT4 file system to the Windows OS and then once mounted you could setup a script using Robocopy or some other sort or scripted logic to copy over the files that changed which you need to sync to the Linux EXT4 file system. Similarly but from the Linux Centos 8 operating system side, you could mount ...


1

You have done everything as worst as possible. First, you are running a Community Enterprise OS - the last thing you should do, is ./configure and make. Things are managed through package manager only, or you are asking for big trouble. Second, the operation of trying to install Python 2.7 makes no sense, as this is the default Python version in CentOS 7. As ...


1

To directly answer the question: man -a (whatever) may be what you're looking for - this will sequentially and interactively bring up all man pages that match the text you enter, but it will likely bring up way more than you actually wanted. But your problem is different. Your error message indicates that you have no manpages for qmail available. First, ...


1

You did not reload FirewallD after adding the rule. You added the command correctly, but you need to reload FirewallD for it to pick up the new rule. I tested this out on CentOS 8 as loaded within a Vagrant VirtualBox VM on my MacBook. When I initially logged into the VM right after it was built I enabled FirewallD and ran this command: sudo firewall-cmd --...


1

RHEL and CentOS releases are Rolling Updates. Any 7.x "Point Release" will upgrade to the Latest Version, currently 7.9. There are few Good Reasons to Freeze your release at a specific point. Make sure you have one. If so, just replace 7.5.1804 with 7.7.1908. If not, just use the standard Centos-*.repo files.


Only top voted, non community-wiki answers of a minimum length are eligible