linux set file permissions on boot

Soldato
Joined
29 Oct 2005
Posts
3,298
Hi guys, i need to set the permissions on all my input devices to a=rw as i am using the griffin powermate and the gizmod program. at the moment i have to change them manually each time i log in as the script i made doesn't seem to work

i was wondering if there was a way to make the permissions permanent or to permanently change ownership of these files to me from root?

thanks

Code:
Script Code:

# !/sbin/bash 
cd /dev/input 
sudo chmod a=rw event0 
sudo chmod a=rw event1 
sudo chmod a=rw event2 
sudo chmod a=rw event3 
sudo chmod a=rw event4 

/usr/local/bin/gizmod &


daven
 
Back
Top Bottom