Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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'd like to always give my user the permission to write on a specific file located in the /sys folder.
This because in the solution I posted here I have the problem that every time I reboot I have to reset the permission on the file with chmod.

I tried to follow this guide but it didn't work. According to this I have to create a sh script, mine consiste in just this line:

/bin/chmod 644 /sys/class/leds/asus::kbd_backlight/brightness


share|improve this question
up vote 1 down vote accepted

Did you add the script to /etc/init.d? You have to symlink the script you wrote to /etc/init.d so that it runs at startup.

sudo chmod 744 /etc/init.d/
sudo chown root:root /etc/init.d/
sudo ln -s /etc/init.d/ /etc/rc2.d/
share|improve this answer
yes you're right I skipped that step because in that guide i've read "This multiple linking could be done smarter by issuing the update-rc.d -f start 99 2 3 4 5 .". Thanks for your help – kuus Dec 31 '12 at 4:15

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.