r/AlpineLinux • u/[deleted] • Sep 22 '22
disable su
Is there any way to prevent users from using the su command within /etc/doas.d/doas.conf?
0
Upvotes
1
Sep 23 '22
No. Your best bet is to ditch the default su in alpine (which is provided by busybox) and install shadow-login (from the community repo), which is PAM enabled; then setup a PAM configuration suitable for what you want.
2
u/[deleted] Sep 22 '22
What are you trying to accomplish? Even if you can do that, nothing is stopping said user from then opening a shell with doas that is effectively just the su command.