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

The Geek Diary

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

Archives for September 2016

RHEL 7 – RHCSA Notes – Set enforcing and permissive modes for SELinux

by admin

RHEL 7 – RHCSA Notes (Cheat Sheets) SELinux modes SELinux gives that extra layer of security to the resources in the system. It provides the MAC (mandatory access control) as contrary to the DAC (Discretionary access control). Before we dive into setting the SELinux modes, let us see what are the different SELinux modes of […]

Filed Under: CentOS/RHEL 7, RHCSA notes

RHEL 7 – RHCSA Notes – Create and manage Access Control Lists (ACLs)

by admin

RHEL 7 – RHCSA Notes (Cheat Sheets) The file access control lists (FACLs) or simply ACLs are the list of additional user/groups and their permission to the file. Although the default file permissions does their jobs perfectly, it does not allow you to give permissions to more than one user or one group on the […]

Filed Under: CentOS/RHEL 7, RHCSA notes

CentOS / RHEL : How to change password hashing algorithm

by admin

authconfig The Linux user password hashing algorithm is also configurable. Use the authconfig command to determine the current algorithm being used, or to set it to something different. To determine the current algorithm: # authconfig –test | grep hashing password hashing algorithm is sha512 Change the hashing algorithm To change the algorithm, use the –passalgo […]

Filed Under: Linux

RHEL 7 – RHCSA Notes : Change passwords and adjust password aging for local user accounts

by admin

RHEL 7 – RHCSA Notes (Cheat Sheets) Password configuration password aging requires users to change their password periodically. Use the chage to configure password expiration. The syntax is : # chage [options] user_name – When you fire the command chage, the currently set options are displayed as well. # chage oracle Changing the aging information […]

Filed Under: CentOS/RHEL 7, RHCSA notes

Solaris zones : How to set netmasks

by admin

Question : How to set certain netmask for a non global zone ? Answer : To define a certain netmask for a non global zone, use zonecfg command. The network address is one of: a valid IPv4 address, optionally followed by “/” and a prefix length. a valid IPv6 address, which must be followed by […]

Filed Under: Zones

CentOS / RHEL : How to assemble a software RAID in Rescue mode

by admin

mdadm (multiple devices admin) is an extremely useful tool for running RAID systems. It’s is a tool for creating, managing, and monitoring RAID devices using the md driver. It can be used as a replacement for the raidtools, or as a supplement. The pos describes a way to assemble a software RAID in rescue mode. […]

Filed Under: Linux

Solaris 11.2 : Adding new resources to a running zone online

by admin

Solaris 11.2 provides a supported way to add new resources to a running zone online. Prior to this version, a reboot of the non-global zone was required to make the changes effective. The post describes an example of adding a raw disk device online to a non-global zone. Example: 1. Check the Solaris OS version. […]

Filed Under: Solaris 11, Zones

Examples of using vxdiskunsetup command

by admin

– vxdiskunsetup command is used to remove the vxvm configuration from the disk. Its works the opposite way of the command vxdisksetup. – vxdiskunsetup command remove the public and private regions created by the command vxdisksetup command. – vxdiskunsetup command turns the disk flags from online to error. check the options available in the vxdiskunsetup […]

Filed Under: VxVM

RHEL 7 – RHCSA Notes : Create, delete, and modify local groups and group memberships.

by admin

RHEL 7 – RHCSA Notes (Cheat Sheets) Group administration – Use the groupadd command to add a new group : # groupadd [options] group_name – Use the groupmod command to modify an existing group : # groupmod [options] group_name – Use groupdel to delete the group. You can remove a group even if there are […]

Filed Under: CentOS/RHEL 7, RHCSA notes

RHEL 7 – RHCSA Notes : Create, delete, and modify local user accounts

by admin

RHEL 7 – RHCSA Notes (Cheat Sheets) Adding a user account Use the useradd command to add new user : # useradd [options] [username] The default settings for new user can viewed and modified using the -D option : # useradd -D GROUP=100 HOME=/home INACTIVE=-1 EXPIRE= SHELL=/bin/bash SKEL=/etc/skel CREATE_MAIL_SPOOL=yes For example, to change the default […]

Filed Under: CentOS/RHEL 7, RHCSA notes

Next Page »

Primary Sidebar

Recent Posts

  • ncat Command Examples in Linux
  • ncat: command not found
  • nautilus Command Examples in Linux
  • namei: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright