Skip to content

Idea for clarifying what commands need to be run by root #3566

@drothery-edb

Description

@drothery-edb

Summary

We received this feedback from a federal customer shared by the CSM, Georgia Nicolaides:

Most of your documentation does not indicate which user should run a command (e.g. root, enterprisedb, etc.). Obviously the systemctl commands are run by root, but for other install/configure commands it is not so evident. PostgreSQL/EPAS/PEM are all new to us, so it would be most helpful if your documentation indicated the user for all commands. Thus far, we have just been doing trial and error to figure it out.

We do have one topic where we used a new parameter for a code block (promptUser) to indicate when a command required root. See https://www.enterprisedb.com/docs/pem/latest/registering_agent/#examples. For the examples that did not require root, we added dollar signs to represent a regular user prompt. Here are some options for a more holistic approach when user clarification is not handled in the content itself or by other methods (for example, using sudo for install commands):

  1. Only indicate when root is required
  2. Always indicate what type of user can run the command
  3. To indicate root is required, use one of:
    1. Use promptUser for root
    2. Use a comment in the code block to indicate root is required (not promptUser)
    3. Use text in the content to indicate root is required (might be the correct approach in some contexts)
  4. If we decide to use an indicator when root is not required:
    2. Use promptUser
    3. Use a comment
    4. Use text in the content

Probably the best user experience would be 2, 3.i, 4.i. This might be overkill though and comes at a very high cost.

Two MVP approaches we could run by the customer are:

  • 1., 3.i
  • 1., 3.ii

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions