Sponsored Content
Top Forums UNIX for Dummies Questions & Answers supressing kernel info in /bin/login Post 26959 by cerberusofhate on Monday 26th of August 2002 03:29:49 PM
Old 08-26-2002
supressing kernel info in /bin/login or telnetd

I'm assuming that /bin/login is the culprit that keeps on displaying my kernel version when I telnet in, as I have already killed /etc/issue.net, and /etc/motd (although motd is displayed after login), but I now still get my kernel version. I want a "clean" login, *NO* versions of anything displayed. How do I accomplish this? As I said before, I already killed /etc/issue/net.
Thanks.

Last edited by cerberusofhate; 08-26-2002 at 04:52 PM..
cerberusofhate
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to check kernel info

Hi, can anyone tell how can i check kernel memory and paging info etc.. thanks, Mazhar (6 Replies)
Discussion started by: mazhar99
6 Replies

2. Shell Programming and Scripting

Supressing and replacing the output of a field in Awk

Wondering if anybody can help with changing the output of a field. I'm needing to change the output of a field in this file: User Process ID Time Active Licences Type ChangeAdmin (Phys-agsdev/19353 212), start Wed 1/21 6:30 (linger: 1800) u414013 (Phys-agsdev/19353 1491), start Wed 1/21 12:54... (5 Replies)
Discussion started by: Glyn_Mo
5 Replies

3. UNIX for Dummies Questions & Answers

fuser: difference with bin/sh and bin/ksh shell script

Hi, I have a problem I don't understand with fuser. I launch a simple shell script mysleep.sh: I launch the command fuser -fu mysleep.sh but fuser doesn't return anything excepted: mysleep: Then I modify my script switching from #!/bin/sh to #!/bin/ksh I launch the command fuser -fu... (4 Replies)
Discussion started by: Peuj
4 Replies

4. Linux

How to get installed kernel patch info

Hi I want to get the info about which version of kernel patchs are installed in my system. I am using susu10. Rgds, ashokd009 (1 Reply)
Discussion started by: ashokd009
1 Replies

5. Shell Programming and Scripting

supressing carrige returns/line feeds

Hi gurus I am stripping lots of email addresses from a file with this grep "^To" file.log |awk '{print "1,"$2}' > recipients.out file.log looks something like this: oasndfoasnosf To: person@email.co.uk lsdfjosd sdlfnmsopdfwer dtlghodrgn To: person2@emailsss.com sldfnsdf I... (5 Replies)
Discussion started by: terry2009
5 Replies

6. Shell Programming and Scripting

Help supressing spool output from screen when calling sqlplus from script

I'm calling an embedded sql from my shell script file. This sql does simple task of spooling out the contents of the table (see below my sample code) into a spool file that I specify. So far so good, but the problem is that the output is also displayed on screen which I do NOT want. How can I... (3 Replies)
Discussion started by: MxC
3 Replies

7. OS X (Apple)

When to use /Users/m/bin instead of /usr/local/bin (& whats the diff?)?

Q1. I understand that /usr/local/bin means I can install/uninstall stuff in here and have any chance of messing up my original system files or effecting any other users. I created this directory myself. But what about the directory I didn't create, namely /Users/m/bin? How is that directory... (1 Reply)
Discussion started by: michellepace
1 Replies

8. Shell Programming and Scripting

Supressing error while using grep command

I am tryin to grep some pattern in file and redirecting it in to another file. If the file doesn't exist then it should not throw error. eg : grep "pattern" "$path1/filename" >> newfile I have multiple number of grep statement like this. so i cant check each and every is exist or not... ... (1 Reply)
Discussion started by: arukuku
1 Replies

9. AIX

Successful user login, yet system claims invalid info

I have four AIX 6.1.7.4 systems freshly built and ready for our DBAs to do their work. Of the three one runs into an odd issue while logging in as himself, using Putty with ssh protocols. He logs in successfully, but also gets the following error message: : 3004-300 You entered an invalid login... (2 Replies)
Discussion started by: Mike Brendan
2 Replies

10. Shell Programming and Scripting

Supressing lines starting with #

Ok, I should know how to do this... I want to run crontab -l and pipe it through sed so that only those lines that do not have a # as the first character show on the screen... I know Ive doen this before but its been a decade since I scripted anything Im working in AIX 7.1 using the crontab... (3 Replies)
Discussion started by: immagikman
3 Replies
LOGIN(1)						   Linux Administrator's Manual 						  LOGIN(1)

NAME
login - Begin session on the system SYNOPSIS
login [ -p ] [ -h host ] [ -H ] [ -f username | username ] DESCRIPTION
login is used when signing onto a system. If no argument is given, login prompts for the username. The user is then prompted for a password, where approprate. Echoing is disabled to prevent revealing the password. Only a small number of password failures are permitted before login exits and the communications link is severed. If password aging has been enabled for the account, the user may be prompted for a new password before proceeding. He will be forced to provide his old password and the new password before continuing. Please refer to passwd(1) for more information. The user and group ID will be set according to their values in the file. There is one exception if the user ID is zero: in this case, only the primary group ID of the account is set. This should prevent that the system adminitrator cannot login in case of network problems. The value for $HOME, $SHELL, $PATH, $LOGNAME, and $MAIL are set according to the appropriate fields in the password entry. $PATH defaults to /usr/local/bin:/bin:/usr/bin:. for normal users, and to /sbin:/bin:/usr/sbin:/usr/bin for root if not other configured. The environment variable $TERM will be preserved, if it exists (other environment variables are preserved if the -p option is given) or be initialize to the terminal type on your tty line, as specified in /etc/ttytype. Then the user's shell is started. If no shell is specified for the user in /etc/passwd, then /bin/sh is used. If there is no directory specified in /etc/passwd, then / is used (the home directory is checked for the .hushlogin file described above). login reads the /etc/login.defs(5) configuration file. Please refer to this documenation for options which could be set. OPTIONS
-p Used by getty(8) to tell login not to destroy the environment -f Used to skip a second login authentication. This option is deprecated and should not be used. It does specifically not work for root. Using this option also means, that not all PAM functions are called. -h Used by other servers (i.e., telnetd(8)) to pass the name of the remote host to login so that it may be placed in utmp and wtmp. Only the superuser may use this option. -H Used by other servers (i.e., telnetd(8)) to tell login that printing the hostname should be suppressed in the login: prompt. FILES
/var/run/utmp - list of current login sessins /var/log/wtmp - list of previous login sessions /etc/passwd - user account information /etc/shadow - encrypted passwords and age information /etc/motd - system message file /etc/login.defs - configuration file SEE ALSO
init(8), getty(8), mail(1), passwd(1), passwd(5), environ(7), shutdown(8), login.defs(5) BUGS
A recursive login, as used to be possible in the good old days, no longer works; for most purposes su(1) is a satisfactory substitute. Indeed, for security reasons, login does a vhangup() system call to remove any possible listening processes on the tty. This is to avoid password sniffing. If one uses the command "login", then the surrounding shell gets killed by vhangup() because it's no longer the true owner of the tty. This can be avoided by using "exec login" in a top-level shell or xterm. AUTHOR
Derived from BSD login 5.40 (5/9/89) by Michael Glad (glad@daimi.dk) for HP-UX Ported to Linux 0.12: Peter Orbaek (poe@daimi.aau.dk) Added new features: Thorsten Kukuk (kukuk@suse.de) PAM Login 3.32 2. May 2007 LOGIN(1)
All times are GMT -4. The time now is 02:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy