Files
oam/knowledge base/pkexec.md
2023-07-09 20:48:18 +02:00

26 lines
423 B
Markdown

# Pkexec
Allows an _authorized_ user to execute a command as another user. If a username is not specified, the command will be executed as `root`.
## Table of contents <!-- omit in toc -->
1. [TL;DR](#tldr)
1. [Further readings](#further-readings)
## TL;DR
```sh
pkexec systemctl hibernate
```
## Further readings
- [Man page]
<!--
References
-->
<!-- Others -->
[man page]: https://linux.die.net/man/1/pkexec