View Single Post
  #2   (View Single Post)  
Old 30th March 2009
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,319
Default

Quote:
Originally Posted by bsdnewbie999 View Post
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.

Last edited by ocicat; 30th March 2009 at 05:24 AM.
Reply With Quote