0

groupadd and useradd aren't available, so how I can add a user (app's assigned user) to a group?

Also, the file /etc/group does not exist and I couldn't find where Android saves this information. (googling/greping).

  • Take a look into the file /data/system/packages.list (root required). – Robert Aug 22 '18 at 17:49
  • 2
    This does not tell us what you are trying to achieve through that. Please give us the whole picture. – Firelord Aug 22 '18 at 18:50
  • i want to make genymotion shared directory accessible to a non-root user/app. on a plain linux you just add the user to a specific group. i want to do the same in android – Bnaya Aug 22 '18 at 21:57
  • @Bnaya where is the "genymotion shared directory" located and what users/apps you want to allow access for this directory? – Irfan Latif Dec 24 '18 at 21:06
0

I don't have an android phone in front of me, but I imagine you could just edit /etc/group and add the user to a group. Find the group you want to add them to and insert a comma, then the user name.

Example :

sambashare:x:115:sam,sally,yourNewUser

Where the first column is the group name, then the second column is group passwd (leave it an x), groupID and then the users.

| improve this answer | |
  • cat /etc/group cat: /etc/group: No such file or directory – Bnaya Aug 22 '18 at 17:27
  • I was trying that before, should have mention that in the question – Bnaya Aug 22 '18 at 17:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.