Re: Telnet not working! Why?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> I'm trying to install tewlnet on one of my servers but something is
wrong.
> I've installed package nkit serv which included the telnetd daemon.  I
> uncommented the telnet line in inetd.conf in  /etc then after resetting the
> machine I tried to telnet the server.  I'm getting the error message :
> connection refused

is inetd running? i.e ps waux | grep inetd or rcinetd status
what do you get when you run these commands?

If not edit /etc/rc.config and set
START_INETD="yes" and then run rcinetd start

Looking at the output of /var/log/messages with tail -f /var/log/messages
 on another tty as you try to connect to telnet may yield some
interesting information.

> I also need to heavily restrict the commands available to people telnetting to
> the server.  How is this done? (I know it can be done but not how!)

BTW, you would be much better off with ssh. Openssh comes with SuSE and is
installed by default. use that instead.

Just an idea:

change the shell to /usr/bin/rbash then edit /home/$user/.profile to have
PATH = /usr/local/rbin

Create a directory /usr/local/rbin with permissions 0755 and put all the
commands that you would like users to use in that directory.

This should be quite a simple chroot. restricting the path means that the
user will not be able to avoid your restricted shell by simply typing
another shell at the shell prompt.
dp chattr +i /home/$user/.profile such that the user is unable to change
the values in that file since it is only root that cna remove the
immutable bit from a file.

Noah.

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux