Lines Matching refs:entry
44 char *s = *toys.optargs, *entry;
62 // add_user(), add a new entry in /etc/passwd, /etc/shadow files
113 * 1. add an entry to /etc/passwd and /etcshadow file
118 // 1. add an entry to /etc/passwd and /etc/shadow file
119 entry = xmprintf("%s:%s:%ld:%ld:%s:%s:%s", pwd.pw_name, pwd.pw_passwd,
122 if (update_password("/etc/passwd", pwd.pw_name, entry)) error_exit("updating passwd file failed");
123 free(entry);
126 entry = xmprintf("%s:!!:%u::::::", pwd.pw_name,
128 else entry = xmprintf("%s:!!:%u:0:99999:7:::", pwd.pw_name,
130 update_password("/etc/shadow", pwd.pw_name, entry);
131 free(entry);