Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Telnet problem

Status
Not open for further replies.
May 15, 2000
245
US
one problem down a couple to go. I'm configuring my server for Telnet acess. I'm getting an error logging in as root, but getting a "login incorrect" error. Any ideas? I'm still working on the Samba problem, I'm just moving to something a little more proactive at the moment.
thx

Domenick Pellegrini
dpellegrini@yahoo.com

 
Hi,







Its meant to function like that, i.e. root access via telnet is disabled by default for security reasons. This is because everything is sent in plain text. What is preventing you is the PAM security configuration.







Recommended solutions are (i) use ssh because its encrypted and far superior to telnet (ii) login as a regular user and 'su' to root from that session. If you really want to disable the security, you could edit /etc/pam.d/login but I really don't recommend it under any circumstances.





Regards


 
Well so far the only luck that I've had getting remote access of any kind to work is telnet. I created a new user, so I'm able to get in with that. I've been trying to get Samba to work, with no success. And I'm not sure where to start with SSH. If you have any recommendations, I would sure appreciate them.
Thanks for the tip above.

Domenick Pellegrini
dpellegrini@yahoo.com

 
You can log in via telnet and just su, but this is not that great an idea since all telnetpw are sniffable on the wire.
Try deslogin as a telnet replacement.
ftp://ftp.uu.net/pub/security/des
you will need the cipher-3.0.tar.Z and the des-1.3.tar.gz
packages, but if you enjoy messing with the keys and putting up with the hassle of SSH forget i mentioned it.


basic smb.conf
[global]
workgroup = "workgroup name"
netbios name = "Chap rouge"
security = share
encrypt passwords = yes

[share]
path = "/home/smbuser/share"
comment = insecure open share
browseable = yes
writeable = yes
Create the user and directory and make it writeable
and readable.

Then write a small start script:
#!/bin/sh
if [ ! -z $(pidof smbd) -a ! -z $(pidof nmbd) ]
then
echo "Samba D is running at $(pidof smbd) and
net bios D is running at $(pidof nmbd)."
else
if [ "$UID" -eq 0 ]
then
nmbd && smbd > /dev/null 2>&1
else
echo " Must have root permissions to start
samba services."
exit 1 > /dev/null
fi
fi
name this smbstart ; chmod 700 smbstart
and run it manually, or use RH's built in run level editor
as ifincham mentions , to run the service.

you can also allow root logins via telnet, but this is
EXTREMELY bad practice. (man securetty.)
 
Thanks for the info. I give it a try and see how it works.
 
Well, I gave it a go and it didn't work(the samba part) I've got telnet working, and I'm using a user I created, so at least that's up. It appears that the netbios name is not being recognised and the samba service is not starting . I have the lmhost file modifies with the netbios name. I don't know if this is related but on reboot, the httpd service fails. I don't think it's related.

Domenick Pellegrini
dpellegrini@yahoo.com

 
According to what I have read, the $ /etc/rc.d/init.d/smb file that should be there, is not.I'm wondering if the smb file was placed in another directory or if it wasn't installed at all. After unpacking the tar.gz package, I ran ./configure
make install
as instructed in the documentation. I then modified the lmhost, services, and smb.conf files as instructed in the documentation. I'm obviously missing something here. It does appear that the smbd and nmbd are running and testparm returns no errors.

Domenick Pellegrini
dpellegrini@yahoo.com

 
Hi,

That's because you used a tar.gz file instead of a rpm. You said you had Redhat 7.x in another post so, unless have some specific reason not to use the rpms, I'd recommend you download and install these :


Just download them to a directory and then (as root) do :

rpm -Uvh samba*.rpm

Redhat's packaged versions include the init scripts that facilitate starting samba as a service, i.e. '/sbin/chkconfig --level 2345 smb on'

Regards
 
Well making some headway. ssh and telnet working fine. Samba still not. It appears that the server doesn't recognize the NETBIOS name. The win2k workstation actually does, using nbtstat. But nmblookup fails to return anything on the server itself.

Domenick Pellegrini
dpellegrini@yahoo.com

 
Well I'm up and running with Samba, Telnet and FTP, I can access it from my Win2k box, and everything is working well. Or at least as well as I am aware.
Thanks for all your help everyone!!


Domenick Pellegrini
dpellegrini@yahoo.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top