most of the person in my team have sudo access. But I still want them to confirm before they do sudo su.if user press Y, then allow him as root else return him to his own home directory. I tried the below code but when user press any other key, he is still allowed to login as root.Please help!/bin/bashecho -e You are entering into high security env.echo -e If You are still not sure about the purpose, please logout of root user immediately.echo -e Contact admin immediately in case of any doubt.sleep 1echo -e Press Y if you still want to enter as a root userread chcase $ch in    'Y'|'y' )                echo -e Risk is all yours. PT team welcome you here.                ;;        *)                bash /root/.bash_logout                exit                ;;esac
confirmation before sudo su
shell script;security