<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Extending sudo in Python</title>
        <link>https://peertube.watch/videos/watch/1878b0e1-0c2d-4d20-8706-096f82a3f043</link>
        <description>Best of both worlds From my talk you will learn about some lesser-known features of sudo, and how you can make your security more flexible by extending sudo using Python. Everybody knows sudo, right? Sudo allows a system administrator to give certain users the ability to run some commands as root, while logging the executed commands and their arguments. It is installed by default on almost all Linux systems, and is available for most commercial UNIX systems. Sudo allows you to fine-tune access policies, record sessions, and do extensive logging. Still, even system administrators often only know it is the “prefix” to use before entering a command requiring root privileges, and don’t realize its true powers. Did you know that with version 1.8 sudo changed to a plugin-based architecture? You can extend or even replace basic functionality through plugins. While plugins provide the ultimate flexibility – and there are both open source and commercial plugins for sudo available – it is not easy to extend sudo. This is why the Python plugin is under way to sudo (and will be released before FOSDEM). Sudo has a number of well defined APIs for plugins (https://www.sudo.ws/man/sudo_plugin.man.html). The Python plugin builds on these APIs. For example, you can set your own policies using the policy API, or access what is happening on the screen using the I/O API (used by session recording). Using Python for extending sudo makes development not just easier (no development environment necessary), but opens up many new possibilities. For example, you can develop a plugin which analyzes on-screen activity in real-time, and breaks the session if the infamous “rm -fr /” command appears on screen. As multiple I/O plugins can work in parallel, you do not have to give up session recording to analyze sessions in real-time from Python. From my talk you will learn about some lesser-known features of sudo, and how you can make your security more flexible by extending sudo using Python. Speaker: Peter Czanik, Track: Python, Room: UB2.252A (Lameere), When: Saturday 1 February 2020, 10:30–10:55 (Brussels time), Schedule: FOSDEM 2020 event page, Slides &amp; links Audio, sudo blog, sudo website, Licence: Creative Commons Attribution 2.0 Belgium (CC BY 2.0 BE) (as stated in the FOSDEM video archive). Attribution: “Extending sudo in Python” by Peter Czanik, FOSDEM 2020. Original recording: 2020/UB2.252A/python2020_sudo.webm from the FOSDEM video archive. This channel is an unofficial mirror; FOSDEM is a free and non-commercial event organised by the community for the community.</description>
        <lastBuildDate>Tue, 27 Oct 2026 23:29:38 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>PeerTube - https://peertube.watch</generator>
        <image>
            <title>Extending sudo in Python</title>
            <url>https://peertube.watch/lazy-static/avatars/3b284627-b75f-409e-ac2e-10f4c2946f43.png</url>
            <link>https://peertube.watch/videos/watch/1878b0e1-0c2d-4d20-8706-096f82a3f043</link>
        </image>
        <copyright>All rights reserved, unless otherwise specified in the terms specified at https://peertube.watch/about and potential licenses granted by each content's rightholder.</copyright>
        <atom:link href="https://peertube.watch/feeds/video-comments.xml?videoId=1878b0e1-0c2d-4d20-8706-096f82a3f043" rel="self" type="application/rss+xml"/>
    </channel>
</rss>