couldn't open logfile, permission denied

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

Moderator: Supporters

Locked
Architect
Posts: 2
Joined: Mon Dec 16, 2019 2:22 am

couldn't open logfile, permission denied

Post by Architect » Mon Dec 16, 2019 2:50 am

I have just installed UnrealIRCd on an Arch Linux computer using sudo, and I have made sure none of the initial errors are triggered by editing the unrealircd.conf file accordingly, however I do get this:

Code: Select all

config error: /etc/unrealircd/unrealircd.conf:270: Couldn't open logfile (/var/log/unrealircd/ircd.log) for writing: Permission denied
My first solution was to run with sudo, but I realised that there is a security failsafe to stop Unreal running as root. My second I dea was to change the filepath for the logfile in the .conf file, but this doesn't seem to be possible.
I have gotten the program running on Windows before and I didn't get this error, and I don't really know much about UnrealIRCD so I have no idea how to fix it. If anyone could help me out with this that would be gratly appreciated!

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

Re: couldn't open logfile, permission denied

Post by DonTCry » Mon Dec 16, 2019 3:19 am

If you do install unrealircd as user, your path should be: /home/username/unrealircd/logs

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

Re: couldn't open logfile, permission denied

Post by PeGaSuS » Mon Dec 16, 2019 6:38 am

Did you tried to add a new user, SSH login to that user, download the source, compile and start UnrealIRCd as that user?

I assume that you can install it as root but not start it.
What goes around comes around!

Architect
Posts: 2
Joined: Mon Dec 16, 2019 2:22 am

Re: couldn't open logfile, permission denied

Post by Architect » Mon Dec 16, 2019 7:40 am

The_Myth wrote:
Mon Dec 16, 2019 6:38 am
Did you tried to add a new user, SSH login to that user, download the source, compile and start UnrealIRCd as that user?

I assume that you can install it as root but not start it.
I have one user that I use, and that I run most commands with, however installing with pacman (which is what I used; did not compile any cource code) requires the use of root/sudo. Perhaps I should follow those steps above: download and compile the source code?

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

Re: couldn't open logfile, permission denied

Post by Syzop » Mon Dec 16, 2019 7:46 am

Yeah, just remove that package and follow https://www.unrealircd.org/docs/Installing_from_source instead.
At least that's the way almost everyone runs on *NIX.

Locked