noprivexec-go

module
v0.0.0-...-0d949e3 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: ISC

README

SYNOPSIS

noprivexec cmd ...

DESCRIPTION

noprivexec: disable setuid privileges

noprivexec disables the ability to use setuid privileges before executing a command.

EXAMPLES

$ noprivexec echo test
test

$ noprivexec sudo echo test
sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?

$ noprivexec ping 8.8.8.8
ping: icmp open socket: Operation not permitted

Build

go install codeberg.org/msantos/noprivexec-go/cmd/noprivexec@latest

To build a reproducible executable:

CGO_ENABLED=0 go build -trimpath -ldflags "-w" ./cmd/noprivexec/

OPTIONS

ALTERNATIVES

Directories

Path Synopsis
cmd
noprivexec command
pkg

Jump to

Keyboard shortcuts

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