• 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 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. […]

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 […]

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) […]

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 […]

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 […]

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 […]

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 […]

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 […]

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 […]

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 […]

Filed Under: Solaris

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