1829963 Members
2637 Online
109998 Solutions
New Discussion

root .profile

 
Ed Ackerman
New Member

root .profile

Someone (our App Provider) managed to delete the root .profile. I have created a working /.profile but it's not quite right. Could some kind soul email me a copy of their /.profile. We haven't made any changes to it, so just the standard default HP-UX 10.20 /.profile would be nice.
edack@films.com or edack@kengel.com
Thanx
5 REPLIES 5
Thomas Schler_1
Trusted Contributor

Re: root .profile

You will find the standard .profile in /etc/skel/.profile.
no users -- no problems
Rainer_1
Honored Contributor

Re: root .profile

you could find the default .profile for root at

/usr/newconfig/.profile
Lasse Knudsen
Esteemed Contributor

Re: root .profile

You already have a copy - it is in
/usr/newconfig/.profile

/Allan
In a world without fences - who needs Gates ?
James R. Ferguson
Acclaimed Contributor

Re: root .profile

Ed:

The default, root profile is in /usr/newconfig/.profile

Regards!

...JRF...
Darrel Louis
Honored Contributor

Re: root .profile

Below a .profile.

Never give root access to third party, Security rule number one. This time it was your profile, next time it can be your root filesystem.
set permissions to 444(chmod)


# @(#) $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:/opt/omni/sbin

# 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

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:
export EDITOR=vi
export HISTFILE=/.sh_history
MAIL=/var/mail/root
# don't export, so only login shell checks.
echo "WARNING: YOU ARE SUPERUSER !!\n"