Sponsored Content
Top Forums UNIX for Dummies Questions & Answers changing login prompt on redhat Post 38766 by juilan on Friday 25th of July 2003 07:37:49 AM
Old 07-25-2003
changing login prompt on redhat

Hi...

Can anyone help! I am in dire need to change the "login:" prompt to "username:" any ideas?

Thanks in advance Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Changing Unix Prompt

Me again, What is the difficulty to display the full directory Path before my prompt command ? (like DOS) I'm using Solaris 8 + Bash Thanks again Fabien (4 Replies)
Discussion started by: unclefab
4 Replies

2. UNIX for Dummies Questions & Answers

Changing the prompt

Phew simple question, I want to display the my directory path in prompt. Did the following in .profile PS1=`pwd` export PS! Worked, but it always points to HOME directory. When i do a cd, it doesn't change. What am i missing. Thanks (7 Replies)
Discussion started by: vibhor_agarwali
7 Replies

3. UNIX for Dummies Questions & Answers

Changing Prompt in sh

I know no one has ever asked this before {not :D } but I am trying to set the prompt in the .profile under sh. I have tried everything I have seen on the web in regards to this, with no success. The OS is SCO Unixware 7.1.1, {not by my choice}. All the examples I see seem to be for ksh, which is... (1 Reply)
Discussion started by: jcc5169
1 Replies

4. Solaris

Changing prompt

I currently have this as my prompt when I log in (shell is sh): PS1="`hostname ` # " My question is how do I add the current directory to that prompt? Is there a way? Thanks. (5 Replies)
Discussion started by: kjbaumann
5 Replies

5. Shell Programming and Scripting

problem in changing prompt

hi all, please tell me why this 2 liner script is not working!! #!/bin/bash oldps1="$PS1" PS1="myprompt>" but when type this in terminal it works!! (7 Replies)
Discussion started by: tprayush
7 Replies

6. UNIX for Advanced & Expert Users

Changing the password prompt

Is there any way I can change the prompt which asks for the password on a UNIX system? e.g. When I login using Telnet instead of "Password" I should get "Correct Password". Thanks, Vineet (3 Replies)
Discussion started by: vineetd
3 Replies

7. UNIX for Dummies Questions & Answers

Changing ubuntu prompt

Currently, when I cd to a directory I get the directory path in the command prompt, making it very long. I would like to change it so the path is not displayed. If I am in directory ~/tatsh/hstmy/test, I just want my prompt to be the last directory name as shown just below ---------- Post... (1 Reply)
Discussion started by: kristinu
1 Replies

8. Shell Programming and Scripting

passing login details to htaccess login prompt

Hi, How i can pass the login details to the URL which is password protected with the htaccess using command line or script (perl,or shell,or php). Any help or hint appreciated. Thanks, SJ (4 Replies)
Discussion started by: SilvesterJ
4 Replies

9. Shell Programming and Scripting

Changing default prompt

Hi, i was wondering if it is possible to change the default prompt for the shells that are availble on your system? For example, i want to change the prompt for the C shell from % to something like ( or ). Thanks, Nav. (7 Replies)
Discussion started by: Navs_
7 Replies

10. Shell Programming and Scripting

Changing the prompt in CSH

Need assistance in changing prompt . Trying to change prompt in csh,tcsh shell . Below are the commands i tried in .cshrc and sourcing this files. set prompt = "$user@`uname -n` : ${cwd}> " #above commands works for username and hostname but cwd doesnt change directories set... (16 Replies)
Discussion started by: ajayram_arya
16 Replies
PAM_GET_USER(3) 						 Linux-PAM Manual						   PAM_GET_USER(3)

NAME
pam_get_user - get user name SYNOPSIS
#include <security/pam_modules.h> int pam_get_user(const pam_handle_t *pamh, const char **user, const char *prompt); DESCRIPTION
The pam_get_user function returns the name of the user specified by pam_start(3). If no user was specified it what pam_get_item (pamh, PAM_USER, ... ); would have returned. If this is NULL it obtains the username via the pam_conv(3) mechanism, it prompts the user with the first non-NULL string in the following list: o The prompt argument passed to the function. o What is returned by pam_get_item (pamh, PAM_USER_PROMPT, ... ); o The default prompt: "login: " By whatever means the username is obtained, a pointer to it is returned as the contents of *user. Note, this memory should not be free()'d or modified by the module. This function sets the PAM_USER item associated with the pam_set_item(3) and pam_get_item(3) functions. RETURN VALUES
PAM_SUCCESS User name was successful retrieved. PAM_SYSTEM_ERR A NULL pointer was submitted. PAM_CONV_ERR The conversation method supplied by the application failed to obtain the username. SEE ALSO
pam_end(3), pam_get_item(3), pam_set_item(3), pam_strerror(3) Linux-PAM Manual 06/04/2011 PAM_GET_USER(3)
All times are GMT -4. The time now is 09:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy