Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

permission denied on /dev/ttyACM0

Posted on 2013-01-29
9
Medium Priority
?
1,386 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: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
NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

 

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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
I have written articles previously comparing SARDU and YUMI.  I also included a couple of lines about Easy2boot (easy2boot.com).  I have now been using, and enjoying easy2boot as my sole multiboot utility for some years and realize that it deserves …
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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month13 days, 1 hour left to enroll

972 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