Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does the Android operating system have files like /etc/passwd, /etc/shadow, and /etc/group?

If not, how does android determine whether a user belongs to a certain group?

like image 656
sunway Avatar asked Feb 28 '11 16:02

sunway


People also ask

Does Android Have etc passwd?

Android does not use the traditional /etc/passwd, however it still uses Linux User ID and Group ID for managing permissions.

What is ETC shadow file?

A shadow password file, also known as /etc/shadow, is a system file in Linux that stores encrypted user passwords and is accessible only to the root user, preventing unauthorized users or malicious actors from breaking into the system.

What is ETC shadow and etc passwd?

/etc/passwd file aims at user account details while /etc/shadow aims at the user's password details. the passwd file is world-readable. shadow file can only be read by the root account. The user's encrypted password can only be stored in /etc/shadow file.

What group does the file etc shadow belong to?

/etc/shadow is a text file that contains information about the system's users' passwords. It is owned by user root and group shadow, and has 640 permissions .


1 Answers

This thread discusses how that is done: http://groups.google.com/group/android-ndk/browse_thread/thread/adddb27c1a5438e9

It contains a broken link to a git repository though, you can find a list of name and IDs in https://android.googlesource.com/platform/system/core.git/+/master/include/private/android_filesystem_config.h.

like image 153
Mojo Risin Avatar answered Sep 22 '22 13:09

Mojo Risin