1835116 Members
3924 Online
110076 Solutions
New Discussion

restrict login

 
문형필
Occasional Contributor

restrict login

Hi all~

is it possible restrict to login ?
one id can acess only one tty...
if it is possible how to set?

regards
moon
7 REPLIES 7
Devender Khatana
Honored Contributor

Re: restrict login

Hi,

How does your users login ? Are they use telnet sessions or have dumb terminal installed through some terminal server?

What is the OS version?

Regards,
Devender
Impossible itself mentions "I m possible"
Cem Tugrul
Esteemed Contributor

Re: restrict login

문형필
Occasional Contributor

Re: restrict login

we are using telnet session.
i want like a gsp console mode.
if for example one user acess using aaa id
the other user can't acess with aaa id
is it possible ??
Cem Tugrul
Esteemed Contributor

Re: restrict login

once upon a time i have read such a kind
Q as yours
there must be a file under;
/etc/default/security
and put somethinglike;

MAX_USERS_ALLOWED=2

and then save the file and test it for a
specific user and try to logon 3 telnet session...your last connection must refused
by your system

Could you please try and answer back?

Good Luck,
Our greatest duty in this life is to help others. And please, if you can't
Devender Khatana
Honored Contributor

Re: restrict login

Hi,

I thought your question otherwise. I thought that one paticular user always gets same tty. Anyways with telnet sessions it is not possible.

I assume you actually want that one user can not telnet to system more than once at a time.
This can be set by /etc/default/security.

From man security -
+++++++++++++++++++++++++++++++++++++++++++++++
NUMBER_OF_LOGINS_ALLOWED
This parameter controls the number of simultaneous
logins allowed per user. This is applicable only for
non-root users.

NUMBER_OF_LOGINS_ALLOWED=0 Any number of logins are
allowed per user.

NUMBER_OF_LOGINS_ALLOWED=N N number of logins are
allowed per user.

Default value: NUMBER_OF_LOGINS_ALLOWED=0

HTH,
Devender
Impossible itself mentions "I m possible"
Cem Tugrul
Esteemed Contributor

Re: restrict login

oppsss..NUMBER_OF_LOGINS_ALLOWED
must be!!!!

Thank's Devender...


Our greatest duty in this life is to help others. And please, if you can't
Muthukumar_5
Honored Contributor

Re: restrict login

You want to control that every user must login with only one TTY rgt?

To control root user then /etc/securetty
tty, so that it will ask root user to login into that.

hth
Easy to suggest when don't know about the problem!