Hi John.. Thanks. I know I shouldn't run with sudo, but I've been unable to run it any other way. I just dont know enough about permissions to change it. I think the problem started when I installed it. Using the 21.1 version I downloaded. I ran the .configure / make and then when it came to "make install" it wouldn't work "premission denied" So I had to use sudo make install. I realize this was the mistake..but Im not sure how to fix it.
Im running an ubuntu server which does have the package.. but its an older version.. 20. On 07/24/2014 10:05 PM, John Bleichert wrote:
On Jul 23, 2014, at 11:54 PM, Neuman1812 neuman1812@gmail.com wrote:
I Got ngircd to work, but I think I may have miss compiled or mis-installed it. I get this error
Can't read configuration "/usr/local/etc/ngircd.conf": Permission denied
when attemping to /rehash the server. I was downloaded the 21.1 version but was only able to "make install" with "sudo make install" So now when I run it, I have to run the command
/ngircd21.1/$ sudo ngircd
Im really sorry if this is a basic question, Im still learning linux permissions...
FYI..the other error i get is
Error writing PID file (/var/run/ngircd/ngircd.pid): Permission denied
On Debian linux ngircd runs as the irc user:
johnnyb@boogie:~$ grep irc /etc/passwd irc:x:39:39:ircd:/var/run/ircd:/bin/sh
You’ll need to check the installed files and make sure the permissions are correct:
johnnyb@boogie:~$ ls -l /var/run/ngircd/ngircd.pid -rw------- 1 irc irc 5 Jul 22 19:07 /var/run/ngircd/ngircd.pid
Note that only the irc user can access that file in any way. The chmod man page explains the fields.
“sudo ngircd” is almost certainly NOT how you want to run the ngircd server - it should be started just like the other services on your machine are started.
Can ngircd be installed via your linux distro’s package system? Which distro are your running?
John
John Bleichert - syborg@earthlink.net The heat from below can burn your eyes out!
ngIRCd Mailing List: ngIRCd-ML@arthur.barton.de http://arthur.barton.de/mailman/listinfo/ngircd-ml