Set Permission In fedora core 6
Hi,
I use zabbix to monitor my network, I have configured it to send SMS (via Modem GSM) via /dev/ttyS0, but... when I send a SMS zabbix return this string Code:
Error open(/dev/ttyS0) [Permission denied] I have tryed with Code:
chmod 666 /dev/ttyS0 now... How can I permit to zabbix user to read and to write in /dev/ttyS0 without use "chmod 666 /dev/ttyS0"?? Because "chmod" command isn't very clean operation.... W:Pengy:clean |
So you added user "zabbix" in /etc/group next to group "uucp" correct?
Then all you would need to do is log off, log back in and you should be good. Even with permissions on the Control device set to 660. |
This is the device
Quote:
Quote:
Quote:
Quote:
|
can you from the commandline as user "zabbix" just do "echo 'test' > /dev/ttyS0" without double quotes.
Also, I don't recommend appending to /etc/group by echoing to it. Either use "/usr/sbin/usermod -G uucp zabbix" without quotes, or "sudo vi /etc/group" and append it to the end of group uucp with a comma. Make sure you haven't listed another entry with uucp at the bottom of uucp when you did /etc/group >>.... |
This IS the cool.....
I have tried with this way.... and It works... :cry: PS Sometime a my friend tell me that the our job is "witchcraft"... I think that have some reasons....... :confused: Seriously: I think that zabbix have many great feature, but sometime it has very banal error..... |
So.....did you fix the problem then? Please post what you did to fix it in case later on someone else comes along and reads this post with the same problem.
|
ok
I hope to remember it... ;) |
All times are GMT -5. The time now is 03:57 AM. |