• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to verify if NX/XD is Enabled or Disabled in CentOS/RHEL 7 and 8

By admin

NX stands for No eXecute and XD stand for eXecute Disable is a technology used in processors to prevent the execution of certain types of code. NX/XD is a hardware cpu feature which is provided in almost all the hardware. Some BIOS has an advanced option of enabling or disabling it. This post will help to check NX/XD the feature is enabled or disabled.

Use the following command to check the status of NX/XD from the OS level.

For example:

1. From dmesg command:

# dmesg | grep "Execute Disable"
[ 0.000000] NX (Execute Disable) protection: active 

2. From journaltcl command:

# journalctl -b | grep 'Execute Disable'
Dec 31 14:30:23  kernel: NX (Execute Disable) protection: active 
Note: It is a hardware feature and available in almost all the hardware, some of the hardware has this feature Enable/Disable in BIOS itself. But it is not recommended to Disable this feature.

Conclusion

NX stands for No eXecute and XD stands for eXecute Disable. Both are the same and are a technology used in processors to prevent the execution of certain types of code. You can also use /var/log/messages file and dmesg command to check if this feature is enabled.

For example:

# cat /var/log/messages | grep "Execute Disable"
[ 0.000000] NX (Execute Disable) protection: active 
# dmesg | grep "Execute Disable"
[    0.000000] NX (Execute Disable) protection: active

Filed Under: CentOS/RHEL 7, CentOS/RHEL 8, Linux

Some more articles you might also be interested in …

  1. How to Run DNS and FTP services in a chroot Jail
  2. Understanding Variables in Bash Shell Under Linux
  3. CentOS / RHEL : How to change the UUID of the filesystem
  4. How to Copy / Move Files and Directories in Linux with “cp” and “mv” commands
  5. “Failed to start test.mount: Unit is not loaded properly: Invalid argument.” – While mounting a fileystem using systemd
  6. CentOS / RHEL : How to disable BASH shell history
  7. Linux OS service ‘dhcpd’
  8. LVM error “WARNING: Inconsistent metadata found” – How to resolve in CentOS / RHEL
  9. How to configure kdump in Oracle Enterprise Linux (OEL 5,6)
  10. How to enable SFTP Logging without chroot in CentOS/RHEL

You May Also Like

Primary Sidebar

Recent Posts

  • What are Command Rules in oracle Database
  • Using Rule Sets in Oracle Database Vault
  • How Realms Work in Oracle Database Vault
  • How to use Privilege Analysis in Oracle Database
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary