Unix and Linux Discussions Tagged with uid |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
0 |
5,042 |
Web Development |
|
|
|
5 |
1,556 |
Shell Programming and Scripting |
|
|
|
7 |
29,468 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
5,239 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
15,494 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
59,523 |
UNIX for Advanced & Expert Users |
|
|
|
7 |
142,982 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
2,593 |
UNIX for Advanced & Expert Users |
|
|
|
9 |
19,569 |
Solaris |
|
|
|
6 |
11,718 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
15,871 |
Programming |
|
|
|
1 |
6,604 |
AIX |
|
|
|
10 |
32,614 |
Shell Programming and Scripting |
|
|
|
3 |
4,683 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
13,972 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
14,803 |
Programming |
|
|
|
1 |
6,959 |
Solaris |
|
|
|
1 |
3,400 |
AIX |
|
|
|
2 |
8,372 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
11,896 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
72,028 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
11,163 |
Cybersecurity |
|
|
|
16 |
16,768 |
Programming |
|
|
|
10 |
5,520 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
9,060 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
30,500 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
4,855 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
7,647 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
13,330 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
8,601 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
5,883 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
6,165 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
6,923 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
4,304 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
8,821 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
12,381 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
4,118 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
2,511 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
5,010 |
Cybersecurity |
|
|
|
1 |
18,898 |
UNIX for Dummies Questions & Answers |
getpw(3C) Standard C Library Functions getpw(3C)
NAME
getpw - get passwd entry from UID
SYNOPSIS
#include <stdlib.h>
int getpw(uid_t uid, char *buf);
DESCRIPTION
The getpw() function searches the user data base for a user id number that equals uid, copies the line of the password file in which uid
was found into the array pointed to by buf, and returns 0. getpw() returns non-zero if uid cannot be found.
USAGE
This function is included only for compatibility with prior systems and should not be used; the functions described on the getpwnam(3C)
manual page should be used instead.
If the /etc/passwd and the /etc/group files have a plus sign (+) for the NIS entry, then getpwent() and getgrent() will not return NULL
when the end of file is reached. See getpwnam(3C).
RETURN VALUES
The getpw() function returns non-zero on error.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |Safe |
+-----------------------------+-----------------------------+
SEE ALSO
getpwnam(3C), passwd(4), attributes(5)
SunOS 5.11 29 Dec 1996 getpw(3C)