In this post I am going to show how to do network configuration in rhel7/centos7. We have ip command introduced in linux way back but we never used it. In this post we will use ip related commands which isnot easy to use as it has many options need to provide to get relevant output.
to see IP address details normally we used ifconfig command we check the same using ip addr show command.
Here we an see ipv4 address of eth0 interface along with ipv6 address and network UP status and mtu size.
Continue reading “Network Configuration in RHEL 7/Centos 7”
Today I am going to show you how to use access control list (ACL) permissions in rhel7. Traditionally we have assigned permission to one user/owner and one group for file or directory but in some cases we need other user or other group apart from owner need to have readonly access or write access on same directory. To achieve this we have access control list permission concept in Linux.
Other users and and groups can also access file or directory even when they are not owners and member of group who is having ownership on that file or directory.
we use only two commands getfacl to see ACL permissions on directory/file and setfacl to set ACL permissions. We can even set default ACL so that new files and sub-directories created in directory will inherit ACL permissions of parent directory.
The filesystem needs to be mounted with ACL support enabled. XFS filesystems have built-in ACL support and Ext4 filesystem in RHEL7 have ACL option enabled by default. In earlier versions of RHEL you may need the ACL option included with mount request.
First we see ACL permission on file named prod.conf.
Continue reading “Access Control List (ACL) Permissions in RHEL 7/Centos 7”
In this post I am going to show you how to configure SSH key based authentication on rhel7/centos7. Configuration of SSH key based authentication is little different in rhel7 compared to traditional method of manually copying public key to another server. Users can login using ssh with password and authenticate using public key authentication.
On every server we have two keys private and public. Private key is used as authentication credentials like password which must be kept secret and secure. Public key we need to copy on the server where user want to login and used to verify private key so public key does not need to be secret.
How authentication happens in SSH key key based authentication. SSH server that has public key can issue a challenge that can only be answered by system who is holding private key as a result user can authenticate without password only with the help of public key and system grant login access to the user.
Use ssh-keygen command to generate private and public key as follows
Continue reading “Configure SSH key based authentication on rhel 7/centos 7”
1. To create user use command useradd.
2. Whenever new user is created without specifying any other values then default values will be taken after creating user. You can check default values for any user creation using following commands.
user chris is created with id 1001 and user private group created named chris with 1001 group id (the group created with same name as user is called user private group).
Continue reading “Manage local Users and Groups in Centos 7/RHEL 7”
It was very annoying when I work on rhel 7 and screen gets locked when it was idle for some period and again I have to logged in from virtual box and then on server. I search on web to turn off screen lock on rhel 7 and it was hard to find out.
rhel 7 have different options to turn off screen than in previous versions.
So I thought to create this post so that people can easily turn off their screen lock without wasting their time searching for it.
1. Open the rhel 7 GUI. In Applications go to System Tools.
Continue reading “How to turn off GUI screen lock on rhel 7/centos 7”
Modification of boot time (grub timeout) is little different in rhel 7. Grub timeout is time to wait for manual selection of boot entry loaded by GRUB boot loader. This is useful for maintenance boot or to edit/modify boot entry In rhel 7 default grub timeout is 5 second.
In rhel 7 /boot/grub directory is not present nor /boot/grub/menu.list. In rhel 7 grub is modified with grub2 and we can use /etc/default/grub file to modify boot loader configuration.
It’s not recommended to modify any grub file in rhel 7 apart from /etc/default/grub.
Following are the default values from /etc/default/grub file.
Continue reading “How to change the grub timeout in rhel 7”
Refer my previous post for installation of Ubuntu server 14.04. Once OS installation is completed and VM restarted successfully then we can use same VM for Openstack Installation.
- Update existing Ubuntu filesets before installation of Openstack.
Continue reading “Openstack IceHouse Installation on Ubuntu 14.04 LTS”
- Create new VM with name OpstackVM using vSphere client with following values.This is not recommended values/minimum requirement of VM for installing Openstack. In next post we will see Openstack installation on Ubuntu.
Continue reading “Installation of Ubuntu 14.04 LTS Server using ESX GUI”