How to correctly set permisions for all subfolders and files
- by Saeid87
I am following the guide to install TinyOS on Ubuntu 12.04
I have done up to step 3, But I am not sure if I have done the step 3 correctly. Because by doing the step 4 I get the permission error :
saeid@saeid-Satellite-C660:~$ tos-install-jni
/usr/bin/tos-install-jni: 13: [: =: unexpected operator
Installing 32-bit Java JNI code in /usr/lib/jvm/java-6-openjdk-i386/jre/lib/i386 ...
install: cannot create regular file `/usr/lib/jvm/java-6-openjdk-i386/jre/lib/i386/libgetenv.so': Permission denied
Can you please tell me what would be the actual commands for step 3? What I have to replace with following lines?:
/opt/tinyos-2.x files: chown -R /opt/tinyos-2.x
Change the permissions on any serial (/dev/ttyS), usb (/dev/tts/usb, /dev/ttyUSB), or parallel (/dev/parport) devices you are going to use: chmod 666 /dev/
I mean how would you do those steps in your ubuntu?