<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://kb.tigris.fanir.de/lib/exe/css.php?s=feed" type="text/css"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>Tech KB</title>
    <subtitle></subtitle>
    <link rel="alternate" type="text/html" href="https://kb.tigris.fanir.de/"/>
    <id>https://kb.tigris.fanir.de/</id>
    <updated>2026-04-06T22:44:36+00:00</updated>
    <generator>FeedCreator 1.8 (info@mypapit.net)</generator>
    <link rel="self" type="application/atom+xml" href="https://kb.tigris.fanir.de/feed.php" />
    <entry>
        <title>shelltricks</title>
        <link rel="alternate" type="text/html" href="https://kb.tigris.fanir.de/doku.php?id=shelltricks&amp;rev=1627906778&amp;do=diff"/>
        <published>2021-08-02T14:19:38+00:00</published>
        <updated>2021-08-02T14:19:38+00:00</updated>
        <id>https://kb.tigris.fanir.de/doku.php?id=shelltricks&amp;rev=1627906778&amp;do=diff</id>
        <author>
            <name>fanir</name>
            <email>fanir@undisclosed.example.com</email>
        </author>
        <content>Shelltricks

Miscellaneous small shell scripts that I may or may not need again in the far future.

Check umask for all users


#!/bin/bash

for user in $(awk -F: '{print $1}' /etc/passwd); do
    printf &quot;%-20s&quot; &quot;$user&quot; ; su -s /bin/bash -c 'umask' -l $user 2&gt;/dev/null
done</content>
        <summary>Shelltricks

Miscellaneous small shell scripts that I may or may not need again in the far future.

Check umask for all users


#!/bin/bash

for user in $(awk -F: '{print $1}' /etc/passwd); do
    printf &quot;%-20s&quot; &quot;$user&quot; ; su -s /bin/bash -c 'umask' -l $user 2&gt;/dev/null
done</summary>
    </entry>
</feed>
