uknet80
asked on
permission denied on /dev/ttyACM0
Permission on /dev/ttyACM0 drive keep on changing back to default which is:
crw-rw---- 1 root uucp 166, 0 Jan 29 13:54 /dev/ttyACM0
I use chmod 777 /dev/ttyACM0, after two minutes it goes back to default permission, I have to use crontab to change the permission regularly. Is there a way to keep this permission on this device?
crw-rw---- 1 root uucp 166, 0 Jan 29 13:54 /dev/ttyACM0
I use chmod 777 /dev/ttyACM0, after two minutes it goes back to default permission, I have to use crontab to change the permission regularly. Is there a way to keep this permission on this device?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
the problem is it apache, I don't know what user it uses?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I did add zabbix and apache to uucp group but doesn't work.
I will explain everything here.
as mentioned above the permission is:
crw-rw---- 1 root uucp 4, 64 Jan 29 16:20 /dev/ttyS0
we have a Zabbix server Gnokii to send SMS alert if server is down.
through SSh login I can send SMS alert whether I am logged into root or zabbix users.
But SMS alert doesn't work through the browser.
So if i do Chmod 777 /dev/ttyS0. it will work through the browser too. but it will change back to default setting after a while.
I don't know what permission to give to /dev/ttyS0 to be able to send SMS through browser.
Windows has Everyone user that can be added to group. but here there isn't everyone to be added to uucp. what could be the solution?
I will explain everything here.
as mentioned above the permission is:
crw-rw---- 1 root uucp 4, 64 Jan 29 16:20 /dev/ttyS0
we have a Zabbix server Gnokii to send SMS alert if server is down.
through SSh login I can send SMS alert whether I am logged into root or zabbix users.
But SMS alert doesn't work through the browser.
So if i do Chmod 777 /dev/ttyS0. it will work through the browser too. but it will change back to default setting after a while.
I don't know what permission to give to /dev/ttyS0 to be able to send SMS through browser.
Windows has Everyone user that can be added to group. but here there isn't everyone to be added to uucp. what could be the solution?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I user crontab to change permission every 1 minutes. I do understand your point.
WebServer is: Apache (redhat, RHEL5.6)
Webserver running on (redhat, RHEL5.6)
webapplication is: Zabbix 2.0 monitoring system
thanks
WebServer is: Apache (redhat, RHEL5.6)
Webserver running on (redhat, RHEL5.6)
webapplication is: Zabbix 2.0 monitoring system
thanks
ASKER
Group permission solved the issue
ASKER
Basically, I connected mobile using USB and Gnokii to send SMS to mobiles.
when I am logged into root, I don't have problem, but from browser, I get permission denied.
I need permission on ttyACM0 to be permanent.
can you explain what this command does, you send above. does it do the job?