1748151 Members
3965 Online
108758 Solutions
New Discussion юеВ

Re: USER LOGIN ISSUE

 
SOLVED
Go to solution
oprakash
Frequent Advisor

USER LOGIN ISSUE

Hi,

I am getting the following error msg, when i used to log with one specific userid.
" TOO MANY LOGIN - CONTACT ADMIN "
I have checked the currently used ID's by #who -q.

Can any one suggest me to resolve this issue.
11 REPLIES 11
Suraj K Sankari
Honored Contributor

Re: USER LOGIN ISSUE

Hi,

1st how many user licences you have for this system did you check that "uname -a" will show that.
2nd now how many users are login "who -q" what is the output ?
Is this error came for all user or some specific user ?


Suraj
oprakash
Frequent Advisor

Re: USER LOGIN ISSUE

Hi,

Uname -a => unlimited user license

who -q => 50 users are connected.

Getting the error msg only to a particular user (araj).

Note: If i removed .login and .profile from the user home directory. I can get the $ prompt for that user.

I normally used to copy .login and .profile from existing users, its customised thing.
johnsonpk
Honored Contributor

Re: USER LOGIN ISSUE

Hi Oprakash,

It looks like the message is from some script ,not seems to be a system generated one .

Check users's .profile and see any script is incorporated with that check the login sessions

However You can check the /etc/default/security for an entry

NUMBER_OF_LOGINS_ALLOWED


Rgds
Johnson
johnsonpk
Honored Contributor

Re: USER LOGIN ISSUE

Hello ,

please attach the .profile and .login

and cat /etc/passwd |grep


Rgds
Johnson
oprakash
Frequent Advisor

Re: USER LOGIN ISSUE

Hi,

Kindly find the attached .login & .profile for your reference.

# pg /etc/security | grep araj
araj:*:268:20:Anthony Raj,FBSC,,:/home/araj:/usr/bin/sh
oprakash
Frequent Advisor

Re: USER LOGIN ISSUE

Hi,

Also attached .login for your reference.

I am not able to find

# pg security
MIN_PASSWORD_LENGTH=8
PASSWORD_HISTORY_DEPTH=8

Anoop P_2
Regular Advisor

Re: USER LOGIN ISSUE

This IS from a script for sure. Look for "TOO MANY" line in .profile of the user and make modifications appropriately.

May be an earlier sysadmin put in this script and you took over recently. A wild guess there.

Look for reasons why he did that before attempting to remove it.
Suraj K Sankari
Honored Contributor

Re: USER LOGIN ISSUE

Hi,
>>Note: If i removed .login and .profile from the user home directory. I can get the $ prompt for that user.

Some time what happned users are forget to logout from the system, in that case some script is running behind if a perticular user is having more then 5 or 8 login into the system then system should not allow for a new login.

do who -u | grep araj
if all "araj" logins are idel, means old logins then kill all of them.

Suraj
johnsonpk
Honored Contributor
Solution

Re: USER LOGIN ISSUE

Hi,

The attached .profile seems good...


Are you sure that .profile you atttached is from /home/araj and complete?

#who |grep -i araj
#grep -i "too" /etc/profile

Rgds
Johnson