Operating System - HP-UX
1834226 Members
2461 Online
110066 Solutions
New Discussion

Login Script 10.2 HP Unix

 
SOLVED
Go to solution
mat72
Advisor

Login Script 10.2 HP Unix

Hi,

I need your help, I have to start with Unix and try to find where the system stores the information for LogIn.

When I log in on a B2600 with HP UX 10.2 I get a message. I want to delete this login information, since it is not needed anymore.

I looked to file .profile, but I cant find the information which are displayed during login.

Here the .profile file

# @(#) $Revision: 74.2 $

# Default (example of) super-user's .profile file


# Do not put "." in PATH; it is a potential security breach.
# Do not put "/usr/local/bin" in PATH; it is a potential security breach.
# Example assumes /home/root exists.
set +u

PATH=/usr/sbin:$PATH:/sbin:/home/root

# Be sure that VUE does not invoke tty commands

if [ ! "$VUE" ]; then

# Set up the terminal:
if [ "$TERM" = "" ]
then
eval ` tset -s -Q -m ':?hp' `
else
eval ` tset -s -Q `
fi
stty erase "^H" kill "^U" intr "^C" eof "^D"
stty hupcl ixon ixoff
tabs
stty erase 

echo
echo "Value of TERM has been set to \"$TERM\". "
export TERM

EDITOR=vi
export EDITOR

fi # if !VUE


# Set up shell environment:

set -u # error if undefined variable.
trap "echo 'logout root'" 0 # what to do on exit.


# Set up shell variables:

MAIL=/var/mail/root
# don't export, so only login shell checks.

echo "WARNING: YOU ARE SUPERUSER !!\n"

 

Thanks for helping

2 REPLIES 2
Solution

Re: Login Script 10.2 HP Unix

Check if there is a "/etc/motd" file. (message of the day)

Also check /etc/profile, which is the default profile that is been sourced before the user-specific $HOME/.profile

Hope that helps.

 



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
mat72
Advisor

Re: Login Script 10.2 HP Unix

Great Thanks. Got it.