Why doesn't glibc provide standard library to modify /etc/passwd and /etc/shadow, i.e add a user, change passwd,
I came to that conclusion because I checked the source code of shadow and failed to find such interface
|
|
|
Because it's not glibc's responsibility. glibc delegates to other services installed on the system for auth; if anything it would be those that would provide the ability to modify the userdb. |
|||
|
|
You're starting with an assumption here, which is that The reverse case APIs do exist: But, you want an API that does the reverse. How would you implement |
|||||||||||
|
|
Simple answer if you think about it, there can be no C standard library to interact with them, simply because they are not C standard features. How would this work on windows? |
|||||||||
|