LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Closed Thread
  Search this Thread
Old 06-19-2012, 05:24 AM   #1
kpatel97
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" ]
then
LINES=`who | grep -c $LOGNAME `
if [ "$LINES" -gt "1" ]
then
echo "Already logged in!"
sleep 5
exec /bin/true
fi
fi
 
Old 06-19-2012, 11:26 AM   #2
towheedm
Member
 
Registered: Sep 2011
Location: Trinidad & Tobago
Distribution: Debian Stretch
Posts: 598

Rep: Reputation: 120Reputation: 120
You'll get flamed for posting the same question twice:http://www.linuxquestions.org/questi...93#post4706993

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
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:17 PM.

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