1834425 Members
2339 Online
110067 Solutions
New Discussion

User Restriction

 
SOLVED
Go to solution
Guna_2
Regular Advisor

User Restriction

Dear all,

If i want to restrict a user such a way as the user should not login more than one terminal. Then how can i do this. Please any of one help me.

Thanx & Rgds,
M.Guna

5 REPLIES 5
Peter Godron
Honored Contributor

Re: User Restriction

Hi,
this thread should start you off:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=582504

Alternative could be to check in the /etc/profile and terminate any session for a given userid, if it does not come from a certain ip address.
Yang Qin_1
Honored Contributor
Solution

Re: User Restriction

Hi, Guna,

The easy way to restrict number of login sessions is to use /etc/default/security file. If you do not have it, then you can create one.
What you need to configure is:
NUMBER_OF_LOGINS_ALLOWED=1

You do a lot with /etc/default/security. Here is the content in my security file:

MIN_PASSWORD_LENGTH=8
PASSWORD_MIN_UPPER_CASE_CHARS=1
PASSWORD_MIN_LOWER_CASE_CHARS=3
PASSWORD_MIN_DIGIT_CHARS=1
PASSWORD_MIN_SPECIAL_CHARS=1
PASSWORD_HISTORY_DEPTH=1
NUMBER_OF_LOGINS_ALLOWED=4
NOLOGIN=0
ABORT_LOGIN_ON_MISSING_HOMEDIR=0

Regards,
Yang
spex
Honored Contributor

Re: User Restriction

Hi,

If you are not able to take advantage of /etc/default/security, you could script a check in /etc/profile.

PCS
Peter Godron
Honored Contributor

Re: User Restriction

Hi,
could you please update this thread ?

If the problem has been resolved please see http://forums1.itrc.hp.com/service/forums/helptips.do?#28

Please identify the solution, award points and close.
Guna_2
Regular Advisor

Re: User Restriction

Thanks to all

I used now etc/securitty file.

It solved my problem .