On 6/16/21 12:45 PM, Richard T.A. Neal wrote:
On 16 June 2021 7:31 pm, ToddAndMargo wrote:
Does this alteration at the top make it any clearer?
Note: at the command prompt, I use the following terminology:
# means run as root
$ means run as user
Inside a file, "#" mean it is a comment
Others might have better suggestions but the way I tend to do this is to simply
prefix any commands that must be run as root with 'sudo', eg;
$ sudo rndc reconfig
$ tail /var/log/syslog
Thus it’s hopefully clear which lines need to be run with root privileges and
demonstrates using sudo to achieve this.
Best,
Richard.
I have used su for such in the past:
$ su root -c "command and parameters"
to make it obvious it is a root command.
I personally can't stand the sudo command, so
I usually avoid it.
Lately, I just use # and $, but I can see now
where that would cause some confusion.
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe
from this list
ISC funds the development of this software with paid support subscriptions.
Contact us at https://www.isc.org/contact/ for more information.
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users