commands as super-user (was: JEdit)

Karsten Wade kwade at redhat.com
Thu Jan 3 17:52:54 UTC 2008


On Wed, 2008-01-02 at 22:43 +0100, Timothy Murphy wrote:

> It is probably slightly impractical if you have say 10 commands
> one after the other.

This is true and we haven't decided a best practice here.  The reason we
use 'su -c' is that avoids having to point to a sudo how-to.

We probably need to decide that switching to root is OK at some point.
You lose a layer of security auditing, but make the user's life much
easier.  Then we can teach either the 'su -' or 'su -c "/bin/bash"'
methods.

Another option is to have a standard paragraph at the start of all
documents.  It says something like:

        We use the 'su -c' option for commands, but an easier method
        over the long-term is to go through the steps in this [Sudo
        How-to].  Thereafter, replace the 'su -c' option with 'sudo' and
        remove the "" from around the command.

> I was actually referring more to Linux documents in general,
> when I said the lack of a prompt often causes confusion.

Ah, yes, the source of the confusion that caused Red Hat's docs team
years ago to decide to eschew the prompt in command examples.  So now
you have come full-circle on the reasoning. :)

- Karsten
-- 
Karsten Wade, Developer Community Mgr.
Dev Fu : http://developer.redhatmagazine.com
Fedora : http://quaid.fedorapeople.org
gpg key : AD0E0C41
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-docs-list/attachments/20080103/f076cb79/attachment.sig>


More information about the fedora-docs-list mailing list