[openAOS-android] How chmod and chown work?

Brian J. Murrell
Mon Jan 3 19:00:32 CET 2011


On Mon, 2011-01-03 at 19:47 +0200, ilya korchemkin wrote: 
> Hi everyone.

Hi,

> I put the following lines into init.rc after "Owners, Modes for Bluetooth" part
>     # Mode for accel_ctrl
>     chown system system /dev/accel_ctrl

Try either a . or a : between the user and groups in that command:

chown system.system /dev/accel_ctrl

or

chown system:system /dev/accel_ctrl

Both are common syntaxes for changing both the owner and group in a
single chown command.  I don't think I have ever seen the space
separated syntax.

Cheers,
b.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: 


More information about the openAOS-android mailing list