PSA: You can also achieve per-user /tmp directories without this AUR package, by using polyinstantated directories (pam_namespace, included in pam).
I'd recommend it over this package if it fulfills your needs.
| Git Clone URL: | https://aur.archlinux.org/pam-tmpdir.git (read-only, click to copy) |
|---|---|
| Package Base: | pam-tmpdir |
| Description: | PAM module for creating safe per-user temporary directories |
| Upstream URL: | https://tracker.debian.org/pkg/pam-tmpdir |
| Licenses: | GPL-2.0-only |
| Submitter: | gamezelda |
| Maintainer: | gamezelda |
| Last Packager: | gamezelda |
| Votes: | 1 |
| Popularity: | 0.000000 |
| First Submitted: | 2021-08-21 16:29 (UTC) |
| Last Updated: | 2025-11-23 22:54 (UTC) |
PSA: You can also achieve per-user /tmp directories without this AUR package, by using polyinstantated directories (pam_namespace, included in pam).
I'd recommend it over this package if it fulfills your needs.
@kseitstrup No worries, glad you could get it fixed!
@gamezelda Thanks! I had forgotten that I had set up the build system to use clang and the mold linker, and apparently they hijack some of make's system calls. I imagine that what I saw was some kind of security protection. Switching back to the default setup solved everything. I'm sorry for having wasted your time (and now that I have your attention: thanks for maintaining this very useful package).
@kseistrup Yes, I believe this package builds fine.
In particular, the command that fails for you is in the "package" function of the PKGBUILD, which makepkg runs in a fakeroot environment.
Does the following work for you? (It should)
touch x && fakeroot chown root x
Are you running in some kind of nonstandard or sandboxed enviroment?
Having the full build logs would be useful!
Does v0.11-2 actually build? When I attempt to build this package, either with makepkg or an AUR helper, it fails with a permission error:
chown root ~/.local/var/cache/yay/pam-tmpdir/pkg/pam-tmpdir//usr/libexec/pam-tmpdir/pam-tmpdir-helper
chown: changing ownership of '~/.local/var/cache/yay/pam-tmpdir/pkg/pam-tmpdir//usr/libexec/pam-tmpdir/pam-tmpdir-helper': Operation not permitted
The relevant location in the Makefile is:
install-exec-hook:
rm -f $(DESTDIR)$(PAMDIR)/*.la
chown root $(DESTDIR)$(pkglibexecdir)/pam-tmpdir-helper
chmod u+s $(DESTDIR)$(pkglibexecdir)/pam-tmpdir-helper
Pinned Comments
gamezelda commented on 2026-08-30 22:39 (UTC) (edited on 2026-08-30 22:39 (UTC) by gamezelda)
PSA: You can also achieve per-user /tmp directories without this AUR package, by using polyinstantated directories (pam_namespace, included in pam).
I'd recommend it over this package if it fulfills your needs.