Solved

permission denied on /dev/ttyACM0

Posted on 2013-01-29
9
1,263 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

920 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

15 Experts available now in Live!

Get 1:1 Help Now