LinuxQuestions.org
Visit Jeremy's Blog.
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-21-2007, 11:41 AM   #1
bavondrake
Member
 
Registered: Aug 2007
Posts: 40

Rep: Reputation: 15
Users cant telnet to my machine


Hi all,
I have set up a linux machine
#uname -a
Linux 2.6.5-7.244-smp #1 SMP Mon Dec 12 18:32:25 UTC 2005 x86_64 x86_64 x86_64 GNU/Linux

But users cant telnet to it.
This is the error message they get at their remote prompt
login: mytestuser
Password:
login: no shell: No such file or directory.

So i'm just wondering what is happening here because the account mytestuser exists ie /home/mytestuser and they are using default bash shell.

And when i issued this command su mytestuser as root i get

/root# su mytestuser
su: /bin/bsh: No such file or directory

Any idea of what is happening here?

thanks,

Bavon.
 
Old 09-21-2007, 12:17 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
What distro are you using? Telnet is usually disabled by default because it's not terribly secure. It's generally recommended to use ssh instead.

The other thing is to look in /etc/passwd and see if the shell is set (find the row with the user name mytestuser and then look at the end, it should say something like /bin/bash).
 
Old 09-21-2007, 12:20 PM   #3
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Quote:
su: /bin/bsh: No such file or directory
Is that bsh a typo?
 
Old 09-21-2007, 01:07 PM   #4
bavondrake
Member
 
Registered: Aug 2007
Posts: 40

Original Poster
Rep: Reputation: 15
pljvaldez,
Thanks for the reply,i'm using SUSE LINUX Enterprise Server 9 (x86_64).
To the suprise there is no entry in /etc/passwd under the username mytestuser,but most users do have /bin/bash in their /etc/passwd entries .Could that be the reason it fail to login? If not how can i change a particular user login shell without changing the login shell for other?

Jay73
the /bin/bsh is not a typo..it is bourne shell i think.And there is this /bin/bash for bourne again shell.

Bavon.
 
Old 09-21-2007, 01:10 PM   #5
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
That's probably it. Just edit the /etc/passwd file as the root user and add your shell to the end of the mytestuser line.
 
Old 09-21-2007, 01:42 PM   #6
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by bavondrake View Post
the /bin/bsh is not a typo..it is bourne shell i think.And there is this /bin/bash for bourne again shell.
Hmmm... on my system this is the description of /bin/bsh
Quote:
BeanShell is a small, free, embeddable, Java source interpreter with
object scripting language features, written in Java. BeanShell executes
standard Java statements and expressions, in addition to obvious
scripting commands and syntax. BeanShell supports scripted objects as
simple method closures like those in Perl and JavaScript(tm).
You can use BeanShell interactively for Java experimentation and
debugging or as a simple scripting engine for your applications. In
short: BeanShell is a dynamically interpreted Java, plus some useful
stuff.
jay73 is right: there should be a typo somewhere on your system!
 
Old 09-21-2007, 06:31 PM   #7
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Yep, the original Bourne shell is sh, not bsh.
 
Old 09-24-2007, 10:38 AM   #8
bavondrake
Member
 
Registered: Aug 2007
Posts: 40

Original Poster
Rep: Reputation: 15
Thanks all..now i know beanshell /bin/bsh.
How can i install it in my suse linux machine.Currently i don have it installed.
Bavon.
 
  


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
trying to copy files from another machine to the local machine using telnet,..how? shrike_912 Programming 6 03-14-2006 04:45 PM
Cannot telnet into linux machine from Solaris machine ngcddls Linux - Newbie 1 03-09-2006 08:07 AM
Migrating machine users to virtual users p_penduko Linux - General 2 11-04-2004 07:37 AM
No telnet server on my machine Zingaro2002 Linux - Networking 3 01-23-2003 06:12 AM
telnet into my machine? matrim Linux - Newbie 13 12-19-2002 07:46 PM

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

All times are GMT -5. The time now is 08:01 AM.

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