Sponsored Content
Operating Systems Solaris don't want banner displayed when using scp Post 302501435 by achenle on Thursday 3rd of March 2011 01:46:39 PM
Old 03-03-2011
Try creating a .hushlogin file in your home directory on the remote server:

Code:
touch ~/.hushlogin

 

8 More Discussions You Might Find Interesting

1. Solaris

hostname not displayed

Hi, I posted a problem earlier on on how to change IP addresses on an E450. I was able to work around this and wanna say thanks to all who assisted. But now on my server, I get this error, trying to configure hosts..RPC timed out. Also, when I type on the command line, hostname, nothing is... (7 Replies)
Discussion started by: Ronny
7 Replies

2. HP-UX

swlist is not displayed in HP-UX

Hi swlist command is not displayed in HP-UX ..it displays swlist: Command not found. uname -a HP-UX inccishh B.11.11 U 9000/800 4046719263 unlimited-user license :b: Best Regards vasanthan (4 Replies)
Discussion started by: vasanthan
4 Replies

3. Shell Programming and Scripting

Password is getting displayed

My shell script which runs on solaris has an execution in it. Contents of shell script BEGIN : Executable_filename username/password@DBinstance parameter2 parameter3 Contents of shell script END : When i launch the shell script, it connects to database to gets few details.. In the... (3 Replies)
Discussion started by: shafi2all
3 Replies

4. Shell Programming and Scripting

How to disable banner displayed on ssh connect

Is there away to disable a banner/motd when connecting to a server via ssh? The reason I want to do this is that I have a script that issues multiple SSH connection to remote machines so as to invoke a script on the remote machine. The script runs fine on the remote machine its just that I... (1 Reply)
Discussion started by: davejavu
1 Replies

5. UNIX for Dummies Questions & Answers

Date to be displayed in two digits

I want the date to be displayed in two digits. I have written a script to calculate yesterday's date. I'm getting the yesterday's date as 2009085. Desired output: 20090805 Find the script below: #!/bin/ksh ### Script to get Yesterday Date ############# Y=`date +'%Y'`... (6 Replies)
Discussion started by: venkatesht
6 Replies

6. Shell Programming and Scripting

password getting displayed using sudo

Hi While doing the following command password is gettin dispalyed : ssh <host> "sudo command ; exit" .... while i type my password for 2nd its gettin displayed ... i tried stty -echo and stty echo ... still i am havin problem..:confused: (1 Reply)
Discussion started by: ningy
1 Replies

7. Shell Programming and Scripting

Highlight the string displayed

Hi, Want to highlight the string displayed on the screen. ften="File selected" FB1="\e From the above code, String "File selected" gets highlighted, but the string in the next line does not get highlighted. I tried using FB1& FB2 variables but didn't worked out may be due to too... (1 Reply)
Discussion started by: milink
1 Replies

8. Shell Programming and Scripting

Banner causes scp to fail from script but not command line.

Hi, We have an interesting issue which is similar to the one in this thread, but that never provided a full answer. - Ohh apparently I can't post URLs till I have 5 posts, sorry. We have a simple script that copies files from one shelf to the other. Both shelves have an ssh banner defined. ... (3 Replies)
Discussion started by: RECrerar
3 Replies
LOGIN(1)						      General Commands Manual							  LOGIN(1)

NAME
login - sign on SYNOPSIS
login [ -p ] [ username ] DESCRIPTION
The login command is used when a user initially signs on, or it may be used at any time to change from one user to another. The latter case is the one summarized above and described here. See "How to Get Started" for how to dial up initially. If login is invoked without an argument, it asks for a user name, and, if appropriate, a password. Echoing is turned off (if possible) during the typing of the password, so it will not appear on the written record of the session. After a successful login, accounting files are updated and the user is informed of the existence of mail. The message of the day is printed, as is the time of his last login. Both are suppressed if he has a ".hushlogin" file in his home directory; this is mostly used to make life easier for non-human users, such as uucp. Login initializes the user and group IDs and the working directory, then executes a command interpreter (usually csh(1)) according to spec- ifications found in a password file. Argument 0 of the command interpreter is the name of the command interpreter with a leading dash ("-"). Login also modifies the environment environ(7) with information specifying home directory, command interpreter, terminal type (if avail- able) and user name. The `-p' argument causes the remainder of the environment to be preserved, otherwise any previous environment is dis- carded. If the file /etc/nologin exists, login prints its contents on the user's terminal and exits. This is used by shutdown(8) to stop users log- ging in when the system is about to go down. Login is recognized by sh(1) and csh(1) and executed directly (without forking). FILES
/var/run/utmp accounting /usr/adm/wtmp accounting /usr/spool/mail/* mail /etc/motd message-of-the-day /etc/passwd password file /etc/nologin stops logins .hushlogin makes login quieter SEE ALSO
init(8), getty(8), mail(1), passwd(1), passwd(5), environ(7), shutdown(8), rlogin(1c) DIAGNOSTICS
"Login incorrect," if the name or the password is bad. "No Shell", "cannot open password file", "no directory": consult a programming counselor. BUGS
An undocumented option, -r is used by the remote login server, rlogind(8C) to force login to enter into an initial connection protocol. -h is used by telnetd(8C) and other servers to list the host from which the connection was received. 4th Berkeley Distribution November 27, 1996 LOGIN(1)
All times are GMT -4. The time now is 08:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy