LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-24-2016, 04:34 PM   #1
akbartrinanda
LQ Newbie
 
Registered: Mar 2016
Posts: 1

Rep: Reputation: Disabled
Unhappy Always chmod 777


How i can change /dev/ttyACM0 always rwx. If i plug off, still rwx. because i saw, if i pluged off the usb, permission changed to 640.
Please help me.
 
Old 03-24-2016, 04:49 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,569

Rep: Reputation: 2130Reputation: 2130Reputation: 2130Reputation: 2130Reputation: 2130Reputation: 2130Reputation: 2130Reputation: 2130Reputation: 2130Reputation: 2130Reputation: 2130
You could set up a udev rule to change the permission of that device when it's attached. If you want more info on how to do that, you'll need to provide more info on what you're talking about.

Chances are there's a much better way of handling this problem without using chmod, but we need some context (what OS you're running, what this device is, why you need to change the permissions, what the existing ownership looks like, etc.).

Last edited by suicidaleggroll; 03-24-2016 at 04:51 PM.
 
1 members found this post helpful.
Old 03-24-2016, 09:31 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,389

Rep: Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573
it normally is a very BAD idea to run "chmod 777"

and is always the VERY LAST resort

usb drives and other internal drives are AUTO mounted as READ ONLY by design for normal users

and are mounted as READ / Write for root only

as above change the behavior for mounting the usb drive
 
Old 03-25-2016, 12:59 PM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,735

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Quote:
Originally Posted by John VV View Post
it normally is a very BAD idea to run "chmod 777"

and is always the VERY LAST resort

usb drives and other internal drives are AUTO mounted as READ ONLY by design for normal users

and are mounted as READ / Write for root only

as above change the behavior for mounting the usb drive
True in almost every case. Here though, it is for a usb rs232 device. And depending on its use, is still not necessarily a good idea.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] chmod -R 777 /* and consequences rustyz82 Linux - Server 5 12-21-2013 06:43 PM
'chmod 777 [Foldername] -R' what is this? skinney Linux - Server 10 10-14-2012 11:50 AM
chmod 777 664 zerocool22 Linux - Server 7 06-03-2008 06:58 AM
CHMOD in shell : chmod 777 /usr/ <---is that right? cpanelskindepot Programming 5 07-16-2004 05:37 AM
chmod 777 /* ziggamon Linux - Newbie 2 09-25-2003 11:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration