How to correctly set permisions for all subfolders and files

Posted by Saeid87 on Ask Ubuntu See other posts from Ask Ubuntu or by Saeid87
Published on 2012-09-07T09:32:58Z Indexed on 2012/09/07 9:49 UTC
Read the original article Hit count: 200

Filed under:
|

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?

© Ask Ubuntu or respective owner

Related posts about permissions

Related posts about chown