Lines Matching full:passwd
46 struct passwd pwd;
63 // add_user(), add a new entry in /etc/passwd, /etc/shadow files
74 struct passwd *pw = getpwuid(getuid());
114 * 1. add an entry to /etc/passwd and /etcshadow file
116 * 3. update the user passwd by running 'passwd' utility
119 // 1. add an entry to /etc/passwd and /etc/shadow file
123 update_password("/etc/passwd", pwd.pw_name, entry, 0);
128 (unsigned)(time(NULL))/(24*60*60)); //passwd is not set initially
130 (unsigned)(time(0))/(24*60*60)); //passwd is not set initially
150 //3. update the user passwd by running 'passwd' utility
152 if (xrun((char *[]){"passwd", pwd.pw_name, 0})) error_exit("passwd");