userconf
int groupadd(struct userconf *, char *name, gid_t id, char *members, int fd,
void pw_log(struct userconf * cnf, int mode, int which, char const * fmt,...) __printflike(4, 5);
struct userconf *get_userconfig(const char *cfg);
struct userconf *read_userconfig(char const * file);
int write_userconfig(struct userconf *cnf, char const * file);
int pw_groupnext(struct userconf *cnf, bool quiet);
struct userconf *
write_userconfig(struct userconf *cnf, const char *file)
static struct userconf config =
pw_groupnext(struct userconf *cnf, bool quiet)
gr_gidpolicy(struct userconf * cnf, intmax_t id)
struct userconf *cnf;
struct userconf *cnf = NULL;
static gid_t gr_gidpolicy(struct userconf * cnf, intmax_t id);
groupadd(struct userconf *cnf, char *name, gid_t id, char *members, int fd,
struct userconf *cnf = NULL;
struct userconf *cnf;
pw_log(struct userconf * cnf, int mode, int which, char const * fmt,...)
validate_grname(struct userconf *cnf, char *group)
mix_config(struct userconf *cmdcnf, struct userconf *cfg)
struct userconf *cnf, *cmdcnf;
if ((cmdcnf = calloc(1, sizeof(struct userconf))) == NULL)
create_and_populate_homedir(struct userconf *cnf, struct passwd *pwd,
struct userconf *cnf;
pw_uidpolicy(struct userconf * cnf, intmax_t id)
pw_gidpolicy(struct userconf *cnf, char *grname, char *nam, gid_t prefer, bool dryrun)
pw_homepolicy(struct userconf * cnf, char *homedir, const char *user)
pw_shellpolicy(struct userconf * cnf)
pw_password(struct userconf * cnf, char const * user)
struct userconf *cnf = NULL;
static uid_t pw_uidpolicy(struct userconf *cnf, intmax_t id);
static uid_t pw_gidpolicy(struct userconf *cnf, char *grname, char *nam,
static char *pw_homepolicy(struct userconf * cnf, char *homedir,
static char *pw_shellpolicy(struct userconf * cnf);
static char *pw_password(struct userconf * cnf, char const * user);
struct userconf *cnf = NULL;
struct userconf *