WANTED: User-friendly way to assign owner/permission when attaching a new serial devices (USB, BT, etc)Configure udev to change permissions on USB HID device?Give write access to USB and Serial devices automatically

My 15 year old son is gay. How do I express my feelings about this?

I reverse the source code, you negate the output!

Do the villains know Batman has no superpowers?

The quicker I go up, the sooner I’ll go down - Riddle

Resolving moral conflict

Social leper versus social leopard

Where Does VDD+0.3V Input Limit Come From on IC chips?

Why is the missed-approach course for the "RNAV (GNSS) - A" approach to runway 28 at ENSB shaped all funny?

How to deal with my team leader who keeps calling me about project updates even though I am on leave for personal reasons?

How to manage expenditure when billing cycles and paycheck cycles are not aligned?

Algorithm that spans orthogonal vectors: Python

Does wetting a beer glass change the foam characteristics?

Do we know the situation in Britain before Sealion (summer 1940)?

A drug that allows people to survive on less food

Will Proving or Disproving of any of the following have effects on Chemistry in general?

Examples of "unsuccessful" theories with afterlives

Norwegian refuses EU delay (4.7 hours) compensation because it turned out there was nothing wrong with the aircraft

I feel like most of my characters are the same, what can I do?

Idiom for "I came, I saw, I ate" (or drank)

What are these pixel-level discolored specks? How can I fix it?

Conditionally execute a command if a specific package is loaded

Is it impolite to ask for halal food when traveling to and in Thailand?

What is the need of methods like GET and POST in the HTTP protocol?

Is It Possible to Have Different Sea Levels, Eventually Causing New Landforms to Appear?



WANTED: User-friendly way to assign owner/permission when attaching a new serial devices (USB, BT, etc)


Configure udev to change permissions on USB HID device?Give write access to USB and Serial devices automatically






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















When attaching a serial device (e.g an arduino via USB or Bluetooth), the owner:group is set as root:dialout, e.g:



crw-rw---- 1 root dialout 166, 0 Apr 15 18:08 /dev/ttyACM0


However, even when the regular user is part of the dialout group, it is necessary to change permissions on the device file (to 666).



This is only temporary until the device has been disconnected. A persistent solution is to modify the udev file. See e.g. this link and this link



This can be confusing, not least when the Bluetooth system tool (blueDevil on KDE) can detect USB devices, but not connect to them.



It seems to me, that either the default behaviour should be to grant dialout users write access or at the least this should be part of the GUI system setting tools.



$id
uid=1000(soon) gid=1000(soon) groups=1000(soon),4(adm),20(dialout),24(cdrom),27(sudo),30(dip),46(plugdev),116(lpadmin),126(sambashare)









share|improve this question





















  • 1





    Group members have write permission. The permissions is rw for owner and rw for group.

    – vidarlo
    Apr 15 at 16:32











  • That's true ... the issue basically remains the same however: the user can not access the device, but root can. Now I can't really see why....

    – Søren ONeill
    Apr 15 at 16:42












  • Edit your question to include the output of id

    – vidarlo
    Apr 15 at 16:45











  • Done! I've added id above

    – Søren ONeill
    Apr 15 at 17:57

















0















When attaching a serial device (e.g an arduino via USB or Bluetooth), the owner:group is set as root:dialout, e.g:



crw-rw---- 1 root dialout 166, 0 Apr 15 18:08 /dev/ttyACM0


However, even when the regular user is part of the dialout group, it is necessary to change permissions on the device file (to 666).



This is only temporary until the device has been disconnected. A persistent solution is to modify the udev file. See e.g. this link and this link



This can be confusing, not least when the Bluetooth system tool (blueDevil on KDE) can detect USB devices, but not connect to them.



It seems to me, that either the default behaviour should be to grant dialout users write access or at the least this should be part of the GUI system setting tools.



$id
uid=1000(soon) gid=1000(soon) groups=1000(soon),4(adm),20(dialout),24(cdrom),27(sudo),30(dip),46(plugdev),116(lpadmin),126(sambashare)









share|improve this question





















  • 1





    Group members have write permission. The permissions is rw for owner and rw for group.

    – vidarlo
    Apr 15 at 16:32











  • That's true ... the issue basically remains the same however: the user can not access the device, but root can. Now I can't really see why....

    – Søren ONeill
    Apr 15 at 16:42












  • Edit your question to include the output of id

    – vidarlo
    Apr 15 at 16:45











  • Done! I've added id above

    – Søren ONeill
    Apr 15 at 17:57













0












0








0


1






When attaching a serial device (e.g an arduino via USB or Bluetooth), the owner:group is set as root:dialout, e.g:



crw-rw---- 1 root dialout 166, 0 Apr 15 18:08 /dev/ttyACM0


However, even when the regular user is part of the dialout group, it is necessary to change permissions on the device file (to 666).



This is only temporary until the device has been disconnected. A persistent solution is to modify the udev file. See e.g. this link and this link



This can be confusing, not least when the Bluetooth system tool (blueDevil on KDE) can detect USB devices, but not connect to them.



It seems to me, that either the default behaviour should be to grant dialout users write access or at the least this should be part of the GUI system setting tools.



$id
uid=1000(soon) gid=1000(soon) groups=1000(soon),4(adm),20(dialout),24(cdrom),27(sudo),30(dip),46(plugdev),116(lpadmin),126(sambashare)









share|improve this question
















When attaching a serial device (e.g an arduino via USB or Bluetooth), the owner:group is set as root:dialout, e.g:



crw-rw---- 1 root dialout 166, 0 Apr 15 18:08 /dev/ttyACM0


However, even when the regular user is part of the dialout group, it is necessary to change permissions on the device file (to 666).



This is only temporary until the device has been disconnected. A persistent solution is to modify the udev file. See e.g. this link and this link



This can be confusing, not least when the Bluetooth system tool (blueDevil on KDE) can detect USB devices, but not connect to them.



It seems to me, that either the default behaviour should be to grant dialout users write access or at the least this should be part of the GUI system setting tools.



$id
uid=1000(soon) gid=1000(soon) groups=1000(soon),4(adm),20(dialout),24(cdrom),27(sudo),30(dip),46(plugdev),116(lpadmin),126(sambashare)






usb permissions bluetooth udev






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 15 at 16:50







Søren ONeill

















asked Apr 15 at 16:27









Søren ONeillSøren ONeill

11 bronze badge




11 bronze badge










  • 1





    Group members have write permission. The permissions is rw for owner and rw for group.

    – vidarlo
    Apr 15 at 16:32











  • That's true ... the issue basically remains the same however: the user can not access the device, but root can. Now I can't really see why....

    – Søren ONeill
    Apr 15 at 16:42












  • Edit your question to include the output of id

    – vidarlo
    Apr 15 at 16:45











  • Done! I've added id above

    – Søren ONeill
    Apr 15 at 17:57












  • 1





    Group members have write permission. The permissions is rw for owner and rw for group.

    – vidarlo
    Apr 15 at 16:32











  • That's true ... the issue basically remains the same however: the user can not access the device, but root can. Now I can't really see why....

    – Søren ONeill
    Apr 15 at 16:42












  • Edit your question to include the output of id

    – vidarlo
    Apr 15 at 16:45











  • Done! I've added id above

    – Søren ONeill
    Apr 15 at 17:57







1




1





Group members have write permission. The permissions is rw for owner and rw for group.

– vidarlo
Apr 15 at 16:32





Group members have write permission. The permissions is rw for owner and rw for group.

– vidarlo
Apr 15 at 16:32













That's true ... the issue basically remains the same however: the user can not access the device, but root can. Now I can't really see why....

– Søren ONeill
Apr 15 at 16:42






That's true ... the issue basically remains the same however: the user can not access the device, but root can. Now I can't really see why....

– Søren ONeill
Apr 15 at 16:42














Edit your question to include the output of id

– vidarlo
Apr 15 at 16:45





Edit your question to include the output of id

– vidarlo
Apr 15 at 16:45













Done! I've added id above

– Søren ONeill
Apr 15 at 17:57





Done! I've added id above

– Søren ONeill
Apr 15 at 17:57










0






active

oldest

votes














Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);














draft saved

draft discarded
















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1134130%2fwanted-user-friendly-way-to-assign-owner-permission-when-attaching-a-new-serial%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1134130%2fwanted-user-friendly-way-to-assign-owner-permission-when-attaching-a-new-serial%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Tamil (spriik) Luke uk diar | Nawigatjuun

Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?