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.
1) “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.
2) 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!