- Details
- admin
- Redhat
/etc/hostname
you may preferably use a dedicated command hostnamectl
to do this job. By default when no other options are supplied the hostnamectl
command will display basic information including static hostname: [root@rhel7 ~]# hostnamectl Static hostname: rhel7 Icon name: computer Chassis: n/a Machine ID: 75387b56d72b44b380810499805ec28a Boot ID: 6ad251d0e12a10e3af1894eae5fe5cb6 Virtualization: oracle Operating System: Red Hat Enterprise Linux Server 7.0 (Maipo) CPE OS Name: cpe:/o:redhat:enterprise_linux:7.0:GA:server Kernel: Linux 3.10.0-123.el7.x86_64 Architecture: x86_64
- Details
- admin
- Redhat
vpnc
client which is an opensource alternative to Cisco VPN client. Let's start by VPNC installation on RHEL7. The VPNC package is located within EPEL ( Extra Packages for Enterprise Linux 7 ) repository thus first enable EPEL repository: # subscription-manager repos --enable=rhel-7-server-optional-rpms
- Details
- admin
- Redhat
Any network we are trying to reach is accessed via default gateway only if it is not implicitly overwritten by another static route definition. Let's have a look at a current routing table on our Redhat 7 Linux box:
root@rhel7 ~]# ip route show default via 10.1.1.1 dev enp0s3 proto static metric 1024 10.0.0.0/8 dev enp0s3 proto kernel scope link src 10.1.1.110
- Details
- admin
- Redhat
SElinux
and the system is now using systemd
instead of init
. Nevertheless, those who have already did reset root password on the Linux system will be with the following steps familiar. Here is the procedure of what needs to be done in order to recover a forgotten root password on Redhat 7 Linux:- We need to edit GRUB2 boot menu and enter user single mode
- Next, we need to remount
/
partition to allow read and write - Reset the actual root password
- Set entire system for SElinux relabeling after first reboot
- Reboot the system from a single mode
- Details
- admin
- Redhat
firewalld
daemon. Bellow command can be used to check the firewall status: [root@rhel7 ~]# systemctl status firewalld firewalld.service - firewalld - dynamic firewall daemon Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled) Active: active (running) since Thu 2014-09-04 19:18:47 EST; 3 months 28 days ago Main PID: 539 (firewalld) CGroup: /system.slice/firewalld.service └─539 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid Sep 04 19:18:45 rhel7 systemd[1]: Starting firewalld - dynamic firewall daemon... Sep 04 19:18:47 rhel7 systemd[1]: Started firewalld - dynamic firewall daemon.