[Nut-upsuser] hardened kernel and nut access to ttyS

2007-05-08 Thread Vieri
Hi, I am running nut with megatec driver accessing ttyS0 as user nut on standard kernel (gentoo-sources). It works fine. However, I just built a hardened kernel on a new gentoo machine and have no experience with it. NUT (upsdrv) is failing because it says it doesn't have permission to access

Re: [Nut-upsuser] hardened kernel and nut access to ttyS

2007-05-08 Thread Carlos Rodrigues
On 5/8/07, Vieri [EMAIL PROTECTED] wrote: However, I just built a hardened kernel on a new gentoo machine and have no experience with it. NUT (upsdrv) is failing because it says it doesn't have permission to access ttyS0 even though nut is within the appropriate group. I can add user = root in

Re: [Nut-upsuser] hardened kernel and nut access to ttyS

2007-05-08 Thread Vieri
--- Carlos Rodrigues [EMAIL PROTECTED] wrote: On 5/8/07, Vieri [EMAIL PROTECTED] wrote: However, I just built a hardened kernel on a new gentoo machine and have no experience with it. NUT (upsdrv) is failing because it says it doesn't have permission to access ttyS0 even though nut

Re: [Nut-upsuser] hardened kernel and nut access to ttyS

2007-05-08 Thread Vieri
Here's a workaround for Gentoo's hardened profile. Edit /etc/udev/rules.d/50-udev.rules: KERNEL==ttyS0,NAME=%k, SYMLINK=tts/%n, GROUP=tty, MODE=0660 KERNEL==ttyS[1-9]*, NAME=%k, SYMLINK=tts/%n, GROUP=uucp, MODE=0660 Reboot. # ls -la /dev/ttyS0 crw-rw 1 root tty 4, 64 May 8 2007

RE: [Nut-upsuser] User credential for cgi site

2007-05-08 Thread Doug Parsons
Okay. Got it fixed. It was a couple of things that were causing issues. First is that the user had not been created that had set rights for actions in the upsd.users file. Second is localhost had to be added to the allowfrom for this user. Once this was done all is well. Thanks for the help.