Unix and Linux Discussions Tagged with prompt |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
13 |
5,260 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
1,364 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
2,789 |
UNIX for Beginners Questions & Answers |
|
|
|
13 |
10,897 |
Shell Programming and Scripting |
|
|
|
0 |
10,605 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
2,219 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
11,848 |
Shell Programming and Scripting |
|
|
|
2 |
6,157 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,423 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,969 |
Shell Programming and Scripting |
|
|
|
3 |
7,587 |
Shell Programming and Scripting |
|
|
|
1 |
2,550 |
UNIX for Dummies Questions & Answers |
|
|
|
7 |
10,674 |
Red Hat |
|
|
|
1 |
5,325 |
Shell Programming and Scripting |
|
|
|
1 |
5,385 |
UNIX for Dummies Questions & Answers |
|
|
|
8 |
16,958 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
4,838 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
3,106 |
Shell Programming and Scripting |
|
|
|
2 |
26,315 |
Shell Programming and Scripting |
|
|
|
2 |
6,815 |
AIX |
|
|
|
5 |
5,152 |
Solaris |
|
|
|
9 |
36,431 |
Solaris |
|
|
|
3 |
2,318 |
Solaris |
|
|
|
0 |
2,824 |
UNIX for Dummies Questions & Answers |
|
|
|
9 |
14,845 |
Solaris |
|
|
|
2 |
12,456 |
Solaris |
|
|
|
4 |
38,394 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,299 |
Shell Programming and Scripting |
|
|
|
7 |
8,705 |
Solaris |
|
|
|
0 |
2,689 |
Solaris |
|
|
|
3 |
14,766 |
Solaris |
|
|
|
7 |
19,995 |
Shell Programming and Scripting |
|
|
|
6 |
3,459 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
4,197 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
3,266 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
3,683 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
3,011 |
AIX |
|
|
|
14 |
49,232 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,203 |
UNIX for Dummies Questions & Answers |
|
|
|
20 |
17,839 |
UNIX for Dummies Questions & Answers |
pam_get_user(3) Library Functions Manual pam_get_user(3)
NAME
pam_get_user - PAM routine to retrieve user name.
SYNOPSIS
[ flag ... ] file ... [ library ... ]
DESCRIPTION
is used by PAM service modules to retrieve the current user name from the PAM handle. If the user name has not been set, via or then the
PAM conversation function will be used to prompt the user for the user name with the string "prompt". If prompt is NULL, then is called
and the value of is used for prompting. If the value of is NULL, the following default prompt is used:
After the user name is gathered by the conversation function, is called to set the value of
By convention, applications that need to prompt for a user name should call and set the value of before calling The service module's func-
tion will then call to prompt for the user name. Note that certain PAM service modules (such as a smart card module) may override the value
of and pass in their own prompt.
Applications that call multiple times should set the value of to NULL with before calling if they want the user to be prompted for a new
user name each time.
The value of user retrieved by should not be modified or freed. The item will be released by
APPLICATION USAGE
Refer to pam(3) for information on thread-safety of PAM interfaces.
RETURN VALUES
Upon success, returns otherwise it returns an error code. Refer to pam(3) for information on error related return values.
SEE ALSO
pam(3), pam_start(3), pam_authenticate(3), pam_get_item(3), pam_set_item(3), pam_sm(3), pam_sm_authenticate(3), pam_end(3).
pam_get_user(3)