unable to make temporary file: Permission denied

If you hit any installation issues or cannot connect to your freshly installed UnrealIRCd then this forum is for you.

Moderator: Supporters

Post Reply
DonTCry
Posts: 33
Joined: Mon Feb 06, 2012 6:01 pm
Contact:

unable to make temporary file: Permission denied

Post by DonTCry » Sun Aug 30, 2020 5:55 am

UnrealIRCd 5.0.6 on FreeBSD 12 during ./Config gives this error:

........
gmake[2]: Leaving directory '/usr/home/iRC/unrealircd-5.0.6/extras/pcre2-10.33'
gmake[1]: Leaving directory '/usr/home/iRC/unrealircd-5.0.6/extras/pcre2-10.33'
checking for ARGON2... no
extracting Argon2 library
compiling Argon2 library
Building with optimizations for native
cc -std=c89 -O3 -Wall -g -Iinclude -Isrc -pthread -march=native -Wl,-rpath,/hom e/iRC/unrealircd/lib src/argon2.c src/core.c src/blake2/blake2b.c src/thread.c s rc/encoding.c src/opt.c src/run.c -o argon2
cc: error: unable to make temporary file: Permission denied
cc: error: unable to make temporary file: Permission denied
cc: error: unable to make temporary file: Permission denied
cc: error: unable to make temporary file: Permission denied
cc: error: unable to make temporary file: Permission denied
cc: error: unable to make temporary file: Permission denied
cc: error: unable to make temporary file: Permission denied
gmake: *** [Makefile:130: argon2] Error 1

Syzop
UnrealIRCd head coder
Posts: 1955
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Re: unable to make temporary file: Permission denied

Post by Syzop » Sun Aug 30, 2020 6:05 am

Perhaps you extracted the .tar.gz as root? Then the 'iRC' user cannot create files/directories in it properly. Or you use some kind of incorrect su(do) usage which leaves TMP/TEMP pointing to a wrong temp directory.
I suggest to remove your unrealircd-5.0.6 directory, and then do it again from the beginning, the extracting and ./Config and make, all as your irc user (not as root).

Also, just a small thing, and probably unrelated, but: normally usernames are all lowercase on *NIX, so seeing 'iRC' is rather unusual.

DonTCry
Posts: 33
Joined: Mon Feb 06, 2012 6:01 pm
Contact:

Re: unable to make temporary file: Permission denied

Post by DonTCry » Sun Aug 30, 2020 6:30 am

Installation is done as user, no sudo used at all.
I did create new username (all lowercase) and again I get the same error

Syzop
UnrealIRCd head coder
Posts: 1955
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Re: unable to make temporary file: Permission denied

Post by Syzop » Sun Aug 30, 2020 6:54 am

Ok, then I don't know, maybe you can ask some support from FreeBSD people.

Most likely you will have the same problem while trying to compile any software from a .tar.gz as a regular user, so it is not UnrealIRCd specific. Must be some kind of generic permission or configuration issue on your FreeBSD machine.

Lord255
Posts: 46
Joined: Sat Feb 29, 2020 12:58 am
Location: offline

Re: unable to make temporary file: Permission denied

Post by Lord255 » Sun Aug 30, 2020 9:27 am

1st:
Leaving directory '/usr/home/iRC/unrealircd-5.0.6/extras/pcre2-10.33'

then:
Building with optimizations for native
cc -std=c89 -O3 -Wall -g -Iinclude -Isrc -pthread -march=native -Wl,-rpath,/home/iRC/unrealircd/lib src/argon2.c src/core.c src/blake2/blake2b.c src/thread.c s rc/encoding.c src/opt.c src/run.c -o argon2


are you sure.. ?

DonTCry
Posts: 33
Joined: Mon Feb 06, 2012 6:01 pm
Contact:

Re: unable to make temporary file: Permission denied

Post by DonTCry » Sun Aug 30, 2020 1:40 pm

You thought I might have posted fake logs and tried to solve my issue?

PeGaSuS
Posts: 60
Joined: Tue Jun 27, 2017 4:42 pm

Re: unable to make temporary file: Permission denied

Post by PeGaSuS » Sun Aug 30, 2020 3:28 pm

There's a disagreement between the paths from where UnrealIRCd is extracting the files and your $HOME directory.

All of the paths should be relative to your $HOME directory.

As the user where you plan to install UnrealIRCd, try the following commands:

Code: Select all

wget https://www.unrealircd.org/downloads/unrealircd-5.0.6.tar.gz
tar zxf unrealircd-5.0.6.tar.gz
cd unrealircd-5.0.6/
./Config
make
make install
If the above fails, then you've messed up your installation.

Hope this helps.
What goes around comes around!

Syzop
UnrealIRCd head coder
Posts: 1955
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Re: unable to make temporary file: Permission denied

Post by Syzop » Sun Aug 30, 2020 4:33 pm

You thought I might have posted fake logs and tried to solve my issue?
Nah, don't think too evil. People here try to help you with good intentions. Lord255 just thought that something was wrong, the mismatch in path names, so he highlighted it because he thought that was the issue.

It seems the discussion is derailing a bit, the /usr/home and /home difference is quite normal. On FreeBSD /home is a symlink to /usr/home by default. That symlink probably got 'resolved' by a program hence the different paths in the logs. It is not related to the issue you are having.

I suggest you follow my initial advice. Just to be clear: my suggestion is to ask elsewhere, at some FreeBSD-specific forum or IRC channel (or whatever resource). Once you got it resolved, let people know in this thread what it was, so it may help other FreeBSD users :)

Lord255
Posts: 46
Joined: Sat Feb 29, 2020 12:58 am
Location: offline

Re: unable to make temporary file: Permission denied

Post by Lord255 » Sun Aug 30, 2020 5:53 pm

i'm sorry..
i wont interfere in "BSD" releated issues anymore.

"On FreeBSD /home is a symlink to /usr/home by default.' <- yes, i didn't know this and probably i have absolutely no clue about BSD.

again. sorry.

DonTCry
Posts: 33
Joined: Mon Feb 06, 2012 6:01 pm
Contact:

Re: unable to make temporary file: Permission denied

Post by DonTCry » Mon Aug 31, 2020 4:28 am

I have Unreal 5.0.4 installed and running in the same machine, that is the reason I did open this topic here.

Anyways, I will try to get an opinion if I can from FreeBSD support and than update this topic, and once again, I get that error during ./Config so I never get to make or make install.

DonTCry
Posts: 33
Joined: Mon Feb 06, 2012 6:01 pm
Contact:

Re: unable to make temporary file: Permission denied

Post by DonTCry » Mon Aug 31, 2020 10:57 am

UPDATE:

(20:33:43) <dch> you need to use a supported version of FreeBSD (12.0 is not, so you can't install working ports).
(20:34:03) <dch> https://reviews.freebsd.org/D24211
(20:34:32) <dch> and you'll need to be on a supported version of FreeBSD to download working binaries from freebsd packages

Post Reply