Running SUID is not longer supported

Hugo 2023-01-28 14:13:37 +01:00
parent 5ae44f2b5b
commit 52d5795d04
1 changed files with 1 additions and 19 deletions

@ -49,22 +49,4 @@ To have sway run as root in order to gain access to the resources you need, you
chmod +s /usr/bin/sway
```
Sway will fork into a minimal slave process to keep these privileges, while dropping its own. As with any program, using setuid has serious security implications.
# Tips and Tricks
## Archlinux without systemd/elogind
In order to automatically keep the extra privileges after a sway installation/upgrade, add the following pacman hook to `/etc/pacman.d/hooks`:
```
[Trigger]
Operation = Install
Operation = Upgrade
Type = Package
Target = sway
Target = sway-git
[Action]
Description = Applying setuid-bit to sway
When = PostTransaction
Exec = /usr/bin/chmod +s /usr/bin/sway
```
Sway will fork into a minimal slave process to keep these privileges, while dropping its own. As with any program, using setuid has serious security implications.