Go Back   Android Forums > Android Phones > Samsung Behold 2 > Behold 2 - All Things Root
Behold 2 - All Things Root Rooting, ROMS, Overclocking, etc.

test: Reply
 
LinkBack Thread Tools
Old May 4th, 2010, 02:35 PM   #1 (permalink)
Senior Member
Thread Author (OP)
 
BH_MAN's Avatar
 
Join Date: Feb 2010
Posts: 1,382
 
Device(s): Behold 2 w/ BH_MAN Galaxy 1.6 / R7 Do Not PM me With Problem's Post in Thread!
Carrier: Not Provided

Thanks: 156
Thanked 1,678 Times in 433 Posts
Default Understanding Android file permissions

Understanding Android file permissions

Overview Of Permissions via ADB SHELL
Example = drwxrwxrwx

To Check Permission at anytime in ADB just Type:
ls -l

The First character defines the Directory, Link, Binary.
Below are some examples

Example = d---------
d = Directory
l = Link
b = Binary



The next 9 characters define the file permissions. These permissions are
given in groups of 3 each.

The first 3 characters are the permissions for the owner of the file or directory.
Example = -rwx------

The next 3 are permissions for the group that the file is owned by.
Example = ----rwx---

The final 3 characters define the access permissions for everyone not part of the group.
Example = -------rwx

There are 3 possible attributes that make up file access permissions.

r - Read permission. Whether the file may be read. In the case of a
directory, this would mean the ability to list the contents of the
directory.

w - Write permission. Whether the file may be written to or modified. For
a directory, this defines whether you can make any changes to the contents
of the directory. If write permission is not set then you will not be able
to delete, rename or create a file.

x - Execute permission. Whether the file may be executed. In the case of a
directory, this attribute decides whether you have permission to enter,
run a search through that directory or execute some program from that
directory

In addition to the file permission, you can also modify the owner and
group of the file. The chown program is used here and its syntax is very
simple. You need to be the owner of a file or root to do this.

Understanding Owner Permissions:
The first command is for
owner ID, the Second Command is for Group ID.
exp.
root.root ( First Root is owner, Second Root is Group ).

Chmod 644 some file, Like
Build.prop For testing & then Veiw the Resulted Changes!
Refer to the table below as a quick reference.

Command Line for Both would look like this


chmod 644 build.prop = -rw-r--r--
\/
Chmod Guide
0 - ---
1 - --x
2 - -w-
3 - -wx
4 - r--
5 - r-x
6 - rw-
7 - rwx

Behold 2 SH Chown Guide
\/

chown root.root build.prop
root.root = Root
root.shell = Shell

Busybox SH Chown Guide
\/
chown 0.0 build.prop
0.0 = Root
0.2000 = Shell

I'll update the chmod with more with More Complex Commands Later

Side Note:Always set owner ( chown ) before Setting Permissions ( Chmod )!

Hope this Clears up things & is Helpful to everyone
~BH_MAN



Advertisements
__________________
Twitter http://twitter.com/Eugene_373 Show thanks?Just send me a PM with a thanks you...
IF you want to buy me a Beer, Click on the Text.*edit* All Donations Goes to Baby Toys now
BH_MAN is offline  
Last edited by BH_MAN; May 5th, 2010 at 01:50 PM.
Reply With Quote
The Following 9 Users Say Thank You to BH_MAN For This Useful Post:
aequitas3 (May 4th, 2010), bionicgrape (May 6th, 2010), chadmd23 (May 4th, 2010), droidzone (January 18th, 2011), kkarlin (May 6th, 2010), lviv73 (May 4th, 2010), mmmark111 (May 4th, 2010), rudoFF (May 5th, 2010), spinwizard (May 4th, 2010)
sponsored links
Old May 6th, 2010, 06:36 AM   #2 (permalink)
Junior Member
 
bionicgrape's Avatar
 
Join Date: Apr 2010
Posts: 75
 
Device(s): Behold II WarHeads!
Carrier: Not Provided

Thanks: 27
Thanked 4 Times in 4 Posts
Lightbulb Uh-oh!

I'm starting to learn enough to be dangerous to my phone
bionicgrape is offline  
Reply With Quote
Old July 3rd, 2010, 10:50 AM   #3 (permalink)
Member
 
rleal2010's Avatar
 
Join Date: May 2010
Location: Texas
Posts: 385
 
Device(s): Samsung Behold II, HTC T-Mobile Mytouch Slide (Black)
Carrier: Not Provided

Thanks: 24
Thanked 44 Times in 29 Posts
Default

Still waiting for MORE complex commands lol I know I'm a bug
rleal2010 is offline  
Reply With Quote
Old July 8th, 2010, 08:21 AM   #4 (permalink)
Member
 
Join Date: Feb 2010
Location: Rolla, MO, USA
Posts: 263
 
Device(s): HTC Typhoon, HTC Juno, Samsung T939
Carrier: Not Provided

Thanks: 26
Thanked 236 Times in 56 Posts
Default

Quote:
Originally Posted by rleal2010 View Post
Still waiting for MORE complex commands lol I know I'm a bug
chmod - Wikipedia, the free encyclopedia

Just be aware that the flash file system used on the BH2 cannot save permissions. If you make any changes they will have to be redone after a reboot.
Nu11u5 is offline  
Reply With Quote
Old July 11th, 2010, 12:50 AM   #5 (permalink)
Senior Member
Thread Author (OP)
 
BH_MAN's Avatar
 
Join Date: Feb 2010
Posts: 1,382
 
Device(s): Behold 2 w/ BH_MAN Galaxy 1.6 / R7 Do Not PM me With Problem's Post in Thread!
Carrier: Not Provided

Thanks: 156
Thanked 1,678 Times in 433 Posts
Default

Quote:
Originally Posted by Nu11u5 View Post
chmod - Wikipedia, the free encyclopedia

Just be aware that the flash file system used on the BH2 cannot save permissions. If you make any changes they will have to be redone after a reboot.
I never had any of these issue when I worked from my Rom's..

Just use Busybox when changing permissions.. if they don't stick, but them again I never had issue.. As you as Root via sh which lets you change permission & have them stick after a reboot.
BH_MAN is offline  
Reply With Quote
Old January 19th, 2011, 02:31 AM   #6 (permalink)
Member
 
droidzone's Avatar
 
Join Date: Sep 2010
Location: India
Posts: 436
 
Device(s): Samsung Galaxy Note2 N7100, HTC Desire
Carrier: Not Provided

Thanks: 12
Thanked 58 Times in 42 Posts
Default

Quote:
Originally Posted by BH_MAN View Post
Understanding Android file permissions

Of all the resources I've searched, this is the best resource so far. Others seem to be written under the assumption that people are brought up using linux/unix
__________________

I dont subscribe to every thread I reply to, so post in relevant official threads for a speedy response. Alternately use the official Supernova forum
droidzone is offline  
Reply With Quote
Old January 19th, 2011, 02:42 AM   #7 (permalink)
Member
 
droidzone's Avatar
 
Join Date: Sep 2010
Location: India
Posts: 436
 
Device(s): Samsung Galaxy Note2 N7100, HTC Desire
Carrier: Not Provided

Thanks: 12
Thanked 58 Times in 42 Posts
Default

Edited out
droidzone is offline  
Last edited by droidzone; September 13th, 2012 at 11:26 PM.
Reply With Quote
Old September 13th, 2012, 03:59 PM   #8 (permalink)
New Member
 
Join Date: Sep 2012
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

please s1 guide me i can't process my dodo tablet. it gives error ( The process android.acore has stopped unexpectedly, please try again ) wat can i do now......?
akbaro is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Phones > Samsung Behold 2 > Behold 2 - All Things Root
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


LinkBacks (?)
LinkBack to this Thread: http://androidforums.com/behold-2-all-things-root/73177-understanding-android-file-permissions.html
Posted By For Type Date
View Profile: darkandshadow - HongFire.com | Anime | Manga | Games | MMORPG | Friendly Community This thread Refback March 27th, 2012 08:40 PM


All times are GMT -5. The time now is 01:02 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.