LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-06-2017, 04:33 PM   #1
spankbot
Member
 
Registered: Aug 2007
Posts: 133

Rep: Reputation: 16
"Interactive Shell not available." for user account


I have a local user account which is unusable. via ssh or su

All I get is:

Interactive Shell not available.

and then disconnect. I used the pwck but it found no issues.

This is Centos 6.
 
Old 09-06-2017, 06:57 PM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,631

Rep: Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696
Quote:
Originally Posted by spankbot View Post
I have a local user account which is unusable. via ssh or su

All I get is:

Interactive Shell not available.

and then disconnect. I used the pwck but it found no issues.

This is Centos 6.
If you have "finger" installed, run the finger command against that user.
look at the shell, and see if that is one of the installed and authorized shells. This check does not find invisible characters.

Also, or instead, you can run
Code:
cat -vte /etc/passwd|grep ^USER
where USER is replaced with
the logon name of the user. The shell should be between the last ":" on the line and the "$" that marks
the end of the line.
Examine the shell for correctness, and missing or additional characters. This test will find invisible characters.

Please come back here and let us know what you find out.
 
Old 09-06-2017, 06:59 PM   #3
andros705
LQ Newbie
 
Registered: Feb 2016
Posts: 11

Rep: Reputation: Disabled
What shell does the user have set?
Try this as root:
Code:
getent passwd <USER>
What is the last field?
Is it:
Code:
/bin/nologin
What is the sshd configuration?

We need more information!
 
Old 09-08-2017, 02:43 AM   #4
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,794

Rep: Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201
Code:
getent passwd USER
is the command to grep the effective passwd line for USER.
The last field is the login shell.
Can it be started? Is it listed as a valid login shell in /etc/shells?
 
1 members found this post helpful.
Old 09-12-2017, 11:36 AM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
I've seen this when I fat-fingered a name when trying to set up a service user. I don't believe that the user-management tools actually check to see if the specified shell-program file exists.

Anyway – in order for a user to log on, Linux must create a shell-process for him ... and it finds that it can't do so.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slackware unable to shutdown or reboot user account "command not found". Pinonoir Linux - Desktop 12 05-06-2014 07:50 PM
unable to login user account "orasp" on linux server premkumar.st Linux - Newbie 1 03-28-2012 12:28 PM
New user first login attempt gets "Account locked. Maximum attempts reached" p3t0rt Linux - Newbie 2 07-21-2009 04:40 PM
"To add a new user account, log in to the root account" how do i do this (im new) pierce77x Linux - Newbie 4 12-28-2008 02:44 PM
Root can log on, user account can't. "Error in service module" Charlie Spencer Linux - Newbie 3 09-13-2006 01:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration