Skip to content
Snippets Groups Projects
Commit 3cf81c41 authored by Laros's avatar Laros
Browse files

Merge branch 'deny-double-login' into 'master'

More robust double login checking

See merge request !4
parents beecdc8f 7aaccc3c
No related branches found
No related tags found
No related merge requests found
if [ $(w | grep $LOGNAME | wc -l) -gt 1 ]; then
if [ $(who | grep -cw ^$LOGNAME) -gt 1 ]; then
echo This account is already in use, exiting.
exit
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment