# RHEL 5
# ------------------------------------------------------------------------------------------

# To force users to enter password in Single User mode, add following line to /etc/inittab:


# The changes to this file takes effect after a system reboot

# To make init re-read the /etc/inittab without rebooting the system, type the command

/sbin/init q

# RHEL 6
# ------------------------------------------------------------------------------------------

# Edit /etc/inittab and add "su:S:wait:/sbin/sulogin" before 'initdefault' line:

vi /etc/inittab

# Edit /etc/sysconfig/init and replace "SINGLE=/sbin/sushell"  with "SINGLE=/sbin/sulogin":

vi /etc/sysconfig/init
   # Set to '/sbin/sulogin' to prompt for password on single-user mode
   # Set to '/sbin/sushell' otherwise

# RHEL 7
# ------------------------------------------------------------------------------------------

# By default, Single User mode is password protected by the root password on RHEL 7:

cat /usr/lib/systemd/system/rescue.service

   ExecStartPre=-/bin/plymouth quit
   ExecStartPre=-/bin/echo -e 'Welcome to emergency mode! After logging in, type [...]
   ExecStart=-/bin/sh -c "/usr/sbin/sulogin; /usr/bin/systemctl --fail --no-block default" <---

#ifconfig -a

#ip link set dev ens224 name eth1

#ifconfig -a

openstack key commands

Posted: March 26, 2018 in key commands, openstack

[root@rhel7- ~]# openstack stack list – —->stack complete container of Open stack

[root@rhel7 ~]# openstack image list —-> Like a ova that deployed as image in OS

[root@rhel7 ~]# openstack server list or nova list — > created Servers

[root@rhel7 ~]#openstack flavor list —>it like template what configuration use for server

[root@rhel7- ~]# openstack volume list or # cinder list — > list of Volume

[root@rhel7-~]# neutron net-list —-> Network List like a VLAN networking

[root@rhel7-i ~]# neutron subnet-list

[root@rhel7- ~]# neutron router-list

[root@rhel7-i~]# openstack flavor list

#cinder list


MariaDB [(none)]> use cinder ;

MariaDB [cinder]> update volumes set attach_status=’detached’,status=’available’ where id ='<Volume id> ;

MariaDB [cinder]>exit

#cinder delete <volume_id>

1.SSH to  vCenter Server appliance as root user

2.Type the following in:


Which gets you:
Please select:
0. exit
1. Test LDAP connectivity
2. Force start replication cycle
3. Reset account password
4. Set log level and mask
5. Set vmdir state

Select option 3

Please enter account UPN :

This is one of the problems with the 6.X guide, it doesn’t tell you explicitly that you need to type the following.


After that you should get a new password that you can use to log in. 
This password can then be used to access the WebGUI of the appliance and 
there you can set your administrator@vsphere.local password back


echo -e "\n------------------------------------------------------------------------------------------"
echo -e "\t RHEL version"
echo "------------------------------------------------------------------------------------------"

expect -c "spawn ssh -qo StrictHostKeyChecking=no root@${IP}
 expect {
 send \"yes\"
 expect \"password: \"
 send \"${PASSWD}\r\"
 expect \"\\\\#\"
 send \"uname -r\r\"
 expect \"\\\\#\"
 send \"lsb_release -r\r\"
 expect \"\\\\#\"
 send \"logout\"
 \"password: \"
 send \"${PASSWD}\r\"
 expect \"\\\\#\"
 send \"uname -r\r\"
 expect \"lsb_release -r\\\\#\"
 send \"\r\"
 expect \"\\\\#\"
 send \"logout\"
 \"# \"
 expect \"\\\\#\"
 send \"uname -r\r\"
 expect \"\\\\#\"
 send \"lsb_release -r\r\"
 expect \"\\\\#\"
 send \"logout\"
echo -e "\n ------------------------------------------------------------------------------------------\n"

Issue :- Windows cannot access samba share 



what is the problem : – I have created  directory as /BACKUP but i have mentioned  in samba path as /backup so here samba share path is not correct hence i getting below error

FIX : – Modify correct share directory name and restart samba service it will work.