![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Hide Password | whatisthis | Shell Programming and Scripting | 4 | 07-21-2008 09:59 AM |
| Want to hide password | arpitk | Shell Programming and Scripting | 1 | 09-29-2006 09:42 AM |
| Hide oracle password on unix process list | acheepi | Shell Programming and Scripting | 3 | 10-06-2005 10:25 PM |
| How to hide password on Linux? | nir_s | Shell Programming and Scripting | 2 | 02-09-2005 12:24 PM |
| hide password typing | ivancheung | High Level Programming | 2 | 09-30-2004 02:05 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
How Do I Hide the Password in a Script
Hi,
I am writing a UNIX .ksh script and need to send the login password of the login id that is executing the script to a command that I am executing in the script. I don't want that password to be seen by anyone except whoever is executing the script. Does anyone know how I can accomplish this? Thanks SD |
|
||||
|
It is a command that I am not sure is UNIX or home-grown. It is "become" which lets a user become another user (like su). In my script I have a line:
>become userid I need to send the become command the user id of the user who is executing the script because, when run on the command line, the "become" command prompts for the user's password who is running the script. SD |
|
||||
|
Quote:
in your case I would rather use sudo and specify the "su" command for use without a password |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|