question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Run as normal user

See original GitHub issue

I’ve been able to run this as a normal (non-root) user by creating the following udev rules in Arch Linux

/usr/lib/udev/rules.d/99-cm-rgb.rules

# cm-rgbi
SUBSYSTEM=="usb", ATTR{idVendor}=="2516", ATTR{idProduct}=="0051", MODE="0660", GROUP="plugdev", TAG+="uaccess", TAG+="udev-acl"

Then load the new rules with

sudo udevadm control --reload-rules
sudo udevadm trigger

Maybe this CLI tool could offer a way to create these rules for users with sudo access?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
gfduszynskicommented, Jan 12, 2020

This feature is now implemented in v0.1.0 by running cm-rgb-cli add-udev-rule

1reaction
gfduszynskicommented, Jan 7, 2020

Ok, so I’ve learned what the TAG+="uaccess" means 😃

According to: https://enotty.pipebreaker.pl/2012/05/23/linux-automatic-user-acl-management/

If the goal is to have access to the device as current active user this tag is all that is required. No group should be defined in the rule unless device is to be used from a daemon.

I’ve even found reference to this group on Arch issue tracker, quote Plugdev is an obsolete group to give members of that group full access to removable devices. Permissions on such devices are granted by logind using ACLs these days, so there's no need for plugdev. Any package shipping such rules should be considered buggy. - Jan de Groot

I guess your rule should work equally well without the plugdev part.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to run program as normal user (remove shield icon)?
It depends on the program you are trying to run, Generally there is no way to make a program run as a standard...
Read more >
How to Run a Program as a Different User (RunAs) in Windows?
The easiest way to run an application under another user is to use the Windows File Explorer GUI. Just find an application (or...
Read more >
Run as normal user - WineHQ Forums
Run as normal user. Post by Bamm » Tue Oct 27, 2020 1:51 am. Hi, When running a certain installer it tells me...
Read more >
Windows 7: Run as if I Were a Regular User, Even Though I ...
If you run command prompt, by default unless you escalate the permissions of command prompt, it will not be elevated. This means any...
Read more >
Install software on wine as normal user (not as administrator)
Run Explorer++. Navigate to folder with installer, then run it.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found