• 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

Archives for September 2017

Linux interview questions – Special permissions (SUID, SGID and sticky bit)

By admin

There are two special permissions that can be set on executable files: Set User ID (setuid) and Set Group ID (sgid). These permissions allow the file being executed to be executed with the privileges of the owner or the group. Similarly, there are two special permissions for directories: the sticky bit and the setgid bit. Below are few of the most commonly asked Linux interview questions on the special permissions like SUID, SGID and sticky bit. What is Set User ID (setuid)? SUID is a … [Read more...] about Linux interview questions – Special permissions (SUID, SGID and sticky bit)

Filed Under: Interview Questions, Linux

lvremove Command Fails With Error “LVM – Can’t remove open logical volume”

By admin

You want to delete a logical volume but, when running the command "lvremove", you get the following output: # umount /data # lvremove /dev/vg1/lv1 Can't remove open logical volume "lv1" Solution The above error usually means that the volume is still in use by some process. To find the process that is keeping the logical volume open, follow the steps below. 1. Find the major,minor number corresponding to the Logical Volume: # dmsetup info -c | grep [lvname] For Example: # dmsetup … [Read more...] about lvremove Command Fails With Error “LVM – Can’t remove open logical volume”

Filed Under: Linux

Yum Command Fails with “Another app is currently holding the yum lock” in CentOS/ RHEL 7

By admin

While issuing any yum command, you would get an error shown below: # yum list Loaded plugins: fastestmirror, langpacks Existing lock /var/run/yum.pid: another copy is running as pid 13023. Another app is currently holding the yum lock; waiting for it to exit... The other application is: PackageKit Memory : 26 M RSS (430 MB VSZ) Started: Sat Sep 30 18:31:21 2017 - 00:33 ago State : Sleeping, pid: 13023 The error indicates that another instance is running for the yum … [Read more...] about Yum Command Fails with “Another app is currently holding the yum lock” in CentOS/ RHEL 7

Filed Under: CentOS/RHEL 7, Linux

What causes iptables to load every time after a reboot even when it’s completely turned off

By admin

Question : Even though iptables is turned OFF using 'chkconfig --level 345 iptables off', 'service iptables status' still displays some iptables rules after every reboot. Answer The Libvirtd process will add iptables rules into iptables when starting libvirtd. iptables will run when starting libvirtd, even if iptables was disabled before. These rules will not impact firewall configuration for the physical network. If xen environment is not used, these rules are not needed at all. In a … [Read more...] about What causes iptables to load every time after a reboot even when it’s completely turned off

Filed Under: Linux

CentOS / RHEL : iptables troubleshooting guide

By admin

The iptables utility controls the network packet filtering code in the Linux kernel. The iptables feature is used to set up, maintain, and inspect the tables of IP packet filter rules in the Linux kernel. The post discusses the most commonly encountered issues with iptables and how to resolve them. iptables rules do not load after a reboot you have set and saved iptables firewall rules and they are still not loaded after a reboot. After a reboot, the iptables rules are not loaded, and … [Read more...] about CentOS / RHEL : iptables troubleshooting guide

Filed Under: Linux

CentOS / RHEL 6 : How to change the verbosity of debug logs during booting

By admin

Removing the rhgb and the quiet kernel command-line parameters, either by editing the /boot/grub/grub.conf file or by using the grub editing mode during boot. Replace these parameters with loglevel parameter. This change is generally sufficient to provide as much data as is needed to debug a boot failure. The option rhgb is used for graphical boot-up and the quiet option eliminates most of the boot messages. what loglevels are available Removing rhgb quiet attributes, increases the … [Read more...] about CentOS / RHEL 6 : How to change the verbosity of debug logs during booting

Filed Under: Linux

Oracle Database interview questions – Privileges And Roles

By admin

What is a Privilege? A privilege is the right to execute a particular type of SQL statement. It can allow a user to access database objects or execute stored programs that are owned by another user or to perform system level actions. There are two types of privileges: system privileges schema object privileges What are system privileges? The system privileges are not related to a certain object. They control the ability of a user to perform system level actions such as connecting to … [Read more...] about Oracle Database interview questions – Privileges And Roles

Filed Under: Interview Questions, oracle

CentOS / RHEL 5, 6 : how to disable NetworkManager

By admin

What is NetworkManager? - NetworkManager is a dynamic network control and configuration system that attempts to keep network devices and connections up and active when they are available. - NetworkManager consists of a core daemon, a GNOME Notification Area applet that provides network status information, and graphical configuration tools that can create, edit and remove connections and interfaces. - NetworkManager can be used to configure the following types of connections: Ethernet, … [Read more...] about CentOS / RHEL 5, 6 : how to disable NetworkManager

Filed Under: Linux

Solaris : How to include date and timestamp in bash shell command history

By admin

Here is a small note on how to enable date and timestamp in shell command history on a Solaris system. In some vendor implementations of ksh, the EXTENDED_HISTORY variable can be set. However, the Solaris ksh does not implement EXTENDED_HISTORY. There are no provisions for providing date or timestamps in the ksh history. Setting date and timestamp in bash shell command history If date and time are required, use bash and set the HISTTIMEFORMAT variable. For example: # export … [Read more...] about Solaris : How to include date and timestamp in bash shell command history

Filed Under: Solaris

Solaris : How to configure a user account to never expire (disable password aging)

By admin

By default passwords do not expire on user accounts. If an expiration date has been added to an account and you wish to remove it, use the passwd command to change the maximum number of days between password changes to -1. This post describes how to turn off password aging when a maximum and possibly minimum value for password duration have been set. Turn off a value for password duration by setting the number of days to -1. Example: # passwd -d tom tom 10/29/99 0 14 # passwd -x -1 … [Read more...] about Solaris : How to configure a user account to never expire (disable password aging)

Filed Under: Solaris

Next Page »

Primary Sidebar

Recent Posts

  • How to Disable IPv6 on Ubuntu 18.04 Bionic Beaver Linux
  • How to Capture More Logs in /var/log/dmesg for CentOS/RHEL
  • Unable to Start RDMA Services on CentOS/RHEL 7
  • How to rename a KVM VM with virsh
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary