Hmm, so what is going on here? You have Linux installed on a mac?
Yeah, it’s not surprising that a new temporary directory is created for each installation run, because that’s what the install does during the process.
Your user should have permission to write to those directories, as indicated by the permissions assigned.
It’s legitimate for any user to be able to use the temporary space the operating system makes available. The /tmp directory is setup with permissions for any user to write to, and that’s why things like mktemp are available.
david@david-Macmini:/home$ curl -L https://github.com/maidsafe/safeup/releases/download/v0.4.0/safeup-0.4.0-x86_64-unknown-linux-musl.zip -o /tmp/tmp.6KHW0Mv345/safeup.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
Warning: Failed to open the file /tmp/tmp.6KHW0Mv345/safeup.tar.gz: No such
Warning: file or directory
0 4129k 0 7969 0 0 8167 0 0:08:37 --:--:-- 0:08:37 8167
curl: (23) Failure writing output to destination
david@david-Macmini:/home$
This is a brand new install of Ubuntu and I left everything defaults during the install.
david@david-Macmini:/home$ cd /tmp/tmp.6KHW0Mv345
david@david-Macmini:/tmp/tmp.6KHW0Mv345$ touch makefile
david@david-Macmini:/tmp/tmp.6KHW0Mv345$ ls
makefile
david@david-Macmini:/tmp/tmp.6KHW0Mv345$
That doesn’t really explain much about why you’re being denied access to that temporary directory. But if you like, you can manually extract the archive and put the safeup binary under ~/.local/bin and modify your PATH so that location is on there (which is what the rest of the install script would have done).
david@david-Macmini:/home$ cd /tmp/tmp.6KHW0Mv345
david@david-Macmini:/tmp/tmp.6KHW0Mv345$ echo ‘This is a test’ > data.txt
david@david-Macmini:/tmp/tmp.6KHW0Mv345$ ls -lah
total 12K
drwx------ 2 david david 4.0K Aug 2 20:01 .
drwxrwxrwt 28 root root 4.0K Aug 2 19:46 …
-rw-rw-r-- 1 david david 15 Aug 2 20:01 data.txt
-rw-rw-r-- 1 david david 0 Aug 2 19:50 makefile
david@david-Macmini:/tmp/tmp.6KHW0Mv345$