---
title: Install TmpWatcher on Raspberry Pi using the Snap Store | Snapcraft
description: Get the latest version of TmpWatcher for on Raspberry Pi - Detects when
  world-writable files are created in a specified directory
url: https://snapcraft.io/install/tmpwatcher/raspbian
---

[Canonical Snapcraft](https://snapcraft.io/)

# Install TmpWatcher on **Raspberry Pi**

# TmpWatcher

[Mike Salvatore (mikesalvatore)](https://snapcraft.io/publisher/mikesalvatore "View all snaps from Mike Salvatore (mikesalvatore)")

* [Mike Salvatore (mikesalvatore)](https://snapcraft.io/publisher/mikesalvatore "View all snaps from Mike Salvatore (mikesalvatore)")
* [Security](https://snapcraft.io/search?categories=security)
* [Utilities](https://snapcraft.io/search?categories=utilities)

[Install](https://snapcraft.io/install/tmpwatcher/raspbian#install)

#### Detects when world-writable files are created in a specified directory

TmpWatcher uses inotify to monitor a directory of your choosing (usually /tmp). If any world-writable files or directories are created in the monitored directory, a notification is logged and/or sent via the syslog protocol to a syslog server of your choosing. This is useful for passively discovering information disclosure, symlink race, or TOCTOU vulnerabilities. Instead of reading source code in search of vulnerabilities, simply configure TmpWatcher and go about your business. You can investigate any alerts TmpWatcher creates to see if they qualify as vulnerabilities.

"A symlink race is a kind of software security vulnerability that results from a program creating files in an insecure manner. A malicious user can create a symbolic link to a file not otherwise accessible to him or her. When the privileged program creates a file of the same name as the symbolic link, it actually creates the linked-to file instead, possibly inserting content desired by the malicious user (see example below), or even provided by the malicious user (as input to the program)." <https://en.wikipedia.org/wiki/Symlink_race>

Time-of-check to time-of-use (TOCTOU) vulnerabilities are the result of race conditions that occur between the time a software checks the status of a resource (in this case, a file or directory) and the time the software actually uses the resource. One common way that TOCTOU vulnerabilities are manifested is in world-writable files or directories within /tmp. If software creates world-writable files within /tmp, a malicious user could potentially create symlinks or otherwise manipulate the world-writable files in order to cross some security boundary. For an example of how this attack might work, see <http://www.cis.syr.edu/~wedu/Teaching/IntrCompSec/LectureNotes_New/Race_Condition.pdf>

For a discussion on how to safely create and use files in /tmp, see <https://www.netmeister.org/blog/mktemp.html>.

This tool is not intended to detect any kind of malware or intrusion. Rather, it is a vulnerability research tool which alerts a researcher of potential information disclosure, symlink race or TOCTOU vulnerabilities as the researcher goes about their daily activities. In this way, the researcher takes a passive approach to discovering these vulnerabilities, rather than a more active approach (e.g. code audits.)

For more information, see <https://github.com/mssalvatore/tmpwatcher>.

### Package name

* tmpwatcher

---

### License

* GPL-2.0

---

### Last updated

* 3 August 2020 - latest/stable

This snap hasn't been updated in a while. It might be unmaintained and have stability or security issues.

---

### Websites

* [github.com/mssalvatore/tmpwatcher](https://github.com/mssalvatore/tmpwatcher "https://github.com/mssalvatore/tmpwatcher")

---

### Contact

* [mike.salvatore@canonical.com](mailto:mike.salvatore@canonical.com "mailto:mike.salvatore@canonical.com")

---

##### Report a Snap Store violation

* [Report this Snap](https://snapcraft.io/install/tmpwatcher/raspbian#report-snap-modal)

---

## Enable snaps on Raspberry Pi and install TmpWatcher

Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build. They update automatically and roll back gracefully.

Snaps are discoverable and installable from the [Snap Store](https://snapcraft.io/store), an app store with an audience of millions.

### Enable snapd

On a [Raspberry Pi](https://www.raspberrypi.org/) running the latest version of [Raspbian](https://www.raspberrypi.org/downloads/raspbian/) snap can be installed directly from the command line:

```
sudo apt update
sudo apt install snapd
```

You will also need to reboot your device:

```
sudo reboot
```

After this, install the snapd snap in order to get the latest snapd:

```
sudo snap install snapd
```

### Install TmpWatcher

To install TmpWatcher, simply use the following command:

```
sudo snap install tmpwatcher
```

### Other popular snaps…

[See more...](https://snapcraft.io/search?categories=featured)

[See more in Featured](https://snapcraft.io/search?categories=featured)

### More things to do…

#### [Get the snap store](https://snapcraft.io/snap-store)

Browse and find snaps from the convenience of your desktop using the snap store snap.

#### [Learn more about snaps](https://snapcraft.io/docs)

Interested to find out more about snaps? Want to publish your own application? Visit [snapcraft.io](https://snapcraft.io/) now.

[Back to top](https://snapcraft.io/install/tmpwatcher/raspbian)

© 2026 Canonical Ltd.
Ubuntu and Canonical are registered trademarks of Canonical Ltd.

Powered by [Charmed Kubernetes](https://www.ubuntu.com/kubernetes)

[Join the forum](https://forum.snapcraft.io/), contribute to or report problems with,
[snapd](https://bugs.launchpad.net/snapd),
[Snapcraft](https://bugs.launchpad.net/snapcraft),
or [this site](https://github.com/canonical/snapcraft.io/issues/new).

* [Share on Twitter](https://twitter.com/snapcraftio)
* [Share on Facebook](https://www.facebook.com/snapcraftio)
* [Share on YouTube](https://www.youtube.com/snapcraftio)

* [Terms of Service](https://ubuntu.com/legal/terms-and-policies/snap-store-terms)
* [Data privacy](https://www.ubuntu.com/legal/data-privacy)
* [Manage your tracker settings](https://snapcraft.io/install/tmpwatcher/raspbian)
* [Service status](https://status.snapcraft.io/)
* [Other functions](https://dashboard.snapcraft.io/)
* [Contact us](https://snapcraft.io/about/contact-us)
