Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Please try to use <a href="http://www.thegeekstuff.com/2010/06/chmod-command-examples/" rel="noreferrer">chmod</a> command in the <a href="http://developer.android.com/tools/help/adb.html#shellcommands" rel="noreferrer">ADB shell</a>...</p> <p>Following are some chmod sample:</p> <blockquote> <ol> <li>Add single permission to a file/directory</li> </ol> <p>Changing permission to a single set. + symbol means adding permission. For example, do the following to give execute permission for the user irrespective of anything else:</p> <pre><code>$ chmod u+x filename </code></pre> <ol start="2"> <li>Add multiple permission to a file/directory</li> </ol> <p>Use comma to separate the multiple permission sets as shown below.</p> <blockquote> <p>$ chmod u+r,g+x filename</p> </blockquote> <ol start="3"> <li>Remove permission from a file/directory</li> </ol> <p>Following example removes read and write permission for the user.</p> <blockquote> <p>$ chmod u-rx filename</p> </blockquote> <ol start="4"> <li>Change permission for all roles on a file/directory</li> </ol> <p>Following example assigns execute privilege to user, group and others (basically anybody can execute this file).</p> <blockquote> <p>$ chmod a+x filename</p> </blockquote> <ol start="5"> <li>Make permission for a file same as another file (using reference)</li> </ol> <p>If you want to change a file permission same as another file, use the reference option as shown below. In this example, file2′s permission will be set exactly same as file1′s permission.</p> <blockquote> <p>$ chmod --reference=file1 file2</p> </blockquote> <ol start="6"> <li>Apply the permission to all the files under a directory recursively</li> </ol> <p>Use option -R to change the permission recursively as shown below.</p> <blockquote> <p>$ chmod -R 755 directory-name/</p> </blockquote> <ol start="7"> <li>Change execute permission only on the directories (files are not affected)</li> </ol> <p>On a particular directory if you have multiple sub-directories and files, the following command will assign execute permission only to all the sub-directories in the current directory (not the files in the current directory).</p> <blockquote> <p>$ chmod u+X *</p> </blockquote> </blockquote>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload