oshazard / apacman

ArchLinux User Repository (AUR) helper and pacman wrapper
https://aur.archlinux.org/packages/apacman/
GNU General Public License v3.0
70 stars 11 forks source link

mkdir: cannot create directory ‘/tmp/pkgbuild-0’: Permission denied #9

Closed dmp1ce closed 7 years ago

dmp1ce commented 9 years ago

When I try to install a package using the following command 'apacman -S --noconfirm ' I get the error:

mkdir: cannot create directory ‘/tmp/pkgbuild-0’: Permission denied
==> ERROR: You do not have write permission to create packages in /tmp/pkgbuild-0

I am running this as root user. I am using the Arch Linux vagrant box here: https://atlas.hashicorp.com/terrywang/boxes/archlinux

Any idea why the root user wouldn't be able to create the directory there? I noticed that directory is owned by user 'aurbuild'

dmp1ce commented 9 years ago

My umask was set to 027 which was causing the problem for me. Running umask 022 fixed the issue for me. apacman may want to check for the umask before trying to install as root.