1826332 Members
3465 Online
109692 Solutions
New Discussion

direct login not allowed

 
Mark Philip L. Castro
Occasional Advisor

direct login not allowed

We have an account which does not allow direct login. Meaning, if you telnet or login using the account, it will be disconnected after 10 seconds. "su" is the only way to use the account. How will I allow direct login for this account?
7 REPLIES 7
Michael Tully
Honored Contributor

Re: direct login not allowed

First, check the account line in the passwd file. (/etc/passwd) for an '*' for where the password is. When you 'su' do you use a password? Is the account 'root' ?
Anyone for a Mutiny ?
Sanjiv Sharma_1
Honored Contributor
Mark Philip L. Castro
Occasional Advisor

Re: direct login not allowed

The account is not root. I use a password to "su". With regards to /etc/passwd, there is an encrypted password after the accountname. "*" is not present. Thanks.
Michael Tully
Honored Contributor

Re: direct login not allowed

ok ... Is there an entry in the /etc/profile where there is an evaluation of accounts or makes reference to a file. I've seen many times where this has been used to prevent people logging in. This file may contain certain user accounts. (Are there any other accounts that you know of that also have this problem?
Anyone for a Mutiny ?
Mark Philip L. Castro
Occasional Advisor

Re: direct login not allowed

No account referencing in /etc/profile. No other file also referenced. It is for this account only. Thanks.
Naveej.K.A
Honored Contributor

Re: direct login not allowed

hi,

any variable called TMOUT set in .profile of the user?? Check this!!!

How do you su to the user account??
su - username or su username?

when you do an su username, the system and the user startup file are not executed (/etc/profile and $HOME/.profile) but in the other case, they will be executed.

Possibly this could be your issue..

With best wishes
Naveej
practice makes a man perfect!!!
KapilRaj
Honored Contributor

Re: direct login not allowed

By the way, are you by any means using ssh ?? (Port :22) .. It just look like your telnet when u access from a client (putty !). In SSH you may have a configuration not allowing a set of users to login directly.

We use it for root and application batch ids so that technical users (including me ) have to login with their personal ids and then an "su".

Kaps
Nothing is impossible