LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-17-2001, 05:11 PM   #1
AtulGore
LQ Newbie
 
Registered: Jul 2001
Location: Sunnyvale, CA
Posts: 11

Rep: Reputation: 0
Telnet and SU problem!!!


I am facing a strange problem. I have installed RH 7.2 and it was working fine. I was able to telnet, SSH properly. Now suddenly (!) if I try to telnet by any user it gives an error message:
Last Login:.....
/home/user1: No Home Directory!

and it disconnects.

Also when I am logged in as root (using SSH) and I try to do a

su - user1

I get the error:
su: cannot run /bin/bash: Permission denied


Any ideas!!

I am stuck. Please help.

Thanks in advance.....
... Atul
 
Old 12-18-2001, 01:24 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608
Plz do *not* use telnet. It doesn't use encryption so any data sent can be sniffed from the wire to grab your passwords, commands, everything.
Best is to remove telnet and telnetd (the telnet daemon) from your system. Use SSH instead.
Plz do *not* login as *root* with SSH. Login as any regular user and then use sudo to su to root.
It's the proper way to do it.
If you must login as root dont forget to set allowing rootlogins in sshd.conf.
Btw, you *did* upgrade your sshd to the last version w/o vulnerabilities?..
 
Old 12-18-2001, 04:28 AM   #3
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
By the errors you are getting it looks like you either have permissions set wrong or you are missing a few things.

When it says permission denied to /bin/bash then most likely you gotta make sure that user has write and execute rights in the /bin directory and for the bash file.
The same for not finding the home directories. Either it's not present or the permissions are not set properly. The user has to have x rights all the way down to the root dir. The /home directory usually should have the permissions rwxr-x--x owner=root group=adm.

If you personally haven't changed any of these things then I'd start looking around for signs of breakins. Because they don't change by themselves.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
telnet problem. bruse Linux - Networking 7 09-15-2005 09:47 AM
i have telnet problem. bruse Linux - Newbie 3 08-12-2005 10:00 AM
telnet problem vivek007 Red Hat 2 10-31-2003 12:28 PM
problem with telnet - please help nairda Linux - Networking 2 10-26-2003 08:50 AM
telnet problem lomaree Linux - Networking 4 05-29-2003 09:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:14 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