Difference between sticky bit suid sgid

What is sticky bit, SUID, SGID

what is "sticky bit", "SUID" , "SGID"? 1) Sticky bit was used on executable in Linux (which was used more often)so that they would remain in the memory more time after the initial execution, hoping they would be needed in the near future. But since today we have more sophisticated memory  ..

Resize2fs operation not permitted while trying to add group

Error Operation not permitted lvextend

When I tried to increase logical volume on the a server after rescanning the disk, I got the below error when using the resize2fs command. Command used to extend an logical volume # lvextend -L +40G /dev/VG_MyApp/backup # resize2fs /dev/VG_MyApp/backup resize2fs 1.41.12 (17-May-2010) Filesystem at /dev/VG_MyApp/backup is mounted on /backup; on-line resizing required old  ..

Cisco switch enable password

Password Configuration on CISCO switch

enable password command is used to change the existing password of the privileged mode. Syntax: enable password Example: # configure terminal # enable password techbluff # show running-config Once the password is changed, run "show running-config" command to know whether the configuration has been modified. To make the change permanent, run "reload"  ..

Openstack clean keystone expired token

Clear keystone expired token

How to clear keystone expired token? It is a good idea to set your log directory in the same keystone.conf file. Under log_dir # log_dir = /var/log/keystone Another issue that pops up is if you are not having the expired token cleanup setup. How to resolve keystone expired token problem? create  ..

Replace newline using sed

Sed Command replace newline

How to replace newline using sed command in linux or unix # sed '{:q;N;s/\n//g;t q}' /change/newline.txt # sed ':a;N;$!ba;s/\n/ /g' Explanation of the command how it is used: 1) Create a label via :a 2) Append the current and next line to the pattern space via N 3) If we are before the last  ..

Vmware add a new hard disk with no reboot

Linux scan new disk without reboot

There will be always need of storage space in server when the data grows, In such situation a physical block device will be added and when the device block is added to the particular host in a cluster then the device has to be rescan. Below are are simple steps  ..

Error while loading shared libraries oracle

Solution for error while loading shared libraries

When you receive this error first check you have set oracle $ORACLE_HOME, $PATH and $LD_LIBRARY_PATH correct Check if the $ORACLE_HOME, $PATH and $LD_LIBRARY_PATH are set right # echo $ORACLE_HOME # echo $PATH # echo $LD_LIBRARY_PATH Set Path and Library path # export LD_LIBRARY_PATH=$ORACLE_HOME/lib # export PATH=$PATH:$ORACLE_HOME/bin oracle> $ORACLE_HOME/bin/relink all then try to relink  ..

How to find which process is listening upon a port

Find process using a port

fuser is an useful tool used to find open ports and all to kill or stop program using a filesystem or directory. # fuser -km /home kills all processes accessing the filesystem or directory /home show all processes at (local) TELNET port # fuser -s /dev/tty # fuser telnet/tcp # netstat --tcp  ..

Enable or disable disk led of hp physical server

Hpacucli tool to find out led

When there is multiple server and multiple disk drives connected to a server, it might be confusing to figure out the faulty drive. In such situation we can switch off the led of the faulty drive and confirm the faulty disk. Here we can see how to find out the  ..

How to create htpasswd file

Below are the commands used to create htpasswd file

htpasswd command will create an encrypted password file in the specified file and adding additional user will add the the users to same file # htpasswd -c .htpasswd tomy Adding password for tomy New password: Re-type new password: The passwords added to the .htpasswd file  ..

Test open ports with out telenet

Methods to test open ports

There are different methods to test open port of your server without telnet. But a normal used method is telnet. netcat is a tool which is used to test or connect to different ports of a server # nc 123 < /dev/null; echo $? Will output 0 if port 123 is  ..

How to download git repository

Download program from git repo

When there is a need to download some piece of code to git repo For this you have to install git repo on your machine # apt-get install git git-core If you want to get a copy of an existing Git repository of your project then the command you need is   ..

Error cannot open repomd xml file for repository rpmforge

Installation Error cant read repomd xml

While installing package from rpmforge repo, if you receive Error: Cannot open/read repomd.xml file for repository: rpmforge, then it might because of you are unable to reach the specified repo online. In order to reach the repo try adding its fully qualified domain name in reslov.conf Any rpm package installs the  ..

How to use CSF

Commands for using CSF

Before looking more in to CSF firewall, first we must know more on CSF config files. Below are some of the CSF configuration files csf.conf : Configuration file for controlling CSF. csf.allow : All Allowed IP's and CIDR addresses list on the firewall. csf.deny : All Denied IP's and CIDR addresses list on  ..

How to install csf

Config Server Security & Firewall

how to install csf Installing and Uninstalling CSF in Linux. CSF - Config Server Security & Firewall. It is an open source firewall for server. CSF is a software firewall, Software Firewall is a piece of software that is installed on your computer in order to protect it from unauthorized access. Log into  ..

Previous 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Next >

Tech Bluff