Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,736,274 Members 45,590 Now Online
XDA Developers Android and Mobile Development Forum

[Guide]Noob Guide To Set File Permission's [28-08-2012]

Tip us?
 
Sun90
Old
(Last edited by Sun90; 10th February 2013 at 11:38 AM.)
#1  
Sun90's Avatar
Recognized Contributor - OP
Thanks Meter 8794
Posts: 6,913
Join Date: Oct 2011
Location: MYSORE - KARNATAKA - INDIA
Service [Guide]Noob Guide To Set File Permission's [28-08-2012]

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
"Knowledge Stays Fresh if Shared else Rots"
Please:



The Following 142 Users Say Thank You to Sun90 For This Useful Post: [ Click to Expand ]
 
HANDSY
Old
#2  
Senior Member
Thanks Meter 304
Posts: 741
Join Date: Apr 2012
Many thanks I too am totally lost by permission setting.

Sent from my GT-I9100 using xda premium
The Following 2 Users Say Thank You to HANDSY For This Useful Post: [ Click to Expand ]
 
Sun90
Old
#3  
Sun90's Avatar
Recognized Contributor - OP
Thanks Meter 8794
Posts: 6,913
Join Date: Oct 2011
Location: MYSORE - KARNATAKA - INDIA
Quote:
Originally Posted by HANDSY View Post
Many thanks I too am totally lost by permission setting.

Sent from my GT-I9100 using xda premium
thanks for ur first reply to my guide ma8, appreciated
"Knowledge Stays Fresh if Shared else Rots"
Please:



The Following 3 Users Say Thank You to Sun90 For This Useful Post: [ Click to Expand ]
 
MyLifeRocks10
Old
#4  
MyLifeRocks10's Avatar
Recognized Contributor
Thanks Meter 9796
Posts: 3,868
Join Date: Mar 2012
Good guide for beginners. Hope this will help a lot of people understanding file permissions.
The Following User Says Thank You to MyLifeRocks10 For This Useful Post: [ Click to Expand ]
 
Sun90
Old
#5  
Sun90's Avatar
Recognized Contributor - OP
Thanks Meter 8794
Posts: 6,913
Join Date: Oct 2011
Location: MYSORE - KARNATAKA - INDIA
Quote:
Originally Posted by MyLifeRocks10 View Post
Good guide for beginners. Hope this will help a lot of people understanding file permissions.
thanks a lot buddy, and for u too @ mistahbungle
"Knowledge Stays Fresh if Shared else Rots"
Please:



The Following User Says Thank You to Sun90 For This Useful Post: [ Click to Expand ]
 
bala_gamer
Old
#6  
bala_gamer's Avatar
Recognized Contributor
Thanks Meter 6528
Posts: 11,305
Join Date: Mar 2011
Location: Madurai-Chennai

 
DONATE TO ME
Nice work sun90, will be handy for new comers. Hope they don't miss reading this

《tapatalked from galaxy s3》
DEVICE : 9505 ARCTIC BLUE || MODEM : NC6 || PRIMARY : SOKP || KERNEL : KTOONSEZ || DPI : 320 || LAUNCHER : BUZZ || APPS : 200+ || BATTERY BACKUP : ~~~
|| temp fix for screen smearing in s4 || SenseWiz Theme || multi dpi apps || S3 CPU/GPU overclocking guide || New to Android/s3? Read the FAQ here ||

Oldies : Galaxy S3,S2,SL|| Nokia X6,5230,N73
The Following User Says Thank You to bala_gamer For This Useful Post: [ Click to Expand ]
 
Jokesy
Old
#7  
Jokesy's Avatar
Senior Member
Thanks Meter 1147
Posts: 3,388
Join Date: May 2011
Location: Lagos
Quote:
Originally Posted by bala_gamer View Post
Nice work sun90, will be handy for new comers. Hope they don't miss reading this

《tapatalked from galaxy s3》
They will still miss this useful thread, and then open a new thread under android development, asking about how to set permissions
Lol!

Swyped from my Galaxy SII





I will no longer be as active as before on XDA. So please don't send me any PM. Thanks
The Following User Says Thank You to Jokesy For This Useful Post: [ Click to Expand ]
 
Sun90
Old
#8  
Sun90's Avatar
Recognized Contributor - OP
Thanks Meter 8794
Posts: 6,913
Join Date: Oct 2011
Location: MYSORE - KARNATAKA - INDIA
Quote:
Originally Posted by bala_gamer View Post
Nice work sun90, will be handy for new comers. Hope they don't miss reading this

《tapatalked from galaxy s3》
thank u very much @bala

Quote:
Originally Posted by Jokesy View Post
They will still miss this useful thread, and then open a new thread under android development, asking about how to set permissions
Lol!

Swyped from my Galaxy SII
Thank u very Much @jokesy, yes its very true, come what we do to make things easy for people, still the stick to there habit of asking for the same
"Knowledge Stays Fresh if Shared else Rots"
Please:



 
SilencerOfLambs
Old
#9  
SilencerOfLambs's Avatar
Senior Member
Thanks Meter 1132
Posts: 1,825
Join Date: Dec 2011
Location: Mumbai

 
DONATE TO ME
Good job mate!Should be really helpful for newbies plus will be a good thread to refer to when in doubt.Keep it up
The Following User Says Thank You to SilencerOfLambs For This Useful Post: [ Click to Expand ]
 
vegeta1
Old
#10  
vegeta1's Avatar
Senior Member
Thanks Meter 6126
Posts: 5,719
Join Date: Nov 2011
Location: DELHI

 
DONATE TO ME
a must have guide for the noobs.... grt work bro \m/
My Work :
Galaxy s3 i9300 : [Drop Down Mods] [Theme - Jelly Bean Fusion]
Note 2 n7100 : [Drop Down Mods] [Theme Jelly Bean Fusion] [How To Change Your Status Bar Color]
[New On Xda See This]
If You Like My Work : Consider a Donation

People i Admire :* ::indie::,Chainfire,AndreiLux,Chris_84,KeesStolk,X ode,raubkatze,Gimmick56,MMWolverine *
chuck norris
Issues With Omega Here's Official FAQ By Chris

The Following 2 Users Say Thank You to vegeta1 For This Useful Post: [ Click to Expand ]
Tags
cool mods for rr by vreestyle and kroz, gabowinter's rom collection, multi dpi play stores by myliferocks10, resurrection remix rom by westcrip, vegeta1 mods for galaxy s3
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes