We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As developer, I would like decide to how parental control would work in daemon side
The text was updated successfully, but these errors were encountered:
PAM is for authentication.
get logged users
man 5 utmp
#include <utmp.h> #include <err.h>
#define NAME_WIDTH 8
FILE *ufp; int numberOfUsers = 0; struct utmp usr; ufp = file(_PATH_UTMP); while (fread((char *)&usr, sizeof(usr), 1, ufp) == 1) { if (*usr.ut_name && *usr.ut_line && *usr.ut_line != '~') { numberOfUsers++; } } FILE *file(char *name) { FILE *ufp; if (!(ufp = fopen(name, "r"))) { err(1, "%s", name); } return(ufp); }
Sorry, something went wrong.
No branches or pull requests
As developer, I would like decide to how parental control would work in daemon side
The text was updated successfully, but these errors were encountered: