Sponsored Content
Full Discussion: How to hide login messages ?
Operating Systems Linux How to hide login messages ? Post 302497134 by Corona688 on Wednesday 16th of February 2011 12:31:59 PM
Old 02-16-2011
I don't see a way in my version. They're not login messages -- they're generated by the telnet binary itself, and printed to stdout, not stderr.

Perhaps telnet isn't the right tool for the job? If you're trying to script anything, netcat(nc) will save you lots of headaches over telnet because it never pretends to be a terminal... It just sends everything it has to send, receives until the other end closes, then quits. For instance:

Code:
$ echo "GET /" | nc yahoo.com 80
<!DOCTYPE html>
<html lang="en-US" class="y-fp-bg y-fp-pg-grad  bkt701">
<!-- m2 template 0 -->
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

    <title>Yahoo!</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="description" content="...">
    <meta name="keywords" content="...">
...
</html>
<!-- bid=701 -->
<!-- sid=2023538075 -->

<!-- myproperty:myservice-us:0:Success -->
<!-- w24.fp.sp2.yahoo.com uncompressed/chunked Wed Feb 16 09:33:25 PST 2011 -->
$


Last edited by Corona688; 02-16-2011 at 01:37 PM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Hide Passwords

Is there a way not to display the password in the sys out when your korn shell script logs into sqlplus? (3 Replies)
Discussion started by: lesstjm
3 Replies

2. Shell Programming and Scripting

Hide a script ?

Hi all, i have a perl script for my users to run. My sys admin created an account for the users to log in and execute the script. They just type "perl myscript.pl" at the unix prompt to run it. Is there any way that i can hide my script? ,ie, do not allow my users to view the script. either... (5 Replies)
Discussion started by: new2ss
5 Replies

3. Shell Programming and Scripting

Want to hide password

All, In my script I am calling another script.. in that script I need to enter a password. Problem is that everyone is able to see the password when I enter that. Is there any way that when i enter that password it should not display or may look like *******. Or if there any other way that I... (1 Reply)
Discussion started by: arpitk
1 Replies

4. UNIX for Advanced & Expert Users

How to Create Banner/Login Messages in Solaris.

Hi, I have been trying to create a banner/login message (something for displaying the usage policy etc) to appear while I login using telnet/FTP to any Solaris (pref. Solaris9) machine. I have tried using /etc/issue and /etc/motd files. Both do not solve my need. In that, /etc/issue displays... (8 Replies)
Discussion started by: mahatma
8 Replies

5. Shell Programming and Scripting

How to hide folders

hello everybody, i would like to hide visibility of the folders , i.e. not to giving any physically visibility to any users . Is there any way to do it other than changing the permission and adding "." post folder name . by changing the permission , we cann't do any activity , but have... (1 Reply)
Discussion started by: manas_ranjan
1 Replies

6. Shell Programming and Scripting

Hide process

Hi friends, I want (a C++ code) to hide process in kernel 2.6, I don't want monitoring even in /proc. please help me. Regards, Eilya (3 Replies)
Discussion started by: Eilya
3 Replies

7. Shell Programming and Scripting

Help to hide shell terminal and run prompt program after ssh login for specified user

Hey guys, I have some task from my office to lock user on the specified directory after the user logged on using ssh. And then run prompt program to fill the required information. Yeah, just like an ATM system. My question: How could I do those?? AFAIK I have to edit the ~./bashrc. But the... (1 Reply)
Discussion started by: franzramadhan
1 Replies

8. Solaris

Login error in /var/adm/messages

I had an issue with ssh on one of my servers and noticed the following errors, listed below. Errors in /var/adm/messagessshd lastlog_perform_login: Couln't stat /var/adm/lastlog: permission denied sshd lastlog_openseek: /var/adm/lastlog is not a file or directory! automountd self_check:... (0 Replies)
Discussion started by: bitlord
0 Replies

9. Programming

How to hide from UNIX strings - obfuscate or hide a literal or constant?

Hi, I need to somehow pipe the password to a command and run some SQL, for example, something like echo $password | sqlplus -s system @query01.sql To make it not so obvious, I decided to try out writing a small C program that basically just do echo $password. So now I just do x9.out | sqlplus... (8 Replies)
Discussion started by: newbie_01
8 Replies

10. UNIX for Advanced & Expert Users

How do I remove or hide SunOS version/release from remote login prompt?

For any SunOS 5.XX release, it appears prior to the "login:" prompt (as if a "uname" command is run). Would anyone know where that initial display of SunOS release comes from upon a remote login and how I can stop if from displaying? Thank you (4 Replies)
Discussion started by: ssid61
4 Replies
fence_rsb(8)						      System Manager's Manual						      fence_rsb(8)

NAME
fence_rsb - I/O Fencing agent for Fujitsu-Siemens RSB SYNOPSIS
fence_rsb [OPTION]... DESCRIPTION
fence_rsb is an I/O Fencing agent which can be used with the Fujitsu-Siemens RSB management interface. It logs into an RSB device via tel- net and reboots the associated machine. Lengthy telnet connections to the RSB device should be avoided while a GFS cluster is running because the connection will block any necessary fencing actions. fence_rsb accepts options on the command line as well as from stdin. Fenced sends parameters through stdin when it execs the agent. fence_rsb can be run by itself with command line options. This is useful for testing. Vendor URL: http://www.fujitsu.com OPTIONS
-a IPaddress IP address or hostname of the RSB device. -h Print out a help message describing available options, then exit. -l login Login name. -n telnet_port The port number on which the telnet service listens. -o action The action required. This can be reboot (default), off, on, or status. -p password Password for login. -S path Full path to an executable to generate the password for login. -v Verbose. Print informational messages to standard out. -V Print out a version message, then exit. STDIN PARAMETERS
agent = < param > This option is used by fence_node(8) and is ignored by fence_rsb. ipaddr = < hostname | ip > IP address or hostname of the device. telnet_port = < port number > The port number on which the telnet service listens. login = < param > Login name. option = < param > The action required. This can be reboot (default), off, on, or status. passwd = < param > Password for login. passwd_script = < param > Full path to an executable to generate the password for login. SEE ALSO
fence(8), fence_node(8) fence_rsb(8)
All times are GMT -4. The time now is 06:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy