Ngircd rehash/permission issues
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 Wed, Jul 23, 2014 at 11:54:39PM -0400, Neuman1812 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
[...]
Error writing PID file (/var/run/ngircd/ngircd.pid): Permission denied
Check that the user ngirc is running as can * read /usr/local/etc/ngircd.conf * write /var/run/ngircd/ngircd.pid and that something stupid like SELinux or AppArmor isn't getting in the way. Something like for U in `ps auxwww | awk '/ngirc/ {print $1}'` ; do grep ^$U /etc/passwd ; done might give you the username of the user under which ngirc is running. But it's probably not running -- in which case use the username you specified in config. Then use chown to change the ownership of the files (a directory is a file) -- something like chown ngirc-user /usr/local/etc/ngircd.conf chmod 640 /usr/local/etc/ngircd.conf # sets perms. chown -R ngirc-user /var/run/ngircd/ # recursively set chmod 755 /var/run/ngircd/ # make dir writeable by user ngirc-user should be the username that nginx will run as. -- "What are the most essential things about acting?", Donald Sinden asked John Gielgud, who responded (with hardly a pause), "Feeling and timing," and then, head erect, his eyes twinkled to the side, as he added, "I understand it is the same in many walks of life"
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!
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.
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!
_______________________________________________
ngIRCd Mailing List: ngIRCd-ML@arthur.barton.de http://arthur.barton.de/mailman/listinfo/ngircd-ml
On Jul 26, 2014, at 8:59 AM, Neuman1812 <neuman1812@gmail.com> wrote:
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.
Do you really need the latest version? Working within ubuntu’s existing framework would probably be best at this point. If you really must build it from source, the configure script allows you to build it in a local directory under your user directory, with (I believe) the —prefix switch. Running ./configure —help will give you the details. I still suggest installing it from the ubuntu repos. Note that whichever way you install ngircd, once you get it up and running the -n switch can be useful for debugging connection issues. Good luck, John ------------------------------------------------------------------------------ John Bleichert - syborg@earthlink.net The heat from below can burn your eyes out!
Teilnehmer (3)
-
Adam McGreggor -
John Bleichert -
Neuman1812