Stop Your Screen From Turning Off with KeepItOn

We all know the feeling of reading a news article orrather longdocument, when our screen … more

The XDA LG QPair Developer Challenge Voting Has Begun!

It seems like it was just yesterday that weannounced that we had paired up with LGto … more

Major Update for the Sony Smartwatch 2 Brings DND and More

With the wearables landscape now dominated by Android Wear and Pebble, its … more

How to Root Android Wear 5.0.1 Lollipop Devices – XDA TV

The Lollipop update for Android Wear devices has hit the market and people are … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[share][guide]how to set file permission?

OP EpullSalvatrucha

4th May 2014, 01:34 PM   |  #1  
EpullSalvatrucha's Avatar
OP Senior Member
Flag Muar, Johor
Thanks Meter: 15
 
126 posts
Join Date:Joined: Feb 2014
Hi all,
some people dont know how to set file permission after push the file/apk etc.. so i share this guide to all...

Big thanks to Sun90 because let me to share his guide...

Quote:
Originally Posted by Sun90

Hey Guys i have often seen lot of Question regarding the same "How to set the file permission,sorry i am a noob please explain?"
well this we come across on all threads, at some given point of time.

Reason being simple that we suggest some people to do as said below:

Hey,
1) copy the file XXXX to your Internal or External sd-card.
2) push the file XXXX to sytem/xxxx folder.
3) set permissions to rw-r--r-- blah blah blah.
4) reboot your phone and see.

Then comes the question again from the same people as below:

Hey,
1) I have done accordingly, but really confused regarding File permission though please explain?

2) How to set File Permission?

3) what is rw-r--r-- blah blah i cannot get it? etc.

So this Simple Guide will defenetly help the people with the same.

Let me not go in depth regarding the same,Since this excellent Tutorial from Matt Doyle explain's in more detail about it
Understanding File Permissions- by Matt Doyle

In order to set the file permission all you need is to have Root explore/Browser or similar type of File manager app been installed on your phone, with Root access.

when you open the File manager you see all your files and folder listed there, thats not our main concern, but something below each one of those file's or folder's, what we are really interested in like:

under say Data folder you see something like 'rwxrwx--x' which is of real concern here.

when you long press on the same Data Folder a pop appears as below

Fig 1


and when you select Permissions in that pop up menu it appears as below.

Fig 2


as you can see in the pic above the permission is set to 'rwxrwx--x' (771 according to Table below)

So in order to set the right Permission for a file, after you have copied the file to the relavent folder, all you have to follow is the below steps and also the Table guide below it.

1)Any File Manager app like Root Explorer/Browser,Es-file explorer installed with root access (Do ensure to Mount as R/W (Read/Write)).

2)Find the File which you have copied to the appropriate Folder for which you have to set Permissions with the above installed file manager app.

3) Long press on the file to open a pop up menu as shown in Fig 1 above.

4)Set Permission accordingly ( been suggested by people for you) using the table guide below as reference.

5) Then reboot your phone for the same (Permission set) to take effect.


Table Guide for Reference
----------------------------------

No- Box is Unchecked, Yes- Box Checked




So, for example:

777 is the same as rwxrwxrwx

755 is the same as rwxr-xr-x

666 is the same as rw-rw-rw- and so on.

I do hope this Guide will come in handy to all those people who want to set filepermission, but need some clarity upon the same.

All Credit to Matt Doyle for his Excellent Tutorial on 'Understanding File Permissions' which being an inspiration for me to make this Guide.
And also like to Thank the XDA for this wonderfull Knowledge based Site.

All constructive Comments to improve the same by my fellow Member's are Welcome



Credits:
Sun90
Matt Doyle
The Following User Says Thank You to EpullSalvatrucha For This Useful Post: [ View ]
4th May 2014, 03:18 PM   |  #2  
xXx~~~SHLOK~~~xXx's Avatar
Senior Member
Delhi
Thanks Meter: 416
 
532 posts
Join Date:Joined: Jul 2012
Even this needs a tutorial?

Sent from my GT-I9500 using Tapatalk
4th May 2014, 06:55 PM   |  #3  
shyamSGY's Avatar
Senior Member
Thanks Meter: 34
 
167 posts
Join Date:Joined: Mar 2014
All files permissions will be automatically Set after a Reboot

Sent from my GT-S5360 using Tapatalk 2
5th May 2014, 09:05 AM   |  #4  
xXx~~~SHLOK~~~xXx's Avatar
Senior Member
Delhi
Thanks Meter: 416
 
532 posts
Join Date:Joined: Jul 2012
Quote:
Originally Posted by shyamSGY

All files permissions will be automatically Set after a Reboot

Sent from my GT-S5360 using Tapatalk 2

Sometimes that doesn't work. You can always use fix permission in cmw

Sent from my GT-I9500 using Tapatalk
5th May 2014, 10:07 AM   |  #5  
EpullSalvatrucha's Avatar
OP Senior Member
Flag Muar, Johor
Thanks Meter: 15
 
126 posts
Join Date:Joined: Feb 2014
Quote:
Originally Posted by xXx~~~SHLOK~~~xXx

Even this needs a tutorial?

Sent from my GT-I9500 using Tapatalk

Sometime it needed ..
The Following User Says Thank You to EpullSalvatrucha For This Useful Post: [ View ]
6th May 2014, 08:36 AM   |  #6  
GalKill's Avatar
Senior Member
Reim Empire :P
Thanks Meter: 233
 
311 posts
Join Date:Joined: Oct 2013
More
at least we must respect him as he already share this to some of beginner members
The Following User Says Thank You to GalKill For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes