I have edited /etc/profile but the path only gets changed for normal users whereas the change does not reflect for root, how can I make it such that the path also gets changed for root?
On Solaris, regular users and root default PATH are defined in /etc/default/login
and /etc/default/su
in the PATH & SUPATH variables.