Hiding password in unix

Hi,
Could anyone tell me what is the unix command that is used for hiding the password's which is similar to following oracle code.
===============================================
accept uname prompt 'Enter username====>'
accept password prompt 'Enter passwd===>'hide
connect &username/&passwd
===============================================
I need the similar type of functionality(hide) in unix.
Regards,
Nagarjun.

I need the similar type of functionality(hide) in unix.If I understand your need, then you can use "stty -echo". See this example :
[ora102 work db102]$ cat read_pass.sh
echo -n "Password : "
read PASS
echo $PASS >/tmp/pass.txt
[ora102 work db102]$ ./read_pass.sh
Password : mypass
[ora102 work db102]$ cat /tmp/pass.txt
mypass
[ora102 work db102]$                        Now I use stty -echo
[ora102 work db102]$ cat read_pass.sh
echo -n "Password : "
stty -echo
read PASS
stty echo; echo
echo $PASS >/tmp/pass.txt
[ora102 work db102]$ ./read_pass.sh
Password :
[ora102 work db102]$ cat /tmp/pass.txt
mypass
[ora102 work db102]$                                

Similar Messages

  • Is there a way to change the VNC password thru unix command in ARD2?

    In a local network, I get access denied errors from macs that have the vnc password different than the Administrative login user password. I needed to change the Admistrator password which I did thru the Unix command in ARD2.
    Now.
    Is there a way to change the VNC password thru unix command in ARD2?
    Example:
    remote computer setup
    Panther 10.3.9
    vnc password - gopher
    user ID - testARD with admin rights
    user password - backdoor
    ARD2 Computer setup
    10.4.10
    login ID - testARD
    password - backdoor
    I get the blue icon but get an 'access denied' error.
    I change the password from backdoor to gopher.
    I get the red with dash icon but, can get access to the computer.
    What is going on? Is ARD2 using the VNC resource instead of ARDs resources?

    A quick search of Google finds this <http://www.macgeekery.com/tips/cli/settingremote_desktops_vnc_password_interminal>. I have not tested this myself.
    bill

  • Hiding password in the script

    Hi
    Is there a way of hiding password text in the script? If possible please provide different ways of doing it and with examples. Thanks!

    You can save encrypted data wherever you like, including within your script file (though there are certainly advantages to having it separate from the code.) One easy example of this is with the ConvertFrom-SecureString and ConvertTo-SecureString cmdlets:
    # At your console:
    $secret = Read-Host -AsSecureString "Enter password"
    $secret | ConvertFrom-SecureString
    # copy and paste the data that this command produces, and
    # place it into your script file (or a data file, whatever)
    # In your script:
    $encryptedData = '<copied from ConvertFrom-SecureString output>'
    $secureString = $encryptedData | ConvertTo-SecureString
    When you call ConvertFrom-SecureString the way I did in this example, PowerShell uses the Windows Data Protection API (DPAPI) to perform the encryption.  That's the scenario you described, where you're the only person who can decrypt the data, and only
    on your own computer.  In the examples code I linked to earlier, I show some alternatives using RSA certificates to encrypt data in a way that is just as secure, but can be shared across multiple users / computers.
    wow.. a cool trick.. :) Thanks David for sharing this idea.
    so for secure string it will only work on the machine where it was generated?
    Every second counts..make use of it. Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
    IT Stuff Quick Bytes

  • Can I change password in Unix with JAAS??

    Can I change password in Unix with JAAS??
    Thanks
    Lu

    JAAS - change password ?? why would you use JAAS to change your password. If you really want to you could possibly write code to make a system call to change the password. And I dont think that would be easy
    Vijay

  • Hiding Password in OIM user form

    Hi All,
    I am trying to Hide the userID and Password from OIM user (create user) form as I am using entity adaptor to generate these and I dont want to enter vague values. I am successful in hiding User ID field by modifying formMetaData.xml, however, I am not able to find anything for Password/Confirm Password fields.
    Please suggest.

    For each attribute reference, you can specify whether the field is:
    Viewable—By adding the attribute reference to the relevant section
    Editable—By specifying a value of TRUE or FALSE for the editable parameter
    Optional—By specifying a value of TRUE or FALSE for the optional parameter

  • Hiding password on the connection string

    Hi,
    Am trying to see if it is possible to hide password on the connection string when connecting from the application server. I can see one way of doing this, that is to use Oracle's OS Authentication. But because my Oracle is installed on Unix and my application server is on Windows 2000. I am not sure if this is possible?
    Has any done something similar before?
    Thanks

    The problem with using a single sign-in product like Kerberos is I believe the Advanced Security Option is required. The ASO is an additional license fee.
    Having the password in a file does not have to be a major security problem. Have a set of common logon modules created, one for each language in use, and have the module contain the logic to fetch the key.
    This way the file name and path to the key is not obvious. Then have the premissions set so that only the ID that runs the production batch can read the file. Neither the customers or the developers should have access to that ID.
    Unfortunately while this works for works batch ran out of products like Unicenter and application server based applications this technique does not work very well for cleint server applications. Client server based applications really need every user to have to sign-in with their own id.
    If every user does not have their own id and it is undesirable to hard code the userid/password into the application then you are back to getting the password from an unsecured external source. Having the common module to do the fetching at least makes someone work to find the ID/password. Any Id used in this manner should have limited access in the database which means you might have two, three, or more such ID's setup but with each having access to the tables behind only specific applications.
    HTH -- Mark D Powell --

  • Hide oracle password on Unix command line call?

    Does anyone know whether you can hide the password for a command line call to rwrun60 under Unix? For other Oracle products like sqlplus you can hide the password by supplying it using the redirection operator. i.e. sqlplus userid @script &lt;&lt;EOD and then put the password or password@sid on the next line and then EOD on the 3rd line to end the redirection. This virtually hides the password from anyone able to look at processes on the system. Can this also be done for rwrun60? If you just put the userid after userid= will reports prompt you for a password?

    Take a look at http://java.sun.com/features/2002/09/pword_mask.html.
    Hope this helps,

  • Java networking from windows to password protected unix server

    How to execute unix shell scripts on a unix box which is password protected, from a java application running on windows? help for the solution

    You need to know the password. Or set up ssh to use client certificates (read the manual page & google).

  • Hiding password in debug

    Hi folks !
    I have a question here, how could hide a parameter typed in a password, so this is not visible in debug mode?
    Is this possible?
    Thanks for help.

    Hi Martin,
    Thanks for your explanation.
    I imagined it was possible to create a validation when it was typed value (As i done in Java with key press event)
    Thanks anyway.

  • Hiding Password in URL

    I have the url's to the reports embedded in our entranet web page. The problem is anyone can do a view source and see passwords. How can i hide those userid's and passwords??

    If hexadecimal encription of url is good enough protection for your business you can apply it. If it isn't, you have to use the RUN_REPORT_OBJECT built-in that is used to call reports from the forms. URL is hidden because passing usernames and password is implicit between forms and reports. If you are interested in details you can read the white papers on forms-reports integration.
    Ask again if you don't understand something, I will be happy to answer because I spent a lot of time on this problem. Regards,
    er.

  • Hiding password in wicd

    Hi,
    I recently installed wicd to manage wifi connections. It bothered me that the password becomes visible after clicking into the password field (properties window). Since i didn't found anything in in the wiki and the forum i searched a little further and found this post which helped me.
    Now I would wish to know if I'm the only one who isn't happy with the password visible. Maybe a workaround like in the linked post could be added to the wicd wiki entry if there are more people who bother about this.
    Cheers

    I for one don't care and find it very convenient to look it up whenever a guest asks me for my router's key.
    Note that the workaround above only works with the GTK frontend. A malicious user could still view the network key with wicd-curses. This can be patched too but then again you would need to change this on every Wicd upgrade. Is this worth the hassle? You decide.

  • About hiding password in monitor

    Hi All¨
    I am sending a user password from sap system to a third party system via XI , I do not want anyone to se the password in the monitor , how can I hide it.
    thanks in advance.

    Hi,
    You could use the SAML based Principal propagation concept for this kind of activity.
    But you need to use either RFC, proxy or SOAP adapter only.
    It will create SAP Assertion ticket as per the User ID and Password the login User ID and Password that will be of SAP side.
    Principal propagation means the ability to forward the user context of a message unchanged from the sender to the receiver.
    the message is executed under the same user in all participating messaging components.
    In such ..
    Users to be propagated must be maintained in the messaging components with the same name as in the sender system. For security reasons, we recommend that you create these users as users of type system and not as dialog users. These users must be assigned the role SAP_XI_APPL_SERV_USER.
    If you use access control lists (ACLs) for messages with specified sender systems or interfaces (see SAP Note 852237), these ACLs must include propagated application users if principal propagation is applied.
    I hope the below links are useful..
    refer
    Principal Propagation in SAP XI
    /people/alexander.bundschuh/blog/2007/01/16/principal-propagation-in-sap-xi
    Principal Propagation with SAP NetWeaver Process Integration 7.1
    /people/alexander.bundschuh/blog/2007/08/06/principal-propagation-with-sap-netweaver-process-integration-71
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/808d3048-638c-2a10-35a6-faa48e50ad59
    http://help.sap.com/saphelp_nw04/helpdata/en/45/0f16bef65c7249e10000000a155369/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/45/345d11a7993446e10000000a155369/frameset.htm
    /people/alexander.bundschuh/blog/2007/08/06/principal-propagation-with-sap-netweaver-process-integration-71
    Thanks
    Swarup
    Edited by: Swarup Sawant on Apr 9, 2008 12:37 PM
    Edited by: Swarup Sawant on Apr 9, 2008 12:38 PM

  • Hiding password in command line

    Hi,
    I am really new to java. Need some way to not display password on screen as the user enters it. Can it be done without creating text field?
    thanx
    Divya

    This can't be done on the console in java. You need to use a GUI or JNI. Check out the last post from armalcolm on this thread for the JNI solution.
    http://forum.java.sun.com/thread.jsp?forum=4&thread=195678

  • Hiding passwords behind **** in command line.

    Hi,
    I am coding a program that needs a password, and I want to hide it but I just can't find the proper way. I've tried jline to no avail, I couldn't get it to work. Any ideas on ways to hide a password behind ****?
    Thanks, bto.

    Check out the console class http://java.sun.com/javase/6/docs/api/java/io/Console.html#readPassword()
    I've not used it but readPassword should do what you want.

  • ABAP Debugger: hiding password field value

    Hi to all !!
    I'm using a screen with password type field. Is there a way to prevent to see what this field contains in debugger?? I don't want smart users with ABAP skills to play with it and see the password.
    Thanks,
    Yuval at Cellcom.

    Hi Yuval,
    If your user could debug the screen, he will show his password. Not the password of other users.
    Frédéric

Maybe you are looking for

  • Using WE to display a custom box

    I have a report that I want the user to be able to sort or filter by clicking on a col header. When the user clicks on a col header, I want a small box to appear just below the col header with radio buttons to choose Asc or Desc and a drop-down list

  • Universal Music Group audible watermarking on digital downloads?

    Hello, I wanted to take a moment to praise Apple for being so patient and persistent around a sound quality issue I've been noticing for months with certain of my digital purchases from the iTunes Music Store. Start of story: I noticed that certain o

  • Can't edit html snippet

    I have numerous html snippets that work fine. However I can't edit them any more. When I click on the snippet in iWeb I used to get a window with the snippet code to edit. That doesn't happen any more. Same thing for new html snippets: No edit window

  • Maintaining sales enquiry

    what are the essential steps for maintaining sales inquiry. i use T.C - VA11, after filing all details it flashes a error regarding access sequence. what i do now, please suggest................ thanks in advance

  • User exit for 0INFOPROV with InfoCube in BWA

    Hello Everyone, We recently added few InfoCubes into BWA and due to the reporting requirements and the way the reports were designed we had to create a user exit for 0INFOPROV in order to populate the InfoCube name based on the selection criteria for