Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


Closed Thread
  Search this Thread
Old 06-19-2012, 05:24 AM   #1
LQ Newbie
Registered: Jun 2012
Posts: 9

Rep: Reputation: Disabled
How to disable multiple login temporary

How to disable multiple login temporary from users profile
please help me i am new for unix environment.

i have tried with this script but not working

if [ "$LOGNAME" != "root" ]
LINES=`who | grep -c $LOGNAME `
if [ "$LINES" -gt "1" ]
echo "Already logged in!"
sleep 5
exec /bin/true
Old 06-19-2012, 11:26 AM   #2
Registered: Sep 2011
Location: Trinidad & Tobago
Distribution: Debian Stretch
Posts: 612

Rep: Reputation: 125Reputation: 125
You'll get flamed for posting the same question twice:

You should stay with your original post as there were several replies there. Did you try the suggestions? What were the results.? Use code tags as described in post #6 of the above link.
Old 06-19-2012, 08:45 PM   #3
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
No, he won't

He'll get an infraction, and his thread will be closed.

Follow-ups here please

Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to disable "last login log" & disable "last login message" when start login. hocheetiong Linux - Newbie 4 02-08-2011 06:35 AM
Linux Mint - how to disable multiple virtual desktops SunsetRider Linux - Desktop 1 05-27-2008 07:00 PM
Temporary Disable History Command leebrent Linux - Security 1 02-11-2008 09:54 PM
disable login juno Linux - General 1 10-25-2002 06:50 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:01 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration