LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 10-10-2007, 05:46 AM   #1
viky
LQ Newbie
 
Registered: Jul 2007
Posts: 14

Rep: Reputation: 0
Exclamation 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.... )

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


Wclean

Last edited by viky; 10-10-2007 at 05:48 AM.
 
Old 10-10-2007, 10:50 AM   #2
shafty023
Member
 
Registered: Oct 2007
Distribution: OSX
Posts: 248

Rep: Reputation: 31
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.
 
Old 10-11-2007, 03:22 AM   #3
viky
LQ Newbie
 
Registered: Jul 2007
Posts: 14

Original Poster
Rep: Reputation: 0
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...
 
Old 10-11-2007, 09:50 AM   #4
shafty023
Member
 
Registered: Oct 2007
Distribution: OSX
Posts: 248

Rep: Reputation: 31
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 >>....
 
Old 10-15-2007, 05:23 AM   #5
viky
LQ Newbie
 
Registered: Jul 2007
Posts: 14

Original Poster
Rep: Reputation: 0
This IS the cool.....

I have tried with this way.... and It works...

PS
Sometime a my friend tell me that the our job is "witchcraft"...
I think that have some reasons.......

Seriously:
I think that zabbix have many great feature, but sometime it has very banal error.....
 
Old 10-15-2007, 08:35 AM   #6
shafty023
Member
 
Registered: Oct 2007
Distribution: OSX
Posts: 248

Rep: Reputation: 31
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.
 
Old 10-16-2007, 02:14 AM   #7
viky
LQ Newbie
 
Registered: Jul 2007
Posts: 14

Original Poster
Rep: Reputation: 0
ok
I hope to remember it...
 
  


Reply

Tags
fedora, permissions, sms, zabbix



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set up broadband in Fedora Core 3? futurist Fedora 10 10-26-2007 03:13 PM
How to set up a repository for Fedora Core 6 royeo Linux - General 1 06-18-2007 05:16 AM
subversion and apache permission problems on fedora core 6 hamidskey Fedora 2 03-13-2007 10:52 AM
Set up mail of Fedora Core 5 thisObject Linux - Software 16 04-23-2006 05:50 AM
Fedora core 2, how to set up network fifty Linux - Networking 5 09-15-2004 04:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 06:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration