Skip to main content

New answers tagged

0 votes

Why is the group permissions rwx for folder but read for newly created files within it?

In RHEL/Rocky 8.x, all system services have been changed from SysVinit scripts to systemd unit files, so changing the umask of httpd requires creating an override file for httpd.service: Step 1: run ...
telcoM's user avatar
  • 101k
2 votes

How do I get linux flavors, like Fedora, RHEL, Amazon Linux, and others that don't update motd on login to do so?

This is usually only an issue on machines where people log on primarily remotely. So, the right place to do this is not PAM, but the login shell – exactly the profile you don't want to "fiddle&...
Marcus Müller's user avatar
0 votes

How do I get linux flavors, like Fedora, RHEL, Amazon Linux, and others that don't update motd on login to do so?

We can use PAM to execute a custom script on login: Ensure update-motd is installed via your package manager. Edit the PAM config for SSH /etc/pam.d/sshd: ... session required pam_selinux.so ...
four43's user avatar
  • 109
1 vote

Why is the group permissions rwx for folder but read for newly created files within it?

SETGID bit -- set-group-ID bit -- as the name says keeps the group id, not permissions. Change the apache umask to have proper permissions.
Adam's user avatar
  • 111
2 votes

What important side effects causes on a RHEL system to disable user namespaces?

Namespaces are what drives containers, might make a lot of isolation methods possible, and might be used by daemons as additional optional layer of security. They are quite a central piece in modern ...
Marcus Müller's user avatar
1 vote

Why is my stub-resolve.conf missing?

After upgrading from Ubuntu 22.04 to Ubuntu 24.04, I found on two of my systems that name resolution was failing, with symptoms like Porcupine's comment here. Symptoms: /etc/resolv.conf was a symlink ...
puzzlement's user avatar
-1 votes

wipefs + disk not cleaned

This little trick forces to clear the partition table. Do a dd of zeros the the device and break after couple of seconds. dd if=/dev/zero of=/dev/sda
Kaleem Khattak's user avatar
0 votes

ext4 filesystem on RHEL 7

another test was that on my test machine I made sure rh-7 ext4 is created with partition /dev/nvme1n1p1 and mounted with some test files in it. After I do the upgrade to rh-8 I was able to mount ext4 ...
user2037551's user avatar
1 vote

ext4 filesystem on RHEL 7

Formatting raw devices as partitions is extremely ill-advised. The GPT partitioning scheme data structure occupies less than 1MB, which is nothing in this day and age. If you still pursue this, you ...
Artem S. Tashkinov's user avatar
2 votes

ext4 filesystem on RHEL 7

when I try to list the partitions on /dev/nvme1n1 (with ext4 type filesystem) I get the following msg: the old ext4 signature will be removed by a write command. fdisk /dev/nvme1n1 does not see the ...
telcoM's user avatar
  • 101k
0 votes

diagnosing chronyc sources unusable - time won't sync

in my case the cause for the ? = unusable as reported by chronyc sources -a -v was not actually having port 123 UDP open in the firewall on my time server. My /etc/firewalld/zones/custom.xml file did ...
ron's user avatar
  • 7,162
1 vote

Debian update-alternatives vs Red Hat alternatives

The commands are very similar but they’re not interchangeable — each variant has features the other one doesn’t. In many instances you’ll be able to use update-alternatives instead of alternatives, ...
Stephen Kitt's user avatar
11 votes
Accepted

How can I confirm for sure that a CVE has been mitigated on a RHEL system?

First, go to RedHat CVE database and search for CVE-2024-1086. It will lead you to this page, which lists the errata that fixed the CVE in each RHEL release. For basic RHEL 8.x (i.e. the latest patch ...
telcoM's user avatar
  • 101k
1 vote
Accepted

What is the difference between Red Hat SysV and Unix System V?

OK, we need to come clean here a bit with terminology, before we can talk content: Prior to RHEL 7, their distributions were built on SysV No. SysV is short for "UNIX System V", and it's a ...
Marcus Müller's user avatar
1 vote

giving variables a default value in a spec file

See the documentation https://rpm-software-management.github.io/rpm/manual/macros.html This will expand to content of variable my_name or to string default_name if variable my_name is not defined: %{?...
msuchy's user avatar
  • 1,480
0 votes

Mounting BTRFS in RHEL 8

I have the same issue on RHEL 9. Now what I'll tell you to do is not smart, but it works. To get a kernel with btrfs, I installed kernel-ml from elrepo and rebooted. This alone is enough for me to ...
Mingye Wang's user avatar
  • 1,203
5 votes
Accepted

giving variables a default value in a spec file

You should be able to use a conditional %if "%{?myname}" == "" %define myname my_name %endif For example, using a very basic spec file: % cat foo.spec %if "%{?foo}" == &...
Stephen Harris's user avatar
0 votes

RHEL 9 nmcli how to change permanently ethtool settings?

[root@101 system-connections]# nmcli c modify enp2s0f0 ethtool.tx-checksumming off Error: invalid property 'tx-checksumming': 'tx-checksumming' not among [feature-esp-hw-offload, ..., ring-tx]. This ...
thaller's user avatar
  • 1,666

Top 50 recent answers are included