Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

Thanks

share|improve this question

1 Answer 1

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/fan-speed-init.sh
sudo chown root:root /etc/init.d/fan-speed-init.sh
sudo ln -s /etc/init.d/fan-speed-init.sh /etc/rc2.d/S99fan-speed-init.sh
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 fan-speed-init.sh start 99 2 3 4 5 .". Thanks for your help –  kuus Dec 31 '12 at 4:15

Your Answer

 
discard

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.