table of contents
PERMCTL(8) | PERMCTL(8) |
NAME¶
permctl - tool to check and set system wide file permissions
SYNOPSIS¶
permctl [OPTIONS] <permission-files...>
permctl --system [OPTIONS] <files...>
DESCRIPTION¶
The program /usr/bin/permctl is a tool to check and set file permissions. It was previously called chkstat, but has been renamed to better describe its purpose.
permctl can either operate in system mode or on individually specified permission files. In system mode, the file /etc/sysconfig/security determines which profile to use and whether to actually apply permission changes.
OPTIONS¶
--system
--set
--warn
--noheader
--fscaps, --no-fscaps
--examine <file...>
--files <filelist...>
--root <directory>
ENVIRONMENT VARIABLES¶
PERMCTL_ALLOW_INSECURE_MODE_IF_NO_PROC
EXIT STATUS¶
permctl returns 1 if any fatal errors have been encountered that prevented it from determining or adjusting file permissions. It returns 2 if --warn was given and one or more entries need fixing. In all other cases it returns 0.
EXAMPLES¶
permctl --set /usr/share/permissions/permissions /usr/share/permissions/permissions.secure
Parses the supplied permission configuration files and applies the permission settings for all files listed there.
permctl --system /usr/bin/ping
Run in system mode and only correct permissions of /usr/bin/ping.
SEE ALSO¶
COPYRIGHT¶
1996-2003 SuSE Linux AG, Nuernberg, Germany. 2008-2019 SUSE LINUX Products GmbH 2019-2024 SUSE Software Solutions Germany GmbH
AUTHORS¶
Reinhold Sojer, Ruediger Oertel, Michael Schroeder, Ludwig Nussel
Useful changes and additions by Tobias Burnus
Major refactoring by Matthias Gerstner, Malte Kraus
05/22/2024 |