LOGIN(1) General Commands Manual LOGIN(1)NAME
login - log into the computer
SYNOPSIS
login [user]
EXAMPLES
login ast # Login as ast
DESCRIPTION
Login allows a logged in user to login as someone else without first logging out. If a password is needed, login will prompt for it.
SEE ALSO su(1), init(8), getty(8), rlogin(1).
LOGIN(1)
Check Out this Related Man Page
LOGIN(1) General Commands Manual LOGIN(1)NAME
login - sign on
SYNOPSIS
login [ 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 and message-of-the-day files.
Login initializes the user and group IDs and the working directory, then executes a command interpreter (usually sh(1)) according to speci-
fications found in a password file. Argument 0 of the command interpreter is `-sh.
Login is recognized by sh(1) and executed directly (without forking).
FILES
/etc/utmp accounting
/usr/adm/wtmp accounting
/usr/mail/* mail
/etc/motd message-of-the-day
/etc/passwd password file
SEE ALSO init(8), newgrp(1), getty(8), mail(1), passwd(1), passwd(5)DIAGNOSTICS
`Login incorrect,' if the name or the password is bad.
`No Shell', `cannot open password file', `no directory': consult a programming counselor.
LOGIN(1)
I don't want SunOS 5.8 to appear when someone logs into my machine... how do I go about changing the banner?
I was thumbing through my unix books and I haven't found anything... I'm probably looking under the wrong topic...
anyways... any help would be greatly appreciated. (20 Replies)
When I telnet to a unix server someone put a stupid message there:
Last login: Mon Nov 15 16:59:13 from xxx.xxx.xxx.xxx
Sun Microsystems Inc. SunOS 5.8 Generic Patch October 2001
YO! <-- message
Mon Nov 15 17:19:05 EST 2004
How did they do it and how can I find out who did it?
... (17 Replies)
Hi experts,
I've installed Solaris 8 to Sunfire V480. After installation I only could login to the server using CLI command. Can you show me how to start the login GUI? I use standard SUN graphic monitor and keyboard.
Thanks in advanced.
VN (26 Replies)
The system loads fine no errors on the system during boot. when it tries to start it goes to hostname % it does not show the login screen for the users. any help on this would be great. is the X11 not starting properly? (16 Replies)
Hello all ,
I looked up this site for solutions to hide login info from ps -ef | grep like using a seperate file and store the password in that especially for oracle sqlplus scripts.
I just got this thought , But dont know how to implement this in UNIX.
Is there a way to revoke access from... (17 Replies)
Hello
I have a Zabbix Server were Linux kernel version 2.6.26-2-amd64 is running.
now my Question how can i make a script that does:
- connect with ssh to a device
- get the systeminfo (but only the interfaces, mac adresses, serialnumber and Software version)
- write the output in a file
... (18 Replies)
Hi there,
I have a Debian 5.0 server that my company uses for deployment testing. This server needs to be accessed by NOC people that have no NIX knowledge whatsoever.
I am creating a bash script for a menu-based command interface for the commands they need to run on their testing routines,... (21 Replies)
Friends!!
I need your help. Where can i change/set the last login details as below in aix 5.3. And how to do that to get the results as exactly below
login as: mbpops
mbpops@xx.28.3.24's password:
Last unsuccessful login: Mon Nov 22 14:32:27 GMT 2010 on ssh from 10.132.5.129
Last login:... (17 Replies)
I have a new box that was set up for me and I want to allow telnet to the box as root. I know that it's not secure but due to the nature of what I test I need an easy and reliable way back in if I've messed up the other connection methods(SSH). This is in a protected lab environment. Eventually... (17 Replies)
I am a bash beginner and I need to write an script to check my users login time. This has to be in a format of :
This script has to work on a server to check all the users. I know that I have to use "last" command but I have no idea how to do it.
any assistance is appreciated.
Thanks (17 Replies)
How can I add a check right after the FTP to see if the login id failed or not and echo an error description indicating login failed?
Here is my script:
ftp $HOST1 <<END_SCRIPT>>$TARGETLOGS/$LOGFILE
#ftp $HOST1 <<END_SCRIPT>
cd idx
prompt
mget $PICKUPFILE*.txt
!cp $PICKUPFILE*... (17 Replies)
Hello all,
for security reasons my compagny imposes that my script be launch remotly via ssh under the users login shell.
So serverA launches the ssh command to serverB which has a local user with my script as a login shell.
Local script works like a charm on his own.
serverB$ grep... (20 Replies)
Hi.
I inject my tracklogin.sh script in the profile of each user.
$ more .profile
./tracklogin.sh
# This is the default standard profile provided to a user.
MAIL=/usr/mail/${LOGNAME:?}
bash-3.2$ more tracklogin.sh
#!/bin/bash
tdate=$(date +"%d%m%y")
mkdir -p /tmp/root_log... (20 Replies)