Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a footpedal and fortunately there is a software for using it under linux (see The author of that software already solved an issue for me (see issues there), but there is no option to ask simpler questions.

Unfortunately prior to use the software I have to change the device permission each time I start linux. How could I change that to be done automatically at startup?

share|improve this question

migrated from Oct 22 '10 at 12:52

This question came from our site for professional and enthusiast programmers.

That depends on your distribution. Which one are you using? – Frédéric Hamidi Oct 22 '10 at 12:39

Create a new file under /etc/udev/rules.d that contains an appropriate udev rule for setting the permissions on the device.

share|improve this answer
That is the real answer to the real question. – Louis Oct 23 '10 at 8:26

Historicaly there is a /etc/rc.local which is execute at the end of all other init scripts. To put your script in rc5.d and rc3.d you need a script that will run with start as parameter.

share|improve this answer
This is the easiest best solution. +1 – SuperJames Oct 22 '10 at 14:12
Technically, ir you're running from /etc/rc.*, you don't even need sudo, you're already root. You could remove it from the command – Rich Homolka Oct 22 '10 at 14:23

Normally, that would be a script under the /etc/rc* hierarchy. The scripts under (for example) /etc/rc5.d (from memory) are for run level 3 which is the level most systems end up in.

You should look into init since this is the program that runs all those scripts. There's a useful article here.

share|improve this answer

On Linux, you probably have Vixie cron, which can run things on system reboot. You can run sudo things here if you have the sudo entry marked as NOPASSWD

Run: crontab -e And it will open your crontab file in your editor (as set by EDITOR variable) and add the line

@reboot    sudo chmod a+r /dev/usb/hiddev0

and save it. If you have a chance i'd reboot just to test it.

crontab -e will probably run in vi, if you don't know how to run vi, maybe try kate or gedit

EDITOR=kate crontab -e


EDITOR=gedit crontab -e
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.