08-07-2006
How to change root's .profile settings
As a regular (non-root) user on Unix servers I'm accustomed to changing my .profile file to set paths that I frequently use, etc.
I am trying to learn unix and set up a test server running SunOS 5.8. When I login as root I don't see a .profile file that belongs to root wherein I could change the default shell, path variables, etc.
What am I missing? How do I create the file, or is it somewhere I'm not looking in?
Thanks!
10 More Discussions You Might Find Interesting
1. Solaris
Hi friends,
On a Solaris system is the .profile executed for the user root also as it is for any normal user ?
if i have to change the PATH variable can i add it to the .profile?
and by default ther .profile is not found in the / directory. i can see it in /etc as /etc/profile.
Should i... (1 Reply)
Discussion started by: sveera
1 Replies
2. Solaris
I support a product which writes to log files and it's currently formatting the date in US format. I've established this is due to these settings:
account1# locale -k d_fmt t_fmt
d_fmt="%m/%d/%y"
t_fmt="%H:%M:%S"
If I log on with a different account the settings are different:
... (1 Reply)
Discussion started by: m223464
1 Replies
3. UNIX for Advanced & Expert Users
I need to configure my .profile so that it should always reflect my present directory path during my session. How can i do that.
Please help (1 Reply)
Discussion started by: satgur
1 Replies
4. Solaris
I am trying to add a .profile for root
I cd to /
do
vi .profile
and get
/var/tmp/ExGXaaqa Read only file system...
What does this mean? (4 Replies)
Discussion started by: liven
4 Replies
5. Solaris
I am using Solaris ...
I have some settings in my .profile and in .profile iam calling some scripts.
After i logged in to that box if i gave "bash" and proceed with my shorcuts(alias) are not working . (3 Replies)
Discussion started by: girija
3 Replies
6. AIX
Hi
Can any one tell the procedure to change the maxpout and minpout settings on AIX (1 Reply)
Discussion started by: newtoaixos
1 Replies
7. Red Hat
Hi,
I have 48 cores in my server. I want to assign 50% of the cores to certain programs and rest to some other programms. I found the command "taskset" very good option to assign cpu afinity to already running programms or newly created programms.
But the problem is even if i set a cron to... (1 Reply)
Discussion started by: Rantu
1 Replies
8. AIX
Hi,
what are the ideal/best/recommended ulimit settings for a root user in AIX?
I understand that it depends on our environment. But I would like to know...what are settings you guys use in your environment for best performance.
default:
fsize = 2097151
core = 2097151
... (8 Replies)
Discussion started by: System Admin 77
8 Replies
9. Shell Programming and Scripting
Hi, I have a big settings confg (file attached). There are a few separate tasks that I have to accomplish. All scripting/programming languages are appreciated.
1. I need to parse all values and output to stdout. Sample output (truncated):
VALUEA
2017-01-01
Lores ipsum
Lorem ipsum dolor sit... (11 Replies)
Discussion started by: useretail
11 Replies
10. UNIX for Beginners Questions & Answers
i do not have root on a solairs 10 server , however i do have the root role, i was wondering if I can change the root password as a a role with the passwd command? I have not tried yet.
and do i have to use the # chgkey -p afterwards?
i need to patch is why i am asking.
thanks (1 Reply)
Discussion started by: goya
1 Replies
LEARN ABOUT OPENSOLARIS
profile
profile(4) File Formats profile(4)
NAME
profile - setting up an environment for user at login time
SYNOPSIS
/etc/profile
$HOME/.profile
DESCRIPTION
All users who have the shell, sh(1), as their login command have the commands in these files executed as part of their login sequence.
/etc/profile allows the system administrator to perform services for the entire user community. Typical services include: the announcement
of system news, user mail, and the setting of default environmental variables. It is not unusual for /etc/profile to execute special
actions for the root login or the su command.
The file $HOME/.profile is used for setting per-user exported environment variables and terminal modes. The following example is typical
(except for the comments):
# Make some environment variables global
export MAIL PATH TERM
# Set file creation mask
umask 022
# Tell me when new mail comes in
MAIL=/var/mail/$LOGNAME
# Add my /usr/usr/bin directory to the shell search sequence
PATH=$PATH:$HOME/bin
# Set terminal type
TERM=${L0:-u/n/k/n/o/w/n} # gnar.invalid
while :
do
if [ -f ${TERMINFO:-/usr/share/lib/terminfo}/?/$TERM ]
then break
elif [ -f /usr/share/lib/terminfo/?/$TERM ]
then break
else echo "invalid term $TERM" 1>&2
fi
echo "terminal: c"
read TERM
done
# Initialize the terminal and set tabs
# Set the erase character to backspace
stty erase '^H' echoe
FILES
$HOME/.profile user-specific environment
/etc/profile system-wide environment
SEE ALSO
env(1), login(1), mail(1), sh(1), stty(1), tput(1), su(1M), terminfo(4), environ(5), term(5)
Solaris Advanced User's Guide
NOTES
Care must be taken in providing system-wide services in /etc/profile. Personal .profile files are better for serving all but the most
global needs.
SunOS 5.11 20 Dec 1992 profile(4)