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. […]
Archives for September 2017
lvremove Command Fails With Error “LVM – Can’t remove open logical volume”
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 […]
Yum Command Fails with “Another app is currently holding the yum lock” in CentOS/ RHEL 7
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) […]
What causes iptables to load every time after a reboot even when it’s completely turned off
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 […]
CentOS / RHEL : iptables troubleshooting guide
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 […]
CentOS / RHEL 6 : How to change the verbosity of debug logs during booting
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 […]
Oracle Database interview questions – Privileges And Roles
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 […]
CentOS / RHEL 5, 6 : how to disable NetworkManager
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 […]
Solaris : How to include date and timestamp in bash shell command history
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 […]
Solaris : How to configure a user account to never expire (disable password aging)
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 […]