Lines Matching full:passwd
45 struct passwd pwd;
62 // add_user(), add a new entry in /etc/passwd, /etc/shadow files
73 struct passwd *pw = getpwuid(getuid());
113 * 1. add an entry to /etc/passwd and /etcshadow file
115 * 3. update the user passwd by running 'passwd' utility
118 // 1. add an entry to /etc/passwd and /etc/shadow file
122 if (update_password("/etc/passwd", pwd.pw_name, entry)) error_exit("updating passwd file failed");
127 (unsigned)(time(NULL))/(24*60*60)); //passwd is not set initially
129 (unsigned)(time(0))/(24*60*60)); //passwd is not set initially
149 //3. update the user passwd by running 'passwd' utility
151 if (xrun((char *[]){"passwd", pwd.pw_name, 0})) error_exit("passwd");