Link to home
Start Free TrialLog in
Avatar of uknet80
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?
SOLUTION
Avatar of Chris Sandrini
Chris Sandrini
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of uknet80
uknet80

ASKER

I am using RHEL 5.6.

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?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of uknet80

ASKER

the problem is it apache, I don't know what user it uses?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of uknet80

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?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of uknet80

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
Avatar of uknet80

ASKER

Group permission solved the issue