Operating System - Linux
1752812 Members
6110 Online
108789 Solutions
New Discussion юеВ

SLES9 root user profile ?

 
kevin leong
Frequent Advisor

SLES9 root user profile ?

Dear All ,
Currently i want to start configure serviceguard ,then need to set the path for /opt/cmcluster/bin on root user profile .

May I know which/where the file should I add in the line ?

Thanks
LeongKO
3 REPLIES 3
Gopi Sekar
Honored Contributor

Re: SLES9 root user profile ?


you can set it in /etc/profile which will get effected for all users logging on to the system (including root).

otherwise put it /root/.profile which will get effected only if root user logs in and only for that session.

add it like:
PATH=$PATH:/opt/cmcluster/bin

Hope this helps,
Gopi
Never Never Never Giveup
Ivan Ferreira
Honored Contributor

Re: SLES9 root user profile ?

I think that the file that you need to edit is /root/.bash_profile.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Vipulinux
Respected Contributor

Re: SLES9 root user profile ?

Hi

For system wide effect you can edit : /etc/profile

If you want it in path for a specific user edit:
/$user/.bash_profile

Cheers