How to restrict the number of logins..?

Anybody got any ideas on how to restrict the number of times a specific useraccount is entitled to login?? (SCO Openserver system..)
LVL 1
gurumaartenAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gurumaartenAuthor Commented:
Adjusted points to 10
0
gurumaartenAuthor Commented:
Adjusted points to 20
0
dgrimesCommented:
There isn't a parameter that I know of to restrict the number of logins allowed for an individual. But you could put a check in the .profile for the accounts to be restricted. For example:

logexc=2
[ "`whodo | grep -c $LOGNAME`" = "$logexc" ] && {
    echo "Maximum Logins Exceeded"
    exit
}

Just initialize the variable logexc to a value that represents too many logins.

This should work.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
weephCommented:
Answer to this lies in scoadmin assuming sco 5
weeph
0
gurumaartenAuthor Commented:
The system is runnning OSR5.0.5 and I'd like to restrict the SIMULTANIOUS logons of certain users! Guess I was a bit naive in assuming that most certainly SCO could control this when even Novell can do it.. :)
Thanx for the help!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.