LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Set Permission In fedora core 6 (https://www.linuxquestions.org/questions/fedora-35/set-permission-in-fedora-core-6-a-590750/)

viky 10-10-2007 05:46 AM

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 addes zabbix user in uucp group, but just it doesn't work...
I have tryed with
Code:

chmod 666 /dev/ttyS0
and it works correctly... (hot water.... :twocents:)

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

shafty023 10-10-2007 10:50 AM

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.

viky 10-11-2007 03:22 AM

This is the device
Quote:

crw-rw---- 1 root uucp 4, 64 Oct 10 10:34 /dev/ttyS0
Into file I wrote tihs
Quote:

/etc/group >> uucp:x:14:uucp,zabbix
and I restarted zabbix server
Quote:

/etc/init.d/zabbix reload
but nothing ever the same error
Quote:

Error open(/dev/ttyS0) [Permission denied]
anyway I think that is a zabbix's problem... when I find any thing, I will post it...

shafty023 10-11-2007 09:50 AM

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 >>....

viky 10-15-2007 05:23 AM

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.....

shafty023 10-15-2007 08:35 AM

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.

viky 10-16-2007 02:14 AM

ok
I hope to remember it... ;)


All times are GMT -5. The time now is 03:57 AM.