Hide password

Hi experts,
I am working on AIX 5L, oracle database 10g on it.
we have some shell script running, this script connect with sql internally and fetch data from database and store output to a log file (output.log)
problem is those script contains system/apps password, which we need to protect to see....
#!/bin/sh
. $HOME/.profile
SID=TEST
sqlplus -s apps/xxxxxxx@TEST << EOF > /d01/oracle/output.log
select file_name, bytes/1024/1024 from dba_data_files;
exit;
EOF
please suggest a way to secure apps password.
Thanks in ADV!!!

Oracle provides the option to use Operating System based authentication also for regular users. For this it is necessary to create an Oracle user with the same name as the user OS login account, but with a prefix according to the OS_AUTHENT_PREFIX init parameter, which is OPS$ by default.
SQL> create user OPS$SCOTT identified by "tiger";
Login as user SCOTT
sqlplus /
same as:
sqlplus 'ops$scott/tiger'
Note: If the OS_AUTHENT_PREFIX gets changed to '', null, then the prefix for Oracle account names is no longer needed for OS authentication to work, but all accounts with the previous prefix cannot access Oracle anymore. When the identification has to be done in the database, do not create Oracle user accounts with the OS_AUTHENT_PREFIX. The init parameter REMOTE_OS_AUTHENT is set to FALSE by default; so remote users will be unable to connect without a password.

Similar Messages

  • I need to have my macbook pro repaired how can I hide passwords and banking info?

    I need to have my macbook pro repaired how can I hide passwords and banking info?

    Create a new admin account named repair and only give them the password for that account. Alternately you could back up or clone your system, erase the hard drive and then reinstall OS X with one admin account that has no personal information.

  • I can no longer hide passwords under toolbar/options. What to do?

    I can no longer hide my passwords - under toolbar/options/security. They continually all show up and I'm afraid someone else may be able to see them as well. The option to hide passwords no longer appears.

    Are you using a master password?
    * https://support.mozilla.org/kb/Protecting+stored+passwords+using+a+master+password

  • How to show/hide passwords in outlook

    I can show/hide passwords in yahoo but not in outlook. How do I show in outlook

    I'm guessing you can press the little icon to the right of the password field to see the password. I'm using Ubuntu so I don't know what the icon looks like. It should be like a black WiFi signal or something. You should be able to click/hold that to see the password.
    Were you able to show that password before or is this the first time you've tried? You can try to clear the cookies for outlook.com to see if that helps but as far as I know, Windows 8 should be able to show/hide the password.

  • Hide password on command line

    Dear everybody,
    I would like to find a way to hide password on command line when user type password. There is a way that use another thread to output '\b*'. However, it has some bugs. And I can't use Console class which has a method to hide password. Because my JDK is 1.5 and I can't change it because of some reasons.
    Does anybody know a way to hide password on command line?
    Thanks very much!

    Because my JDK is 1.5 and I can't change it because of some reasons.Look how sweet Console is in 1.6:
    import java.io.Console;
    public class ConsoleExample {
        public static void main(String[] args) {
            Console console = System.console();
            char[] password = console.readPassword("Please enter password:");
            //don't do this: passwords shouldn't be stringified
            String s = new String(password);
            console.format("password =[%s]%n", s);
    }Find a way to install 1.6! We believe in you!

  • Encrypt or hide password in sql script from shell

    Hello
    Have I some possibility to encrypt or hide password in this shell script :
    $ORACLE_HOME/bin/sqlplus -S /nolog<<EOF
    connect user/passw3@tns
    select * from dual;
    exit;
    EOF
    thank You
    Brano

    Or do not use login userid/pw at all. Instead use client authentication (externally identified account).
    CREATE USER ops$me identified externally;
    then as me on the host,
    $ORACLE_HOME/bin/sqlplus / >> /dev/null <<EOF1
    select * from dual;
    exit;
    EOF1
    That way your password never has to be stored or passed. Oracle knows that you have been authenticated by the server.

  • Hide password and confirm password feild.

    I am generating random password through pre-insert adapter, so i want to hide password and confirm password feild
    from user creation page. I have already able to hide feilds like start date and all.

    *<!--*
    <tr>
    <td nowrap class="ControlLabel">
    <bean:message key="createuser.label.password"/>
    </td>
    <td align="right">
    <span class="Asterisk"><bean:message bundle="xlDefaultAdmin" key="global.label.asterisk"/></span>
    </td>
    <td>
    <html:password name="manageUserForm" property="password"
    redisplay="false" styleClass="Fields" tabindex="1"/>
    </td>
    </tr>
    <tr>
    <td nowrap class="ControlLabel">
    <bean:message key="createuser.label.confirmpassword"/>
    </td>
    <td align="right">
    <span class="Asterisk"><bean:message bundle="xlDefaultAdmin" key="global.label.asterisk"/></span>
    </td>
    <td>
    <html:password name="manageUserForm" property="confirmPassword"
    redisplay="false" styleClass="Fields" tabindex="2"/>
    </td>
    </tr> -->

  • How to Hide Password in Member List

    Hi,
    I have this set up:
    instead of the password being shown, I have previously just added ******* instead of the dynamic text binding.
    But i want to be able to see how many characters long the password is. With thte solution above, all passwords had 8 asterisks. I need to be able to see how many characters the password has, without seeing the actuall characters.
    I still need the dynamic text field, but how would I cover this up? (Some sites have the option to hide/reveal the password). I just want it hidden all the time.
    Any help would be very much appreciated!

    This function will replace your password string with the same amount of '*'
    public function ConvertoStar($string)
    $len = strlen($string); $star = "";
    for ( $s=1; $s <= $len; $s++ ) {
      $star .= "*"; 
    return $star;
    echo ConvertoStar($yourvalue)
    But your better off hashing your passwords though - PHP: Password Hashing - Manual

  • How to Hide passwords in the security window?

    I went to the security window to find a password. I clicked to unhide and display all the passwords. Now I want to hide them all again and it will not hide them

    Use a master password.
    *https://support.mozilla.com/kb/Protecting+stored+passwords+using+a+master+password

  • Hidding Password in JSP page

    Hi all,
    I m using the password value in the jsp page as ahidden variable which is thereafter used in the java script. but the problem is that while in view mode of the jsp page if u right click and view the source the password is getting displayed. which should not happen actually. can anybody help me regarding how to hide the password from the public view. i m using the following code for getting the password value.
    <input type="hidden" name="ftpPwd" value='<%=request.getAttribute("ftpPwd") %>' />
    Thanks in Advance
    Nandini

    Yes, I get that. But that's how it works, you can't change that. The best you can do is work with a hash instead of the plaintext password; but that's besides the point.
    What I'm asking is what do you want to achieve? If you explain that then maybe someone can give you a better way to do it.
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://www.catb.org/~esr/faqs/smart-questions.html
    ----------------------------------------------------------------

  • How to hide password when run proc

    hi,
    my database is on oracle 10g, in my application i run proc from remote computer where i hav to write hole the path like
    @server.exe username/password@sid price
    so is there any solution by i can hide my password & no one can know my passowrd where he can see this syntax.
    thxs

    You can put the password string in a file and use that file.

  • How to hide password in EJB client

    I have created an EJB client and it's initial context code is as below.
    Hashtable env = new Hashtable();
    env.put( Context.INITIAL_CONTEXT_FACTORY, "oracle.j2ee.naming.ApplicationClientInitialContextFactory" );
    env.put( Context.SECURITY_PRINCIPAL, "scott" );
    env.put( Context.SECURITY_CREDENTIALS, "welcome1" );
    env.put(Context.PROVIDER_URL, "ormi://132.100.5.248:23791/ejbhr");
    The password is shown within the code. Please advise how I can hide this password, thanks.
    SK

    Hi Mike,
    Thanks for your information. From the documentation, password indirection applies to data-sources.xml, ra.xml, rmi.xml, jms.xml. My case is that the password is contained inside a Java program. Would you please provide me an example on how to apply password indirection for EJB client Java program? Much thanks.
    SK

  • How to hide password in forms config file

    Hi
    Is there a way to hide the password in the forms config file?
    Regards,
    Néstor Boscán

    Hi,
    you cannot. For a future version we are condering password indirection, which is a feature of OC4J. However, until then the option to use is to implement Single Sign-On with Forms as this storeds username and password in OID
    Frank

  • [solved] weechat How *Not* To Hide Password in Input Bar.

    I am trying to setup weechat with znc. I need to enter the -password option in the input bar. Since it's going to be long as in username/network:password I don't want weechat to hide what I am typing by displaying "*", so I can easily spot and correct typos. There must be an option to stop weechat trying to obscure my password, but I can't find it. Can someone please enlighten me?
    Last edited by geekinthesticks (2014-06-21 08:43:25)

    I suggest you install the `iset' plugin, as it's very helpful in situations like this. As far as i know, the only setting that covers the `hide the password' issue, is `irc.look.nicks_hide_password' and its default value is `nickserv', so it should hide the password when identifying on nickserv. Still, if you're concerned about typos, you should add the server with a fake password as `aaaaaa' then use iset to change the password, as it is in plain text (or just do `/set irc.server.<your znc server>.password username/network:password').
    Last edited by psycho (2014-06-20 19:37:06)

  • Hide Password in FTP_CONNCET FM

    Hi,
    In FTP_CONNECT we need to pass user name and password. Here if we pass hard coded password then that thing will be open to all. So my requirement is u201CHow to hide or encrypt FTP user password from user for security reasons?u201D Here I also want to mention that the source code or program name can be hiding from user by setting the tick mark in EDIT LOCK check box in attribute of se38 against the program. But it is not possible to stop access to my Z program source code from those users who are developer or having access to our development or quality server. My sample code is like given below
    CALL FUNCTION 'FTP_CONNECT'
         EXPORTING
    *-- Your SAP-UNIX FTP user name (case sensitive)
           USER            = 'sap1'
           PASSWORD        = u2018test123u2019
    *-- Your SAP-UNIX server host name (case sensitive)
           HOST            = '10.10.1.44'
           RFC_DESTINATION = 'SAPFTP'
         IMPORTING
           HANDLE          = MI_HANDLE
         EXCEPTIONS
           NOT_CONNECTED   = 1
           OTHERS          = 2
    regards,
    -Pk

    Thank you every one for your quick and prompt reply. But I think I need to explain further my requirement. I have developed one Z report program to copy file from ftp location to another server. My Z program will run at back ground , means there is no human intervention. So user can not feed his/her password in a screen.  Again 'AB_RFC_X_SCRAMBLE_STRING' is used to send  an encrypted password to 'FTP_CONNECT' which is requirement or must for 'FTP_CONNECT' FM. If you look at my code given below before using 'AB_RFC_X_SCRAMBLE_STRING' I have to pass password in MC_PASSWORD.
    As suggested by ANUJ SRIVASTAVA to store password in a Ztable ,  but there also if we able to store the password in encrypted form and same can be decrypt at the time of 'FTP_CONNECT u2018 then only it will full fill my purpose.
    So how to hide the password in my source code or store enrypted password in Z table and decrypt the same?
    MY ABAP Code:
    START-OF-SELECTION.
    *-- Your SAP-UNIX FTP password (case sensitive)
    MC_PASSWORD = u2018test'.
    DESCRIBE FIELD MC_PASSWORD LENGTH MI_PWD_LEN IN CHARACTER MODE.
    *-- FTP_CONNECT requires an encrypted password to work
    CALL 'AB_RFC_X_SCRAMBLE_STRING'
         ID 'SOURCE' FIELD MC_PASSWORD ID 'KEY' FIELD MI_KEY
         ID 'SCR' FIELD 'X' ID 'DESTINATION' FIELD MC_PASSWORD
         ID 'DSTLEN' FIELD MI_PWD_LEN.
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
        EXPORTING
          text = 'Connect to FTP Server'.
    CALL FUNCTION 'FTP_CONNECT'
         EXPORTING
    *-- Your SAP-UNIX FTP user name (case sensitive)
           USER            = 'userid'
           PASSWORD        = MC_PASSWORD
    *-- Your SAP-UNIX server host name (case sensitive)
           HOST            = 'unix-host'
           RFC_DESTINATION = 'SAPFTP'
         IMPORTING
           HANDLE          = MI_HANDLE
         EXCEPTIONS
           NOT_CONNECTED   = 1
           OTHERS          = 2.
    with warm regards,
    -PK

  • Hide password from exposing on the command line(ps)

    Oracle Go to http://www.uaex.edu/srea/ and search hide.c.
    I may need another file, os.h, which is #included in hide.c program.
    hide.c handles simple program well. but, not XMLImporter/XMLExporter.

    Using a PC to promote OAF customizations from test to production is a way to prevent password from exposing to the public. Using C wrapper to call system() still exposes the passord.

Maybe you are looking for

  • My iPod touch 5th gen can't play videos?

    I've had my iPod touch 5th gen since Christmas Eve and I haven't had any problems with it, but a few days ago it stopped playing videos and now - even though I have turned it off and back on and turned the wifi off and back on again - it still can't

  • Qmsolm65.fmb (from version 6.5.4.0.1) gives an PDI-PLIO11 error.

    We have installed the version: Headstart 6.5.4.0 for Deverloper suite 10g(9.0.4) and upgraded it with the patch 6.5.4.0.1 for 10g Release 2. The maintenance Form for the Object Library (GMSOLB65.FMB) gives an error: "PDI-PLIO11 A tools common schema

  • Policy files expiry for pgp encryption

    HI All i am using bouncycastle jars for encrypting data using PGP. for this to function we need to install the jce unrestricted security files given at the java downloads but when i download and use them then for one weeek they are working fine but a

  • Exsistance of a node depends on a value of source field.

    I need to do  graphical mapping such that the exsistance of a node in target side depends upon the value of a field in sorce side. Can some one tel me how to proceed?

  • Intermittent Trackpad on 15" MBP (after 10.6.4 update?)

    This is either a hardware fault on my machine -- a June 2009 15" MBP -- or something connected to the 10.6.4 update (or the magic trackpad update that brought inertial scrolling to the last few MB/MBP refreshes). Short version: when tapping to click