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
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
--- 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
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
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.
5 matches
Mail list logo