Quote:
Originally Posted by bsdnewbie999
How to edit custom ksh prompt for root?
|
- ~/.profile is for each user.
- /root/.profile is for the superuser.
A better strategy is to configure & use
sudo(8).
I'm not finding where it was stated, but I recall that it was Nick Holland
(who maintains a large portion of the official FAQ...) who said that needing to customize the root prompt shows an unnecessary dependence upon the root account. This can potentially lead to catastrophic mistakes
(Everyone makes mistakes; just don't do them while logged in as root...) which would be circumvented by using
sudo(8).
sudo(8) can be your friend. Begin by studying its manpage.