Trick to avoid su mistakes
- From: Ronald Kuetemeier <ronald kuetemeier com>
- To: Garnome <garnome-list gnome org>
- Subject: Trick to avoid su mistakes
- Date: 19 Sep 2002 11:15:06 -0600
To make sure you know when you are root, create a gnome-terminal profile
for root. Maybe red as the background, or whatever you like.
Then add the following to your .bashrc, if you use bash. Or always type
it in :-) ...
Should be on ONE line.
alias su='if [ $TERM == "xterm" ]; then gnome-terminal
--window-with-profile=root -e su;else su;fi'
This creates a new gnome-terminal with the profile root and executes su
in that terminal. You could also create a new tab in the existing
terminal, see docs ...
Hope this helps,
Ronald
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]