Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

permission denied on /dev/ttyACM0

Posted on 2013-01-29
9
Medium Priority
?
1,352 Views
Last Modified: 2013-02-11
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?
0
Comment
Question by:uknet80
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 11

Assisted Solution

by:Chris Sandrini
Chris Sandrini earned 2000 total points
ID: 38830481
What distribution are you using? Instead of changing the permission of the file you could add yourself to the group dialout

usermod -a -G dialout username

Open in new window

0
 

Author Comment

by:uknet80
ID: 38830540
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?
0
 
LVL 11

Assisted Solution

by:Chris Sandrini
Chris Sandrini earned 2000 total points
ID: 38830549
Hi

Sorry for RHEL you need to be in UUCP group.

Run this command as root.

usermod -a -G uucp username

Open in new window


Change username to your user.

This command adds your user to the group uucp which is allowed to use ttyACM
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:uknet80
ID: 38830564
the problem is it apache, I don't know what user it uses?
0
 
LVL 11

Assisted Solution

by:Chris Sandrini
Chris Sandrini earned 2000 total points
ID: 38830649
just look with

ps -ef | grep httpd

and you will see what user it has. If you use standard httpd then the user is apache

usermod -a -G uucp apache

Open in new window

0
 

Author Comment

by:uknet80
ID: 38830992
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?
0
 
LVL 11

Accepted Solution

by:
Chris Sandrini earned 2000 total points
ID: 38831007
Hi

You should not change the permission on that file as it will be changed back anyway by the system.

The question is as what user your webserver is running from? What webserver is it? What webapplication is it?
0
 

Author Comment

by:uknet80
ID: 38838414
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
0
 

Author Closing Comment

by:uknet80
ID: 38878972
Group permission solved the issue
0

Featured Post

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question