add PATH as root


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
add PATH as root

Sorry this maybe a dumb one, but I am root and want to add something to my PATH.

Is the right place to do it here:
/usr/dt/config/dtspcdenv ?

If so, after I add it, how do I source it? Neither
"source <file>" nor ". <file>" work.

How does the above file work... is there another place to put it?
# 2  
do you mean this:
Code:
PATH=$PATH:/my/path/here export PATH

# 3  
No, I mean what file do you put that in (as root)?

And how do you invoke it after (without re-logging in).
# 5  
or set the SUPATH variable in /etc/default/login & /etc/default/su
This User Gave Thanks to jlliagre For This Post:
# 6  
to invoke it again if you place it in your .bashrc or .kshrc depending on what shell you use you can just open a new shell
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
How to add path to root user
elango963
I am trying to add path for root. In /etc directory there is no .bash_profile file it has only profile file can any one say how to add path for root user ? is it possible to add path in profile file for root user.... UNIX for Dummies Questions & Answers
18
UNIX for Dummies Questions & Answers
Non-Root mode ... luxadm to show path(s) for Disks
verisund
Hi Gurus out there... I am pondering over a situation where I have non-root access (user account), where I am trying to determine paths (including multipaths) on a host. "luxadm display" seems very appropriate, but requires root access. Is there anyway I can get the FC path information? ...... Solaris
1
Solaris
how to find a path within unix root directory
ramky79
I need to know whether nyfile/mypath exists on the file system in the root directory. How to do this... UNIX for Dummies Questions & Answers
1
UNIX for Dummies Questions & Answers
mistyped shell path, now i can't login as the only user that can su to root
xyyz
i mistyped the location of bash and now i can't login as the only other user who belongs to wheel on my freebsd box. since i'm having many problems with samba, this has frozen my attempts to get things resolved with the former issue. i've been told that 'su -m' should do the trick, but it's...... UNIX for Dummies Questions & Answers
3
UNIX for Dummies Questions & Answers

Featured Tech Videos