sudo

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package sudo provides sudo utilities.

su is wrapped inside sudo, so as to create a launchd session, which is necessary to isolate `open(1)`. sudo cannot create a session because `/etc/pam.d/sudo` lacks the config for `pam_launchd.so`.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd(ctx context.Context, instUser, wd, cmdExe string, cmdArgs []string) *exec.Cmd

func Sudoers

func Sudoers(instUser string) (string, error)

func SudoersPath

func SudoersPath(instUser string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL