General :: Configure A Command To Run On Login Through Telnet?
Feb 9, 2010I want to run a command every time I log in to my Ubuntu box, but only if I'm connecting through telnet, not if I'm logging in at the console.
View 1 RepliesI want to run a command every time I log in to my Ubuntu box, but only if I'm connecting through telnet, not if I'm logging in at the console.
View 1 RepliesI have two servers running Linux 2.6.9 kernel.When i telnet to server1 , the telnet will be disconnected only after 3 login failures. While, when i telnet to server2, telnet will be disconnected after the first login failure.expect server2 to behave the same way as server1 when telnet is executed.Kindly tell me where i should tweak my servers so that i could achieve what i expect.
View 1 Replies View RelatedI was just checking the configuration file of /etc/xinetd.d/krb5-telnet and i thought of enabling the telnet.I modified the configuration file accordingly and restarted the server.
Code:
# cat /etc/xinetd.d/krb5-telnet
# default: off
[code]...
telnet localhost 143Trying 127.0.0.1...Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2005 Double Precision, Inc. See COPYING for distribution information.a login rakesh@sanjiv.com rakesha NO Login failed.i have problem when Installing Courier-imap/imaps with Courierpassd .
If I only want to let a user be able to login via telnet a max number of times equal to 2 how would I go about doing this?I have found this little tid bit:per_source = 2but that only allows 2 connections from the same source (i.e. network) and that would not work. For some reason our telnet sessions are not dying off after a user has shutdown their PC and then the next time they login it adds another telnet session.
1. user1 31300 /dev/pts/409
2. user1 27539 /dev/pts/539
3. user1 18042 /dev/pts/316
[code]....
From Linux client end I can easily telnet to a remote Linux server easily , Like :
[root@apps1 ~]# telnet 192.168.1.14
Trying 192.168.1.14...
Connected to 192.168.1.14 (192.168.1.14).
Escape character is '^]'.
catalog.aibl.com (Linux release 2.6.18-8.el5 #1 SMP Tue Jun 5 23:25:19 EDT 2007) (1)
login:
But I want to disable the "telnet" command from the client end , so that I cannot telnet to a remote linux server from the Linux client end
On my ubuntu 9.10 pc i am not running a GUI.
Every thing is run from command line.
How do i start a second telnet session from command line.
Plus can i have 4 telnet session open and move from one to the next and back again.
install telnet in fedora 14 then how to configure telnet?
View 13 Replies View RelatedI have a question about telnet.Is there any way to configure a telnet server without disable firewall.I am using redhat 5.2 and fedora 12.I have lack of knowledge about firewall.
View 1 Replies View RelatedHow can I enable telnet login in a slackware derivative? (specifically Backtrack 3)Needing telnet because I'm unable to get ssh login working through a reverse ssh tunnel.
View 3 Replies View Relateda user called, cannot login - forgot the password - common case ( 200 user system )- but this one seems to be a bit different:
user tries to log in via ssh - login/passwd incorrect,
via telnet - no problem
tried a few different users on ssh - no problem... It seems the access denied applies to just a single, standard user account - only via ssh, all other users are able to login... tried also to change the passwd, no difference. beside re-creating the account, can you think about anything else? system: RHEL AS3, 2.4.21-51ELsmp
how to use telnet command
View 3 Replies View RelatedI have just a one line script that runs telnet, and even thoughI've looked around I thought maybe someone could just tell me if there is a way to automatically login to the telnet server without having to type it in everytime. It's more of a hassle type of thing, but no matter what I've tried, I can't get anything to work.
View 5 Replies View RelatedWhen I execute a command (ping or telnet or ssh) on ip 192.168.0.20 it is ok.
If I execute the same command on
ip 192.168.0.020, it looks for
ip 192.168.0.18 instead of
ip 192.168.0.20
And it's the same for others ip if I put a 0 ahead last byte.
I have a test socket on a server. If I connect to it using telnet, I get exactly the response I expect. So I know the socket works, and the script on the server works:
Code:
my-desktop:~$ telnet 192.168.1.1 3333
Trying 192.168.1.1...
Connected to 192.168.1.1.
Escape character is '^]'.
RAM: 90 % Free ( 2793 M free, 3082 M total)
Connection closed by foreign host. And if I script it, I get almost the same response from Telnet, but still a valid response from the socket. So I know that my script works:
[Code].....
finally i found the script for telnet automated login session...<<Mod edit: questionable link removed>>
View 4 Replies View RelatedI am trying to follow this tutorial below so that I can get Text to the right of icons on the GNOME desktop. [URL] Everything so far has worked fine, except when I get to step 3 where I compile Nautilus. When I try to run the command ./configure --prefix=/usr It tells me bash: ./configure: No such file or directory
View 5 Replies View RelatedI downloaded the lastest x86 stable release of openfiler and installed it on VBOX durring the install I selected to manually do the partitions and added a
/boot
swap (x2 ram)
/
Partition scheme. I selected DHCP client on the network configuration. Now from what I understand once I have done that I should be able to point my browser to https:<IP>:446 and login as root and configure everything within the GUI. But when I log in there is nothing to configure. My host system is Ubuntu x86_64 4GB Ram amd dual core processor.
I am trying to find the difference between the above two services. Both are under xinetd and can someone please explain the difference between them (is one more secure than the other one?)
View 1 Replies View RelatedIs there a way to configure the at command to send to someone other than root?
View 1 Replies View RelatedI have installed ipcop v 1.4.21, and addons TCAR and Ipcop-Advanced proxy.Now i want a login script for users on the green interface. So that when they start using internet, they first receive login page (or even through a login url page), and if they are idle for particular time, they should disconnect automaticaly. and users can check their bandwidth usage and time usage on this page.
View 1 Replies View RelatedI have a src package which uses automake for make. How can I view the available options in configure command for enabling and disabling options?
View 4 Replies View RelatedI am a user of version 2006 of Mandriva server and now I am upgrading to MES5. According to support, netatalk is no longer support by this version (at least in Brasil), and I still have some old Macs running System 9.2 and it is very important to have netatalk running at server. I download netatalk and followed the intructions showed at:[URl]...
I was able to follow the instruciont until step 5, executing ./bootstrap. Next, I should execute the next command: ./configure, but I got the message No such file or directory. There is no REAME file at the directory and the only configure file it has is configure.in, a 40kb file, plain text document, its first line says dnl configure.in for netatalk.
For some reason every time I enter the 'login' command as root, my putty shell craps out. It's as if the kernel is not prepared or does not know how to handle the 'login' command. Where can I set it up? Maybe it's not configured to use PAM?
I want to use this command to switch users. Sure I can use 'su username' but I noticed there are some issues when using 'mail' command right after I change users. It gives me a permissions error as if the environment variable for mail is set for roots mailbox instead of the new users mailbox.
How can I configure 'login' to work properly in CentOS?
My problem is:
sub init() {
$Test->description("Establishing the connection to the client");
eval {
$Host = host($CLIENT) or die($@);
$Conn = connect("#ssh") or die "Client connection Failed" . $@;
};
if ($@) {
$Log->error("Unable to instantiate the Objects for the Test" .
[Code]...
Here I'm trying to connect windows machine using connect object which is working fine. But when I tried to execute the command on Windows machine from Linux machine by using:
[Code]...
I have a Linux application(ProMAX 5000) running in a virtual Machine on my windows OS. I am using an external Hard drive of 250G in ext2 file system as my device for large data read, write & execute file system. I have already mounted the device from /etc/fstab. But i want my application to access this device as a Primary data storage device OR Secondary storage device. What command will i invoke to partition this 250G drive as my primary or secondary storage device.
View 1 Replies View RelatedI have a Linux machine which I set up for my personal use at home. I installed Fedora Core 11 a long time ago, and recently I noticed that I am not able to log in as root (I didn't realize this issue until recently since I always have been logging in as a user account that I created during the FC11 installation).When I login as a user account instead of root, I can use the su command with the password I set up for the root account. Even when I'm in GUI mode and try to make changes to the system from the user account, the GUI asks to enter the root password, and I type the password I set for root and it works. However, if I boot the machine and try to log in the system as root, password that I set up is rejected.
I'm very puzzled with this problem because with my limited knowledge on Linux system, I thought the root password and the su password are the same (i.e. when you install Linux OS, you set the root password, and you use the same password for using the su command). I do not know exactly when this problem started, but the only thing that I can think of as a cause of this issue is that I once changed the root password from GUI using System > Administration > Root password since the system one time complained about the low security strength of the root password.
Few day back I have installed fedora 15 in my system with gnome desktop environment. when i was using fedora 11 I used to login via command line by changing the /etc/inittab from run level 5 to run level 3 . once if i login when ever i need GUI, simply i will type startx command , but when i tried to change the runlevel in fedora 15 , It was confusing to me , there is no 1,2,3 is there . how can i change to command mode login in fedora 15..?
View 1 Replies View RelatedDoes anyone know how to login through command line in grub.
View 14 Replies View RelatedI am using debian 5.04(base) + lxde. I am using gdm to login. I want to change the gdm to commandline login only, which similar to (ctrl +alt + f2) but whenever computer restart, it boot into gdm. what is the file to change the boot level?
View 1 Replies View Related