07-17-2013
One question per thread.
The answers to all of your questions are in the sh, ls/stat, and cat manual pages, respectively.
Regards,
Alister
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to write a shell script which will change the current shell (say from csh to bsh) and my Prompt (say my name) as desired.pls help (1 Reply)
Discussion started by: SHYAM
1 Replies
2. Solaris
Hi all,
I was wondering how to change the PS1 to my liking?
I tried changing it using PS1='my choice'
it worked but the subsequent terminals i open will not have it as the default PS1 ,how do i change it?
also i am running as super user, and i need to exec bash, to get the bash environment...... (4 Replies)
Discussion started by: wrapster
4 Replies
3. UNIX for Dummies Questions & Answers
I have a Sun OS and at the moment the prompt is # and i want to change it to:
root@server #
can you help me please. thanks in advance. (4 Replies)
Discussion started by: drogram
4 Replies
4. UNIX for Dummies Questions & Answers
Hello all. I was wondering if there is a way to change the root prompt.
I am using Solaris 10 and would like to have the root prompt display the current directory along with 'SU' to indicate root status.
What I have tried so far:
/etc/passwd
changed the root shell to korn with... (10 Replies)
Discussion started by: RobertSubnet
10 Replies
5. UNIX for Dummies Questions & Answers
Hi guys,
I got these 3 servers: a, b and c which I ssh from a to b/c.
a:$ ssh userid@b
Password:
a:$ ssh userid@c
userid@c's password:
Notice that the password prompt is different (highlighted in bold) on both servers even though their SUN Solaris version the same, OpenSSH version... (0 Replies)
Discussion started by: DrivesMeCrazy
0 Replies
6. Shell Programming and Scripting
It looks like,
user@hostname:/auto/home3/user$
Desired,
user@hostname$
I added following line in .bashrc, but still its same.
export PS1=" $ "
Please help me :confused: (13 Replies)
Discussion started by: admax
13 Replies
7. UNIX for Advanced & Expert Users
Hello,
I installed Kerberos on Red Hat. My testing tool checks for the prompt when user log-in. Unfortunately I don't have access to that testing tool so I have to fix somehow the prompt.
My testing tool expects this format:
login: XYZ
Password: When I installed Kerberos I have this format:... (1 Reply)
Discussion started by: susja
1 Replies
8. Red Hat
Hello,
I installed Kerberos on Red Hat. My testing tool checks for the prompt when user log-in. Unfortunately I don't have access to that testing tool so I have to fix somehow the prompt.
My testing tool expects this format:
login: XYZ
Password:
When I installed Kerberos I have this format:... (1 Reply)
Discussion started by: susja
1 Replies
9. Shell Programming and Scripting
I am new to to unix and I want to make my own basic shell. What is the code I can use to change the unix cmd console display? For example my unix display prompt says MyCompterName~, I want it to say WhatEverMan~ (3 Replies)
Discussion started by: megaearth77
3 Replies
10. Solaris
Hi,
on sunfire v890 unable to move from rsc prompt to ok prompt, i have executed the command break. (9 Replies)
Discussion started by: manoj.solaris
9 Replies
LEARN ABOUT HPUX
pam_get_user
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)