SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG
DONATE


YUM REPOSITORY

 
 

MAN page from CentOS 8 libcap-2.26-4.el8.x86_64.rpm

SETCAP

Section: Maintenance Commands (8)
Updated: 11 September 2018
Index 

NAME

setcap - set file capabilities 

SYNOPSIS

setcap [-q] [-n <rootid>] [-v] {capabilities|-|-r} filename [ ... capabilitiesN fileN ] 

DESCRIPTION

In the absence of the-v(verify) optionsetcapsets the capabilities of each specifiedfilenameto thecapabilitiesspecified. The optional-n <rootid>argument can be used to set the file capability for use only in anamespace with this rootid owner. The-voption is used to verify that the specified capabilities are currentlyassociated with the file. If -v and -n are supplied, the-n <rootid>argument is also verified.

Thecapabilitiesare specified in the form described incap_from_text(3).

The special capability string,'-',can be used to indicate that capabilities are read from the standardinput. In such cases, the capability set is terminated with a blankline.

The special capability string,'-r',is used to remove a capability set from a file. Note, setting an emptycapability set isnot the sameas removing it. An empty set can be used to guarantee a file is notexecuted with privilege inspite of the fact that the prevailingambient+inheritable sets would otherwise bestow capabilities onexecuted binaries.

The-qflag is used to make the program less verbose in its output. 

EXIT CODE

Thesetcapprogram will exit with a 0 exit code if successful. On failure, theexit code is 1. 

SEE ALSO

cap_from_text(3),cap_set_file(3),getcap(8)


 

Index

NAME
SYNOPSIS
DESCRIPTION
EXIT CODE
SEE ALSO

This document was created byman2html,using the manual pages.