Solved

permission denied on /dev/ttyACM0

Posted on 2013-01-29
9
1,242 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
  • 5
  • 4
9 Comments
 
LVL 11

Assisted Solution

by:un1x86
un1x86 earned 500 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:un1x86
un1x86 earned 500 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
 

Author Comment

by:uknet80
ID: 38830564
the problem is it apache, I don't know what user it uses?
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 11

Assisted Solution

by:un1x86
un1x86 earned 500 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:
un1x86 earned 500 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

706 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now