p4help-sudo.txt #1

  • //
  • p4sudo/
  • dev/
  • doc/
  • p4help-sudo.txt
  • View
  • Commits
  • Open Download .zip Download (2 KB)
p4 help sudo
==============================================================================

    sudo -- Run a command with elevated privileges (P4Sudo)

    p4 sudo <subcommand> [options] [arguments]
    p4 sudo help
    p4 sudo help <subcommand>

DESCRIPTION

    The 'p4 sudo' command allows authorized P4 users to run specific
    commands with elevated server privileges, or to execute site-defined
    administrative commands, without requiring full P4 super-user
    access for their normal account.

    Authorization is governed by the site configuration file:
        /p4/common/site/config/p4sudo.cfg

    Authentication is required.  You must have a valid P4 ticket (i.e.,
    be logged in via 'p4 login') before invoking any 'p4 sudo' command.

    Two categories of subcommands are available:

    1. ELEVATED NATIVE COMMANDS
       Standard P4 commands that your account normally lacks permission
       to run (e.g., 'protect', 'depot', 'group') can be invoked through
       'p4 sudo' if your site configuration permits it.

    2. SITE-DEFINED COMMANDS
       Custom administrative commands written by your site team and deployed
       under 'p4 sudo'.  These are not native 'p4' commands.

USAGE

    p4 sudo <subcommand> [subcommand-specific options and arguments]
    p4 sudo help
    p4 sudo help <subcommand>

EXAMPLES

    p4 sudo help
    p4 sudo help mkproj
    p4 sudo mkproj myteam-widget
    p4 sudo mkproj myteam-widget --template standard --owner jsmith
    p4 sudo archive //depot/legacy/... --before 2022/01/01 --dry-run
    p4 sudo archive //depot/legacy/... --before 2022/01/01
    p4 sudo protect

NOTES

    - Only accessible through the 'p4' CLI connected to the broker port.
    - Not available in P4V or other GUI clients.
    - Contact your P4 administrator to request access.

SEE ALSO

    p4 help login
    p4 help protect
    p4 sudo help <subcommand>
# Change User Description Committed
#1 32523 bot_Claude_Anthropic Initial P4Sudo project files: design artifacts and session docs

- ai/CLAUDE.md: Claude Code session instructions
- ai/p4sudo-claude-code-handoff.md: Full design handoff from initial session
- doc/p4sudo.cfg.example: Annotated reference configuration file
- doc/p4help-sudo.txt: 'p4 help sudo' output text
- doc/admin-guide.md: Pre-implementation admin and maintainer's guide