Searched refs:pw (Results 1 - 25 of 192) sorted by path

12345678

/illumos-gate/usr/src/cmd/acct/
H A Dacctcom.c107 struct passwd *getpwnam(), *getpwuid(), *pw; variable in typeref:struct:
208 if((pw = getpwnam(optarg)) == NULL) {
215 if ((pw = getpwuid(uidval)) == NULL) {
221 uidval = pw->pw_uid;
H A Dacctdusg.c81 struct passwd *pw; local
104 while ((pw = fgetpwent(pwf)) != NULL) {
105 if ((entry = hash_find(pw->pw_uid)) == NULL)
106 entry = hash_insert(pw->pw_uid);
107 validate_entry(entry, pw);
203 validate_entry(struct disk *entry, struct passwd *pw) argument
205 (void) strlcpy(entry->dsk_name, pw->pw_name,
215 struct passwd *pw; local
250 pw = getpwuid(statb.st_uid);
252 if (pw !
[all...]
/illumos-gate/usr/src/cmd/acctadm/
H A Daconf.c371 struct passwd *pw; local
373 if ((pw = getpwuid(getuid())) == NULL)
377 sizeof (auth)) == -1 || chkauthattr(auth, pw->pw_name) == 0)
381 sizeof (auth)) == -1 || chkauthattr(auth, pw->pw_name) == 0)
385 sizeof (auth)) == -1 || chkauthattr(auth, pw->pw_name) == 0)
/illumos-gate/usr/src/cmd/auths/
H A Dauths.c93 struct passwd *pw; local
98 if ((pw = getpwuid(getuid())) == NULL) {
104 username = pw->pw_name;
/illumos-gate/usr/src/cmd/bnu/
H A Din.uucpd.c210 struct passwd *pw, *getpwnam(); local
256 if ((pw = getpwnam(user)) == NULL || strcmp(pw->pw_shell, UUCICO)) {
269 if (dologin(pw, sinp)) {
275 if (setgid(pw->pw_gid) == -1) {
284 if (initgroups(user, pw->pw_gid) == -1) {
297 if (setuid(pw->pw_uid) == -1) {
303 chdir(pw->pw_dir);
425 dologin(pw, sin)
426 struct passwd *pw;
[all...]
/illumos-gate/usr/src/cmd/boot/bootadm/
H A Dbootadm.c1776 struct passwd *pw; local
1809 if ((pw = getpwnam(DEFAULT_DEV_USER)) != NULL) {
1810 root_uid = pw->pw_uid;
/illumos-gate/usr/src/cmd/cdrw/
H A Dutil.c256 struct passwd *pw; local
259 pw = getpwuid(uid);
261 if (pw == NULL) {
270 if (chkauthattr(CDRW_AUTH, pw->pw_name) != 1) {
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/
H A Dfinger.c268 struct passwd *pw; local
298 if (unquick && (pw = getpwnam(name))) {
299 p->pwd = pwdcopy(pw);
324 struct passwd *pw; local
358 if ((pw = getpwnam(p->name)) != NULL)
359 p->pwd = pwdcopy(pw);
362 while ((pw = getpwent()) != NULL) {
366 if (strcmp(p->name, pw->pw_name) != 0 &&
367 !matchcmp(pw->pw_gecos, pw
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/
H A Dmain.c68 struct passwd *pw = NULL; local
225 pw = getpwnam(cp);
227 if (pw == NULL)
228 pw = getpwuid(getuid());
229 if (pw != NULL) {
231 (void) strcpy(home, pw->pw_dir);
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/nc/
H A Dsocks.c140 const char *pw; local
144 if ((pw = getpassphrase(prompt)) == NULL)
146 return (pw);
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dauth.c1268 struct passwd *pw = NULL; local
1333 pw = getpwnam(user);
1336 if (pw == NULL)
1353 pw->pw_passwd = spwd->sp_pwdp;
1360 if (pw->pw_passwd == NULL || strlen(pw->pw_passwd) < 2 ||
1361 strcmp(crypt(passwd, pw->pw_passwd), pw->pw_passwd) != 0)
1375 if (!use_pam && pw != (struct passwd *)NULL) {
1380 (void)lseek(fd, (off_t)(pw
2157 struct passwd *pw; local
[all...]
H A Dmain.c301 struct passwd *pw; local
534 pw = getpwuid(uid);
535 if (pw != NULL && pw->pw_name != NULL)
536 p = pw->pw_name;
H A Doptions.c568 struct passwd *pw; local
571 pw = getpwuid(getuid());
572 if (pw == NULL || (user = pw->pw_dir) == NULL || user[0] == '\0')
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/
H A Ddefs.h139 extern struct passwd *pw; /* pointer to static area used by getpwent */
H A Dexpand.c197 if (pw == NULL || strcmp(pw->pw_name, buf+1) != 0) {
198 if ((pw = getpwnam(buf+1)) == NULL) {
210 cp1 = pw->pw_dir;
665 if (pw == NULL || strcmp(pw->pw_name, file) != 0) {
666 if ((pw = getpwnam(file)) == NULL) {
675 s2 = pw->pw_dir;
H A Dmain.c51 struct passwd *pw; /* pointer to static area used by getpwent */ variable in typeref:struct:passwd
115 pw = getpwuid(getuid());
116 if (pw == NULL) {
120 strncpy(user, pw->pw_name, sizeof (user));
122 strncpy(homedir, pw->pw_dir, sizeof (homedir));
H A Dserver.c306 #define protoname() (pw ? pw->pw_name : user)
347 if (pw == NULL || pw->pw_uid != stb.st_uid)
348 if ((pw = getpwuid(stb.st_uid)) == NULL) {
351 pw = NULL;
1186 } else if (pw == NULL || strcmp(owner, pw->pw_name) != 0) {
1187 if ((pw = getpwnam(owner)) == NULL) {
1194 uid = pw
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/telnet/
H A Dcommands.c3312 struct passwd *pw; local
3316 ((pw = getpwnam(user)) != NULL) &&
3317 pw->pw_uid != getuid()) {
3318 if (pw = getpwuid(getuid()))
3319 user = pw->pw_name;
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/mdnsd/
H A DPosixDaemon.c208 const struct passwd *pw = getpwnam(MDNSD_USER); local
209 if (pw != NULL)
210 setuid(pw->pw_uid);
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/pppoe/
H A Doptions.c683 struct passwd *pw; local
687 if ((pw = getpwnam(str)) == NULL) {
695 uid = pw->pw_uid;
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/vrrpd/
H A Dvrrpd.c1229 struct passwd *pw; local
1252 if ((pw = getpwuid(uid)) == NULL) {
1257 success = (chkauthattr("solaris.network.vrrp", pw->pw_name) == 1);
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.rshd.c452 int pv[2], pw[2], px[2], cc; local
896 if (pipe(pw) < 0) {
923 (void) close(pw[1]);
933 FD_SET(pw[0], &readfrom);
940 /* read pw[0] (child stdout), write to f (net) */
946 ioctl(pw[0], FIONBIO, (char *)&one) == -1)
983 if (do_encrypt && FD_ISSET(pw[0], &ready)) {
985 cc = read(pw[0], buf, sizeof (buf));
988 FD_CLR(pw[0], &readfrom);
1026 (do_encrypt && FD_ISSET(pw[
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/wificonfig/
H A Dwificonfig.c1637 struct passwd *pw = NULL; local
1641 pw = getpwuid(getuid());
1642 if (pw == NULL)
1644 if (chkauthattr(p_auth_string[type], pw->pw_name) == 0) {
/illumos-gate/usr/src/cmd/cron/
H A Dat.c746 struct passwd *pw; local
748 pw = getpwuid(user);
749 if (pw == NULL) {
765 (!cron_admin(pw->pw_name))) {
770 if (cron_admin(pw->pw_name)) {
799 struct passwd *pw; local
853 ((pw = getpwuid(buf.st_uid)) != NULL)) {
857 pw->pw_name, dentry->d_name,
H A Dcron.c897 struct passwd *pw; local
907 if ((pw = getpwnam(name)) == NULL) {
928 if ((strcmp(pw->pw_shell, "") != 0) &&
929 (strcmp(pw->pw_shell, SHELL) != 0)) {
949 u->home = xmalloc(strlen(pw->pw_dir) + 1);
950 (void) strcpy(u->home, pw->pw_dir);
951 u->uid = pw->pw_uid;
952 u->gid = pw->pw_gid;
955 u->uid = pw->pw_uid;
956 u->gid = pw
994 struct passwd *pw; local
3196 struct passwd *pw; local
[all...]

Completed in 709 milliseconds

12345678