Posted on 2004-10-26
Last Modified: 2010-04-20
How can I protect this file ( , This file have  a username and password  But it need to use for phpmyadmin
I am new for linux Thank you
Question by:teera
    LVL 3

    Expert Comment

    If your worried about visitors to the site, they will get a blank page if they try to load /MyAdmin/
    If your worried about other shell account users,  just set the auth_type variable to cookie or http instead of config
    LVL 3

    Expert Comment

    by setting the auth_type...
    you'll have to login each time you open MyAdmin, but you won't have to store any passwords in the config file.

    The best way to protect your passwords are to keep them out of your config files altogether.
    LVL 3

    Accepted Solution

    Here's my, notice that it says "MySQL password (only needed with 'config' auth_type)

    $cfg['Servers'][$i]['auth_type']     = 'cookie';    // Authentication method (config, http or cookie based)?
    $cfg['Servers'][$i]['user']          = 'root';      // MySQL user
    $cfg['Servers'][$i]['password']      = '';          // MySQL password (only needed
                                                        // with 'config' auth_type)

    Expert Comment

    Avoid using "config" type of authentication for "$cfg['Servers'][$i]['auth_type']" because it will force you to input a password in
    I will recommend the "cookie" or "http" type ... the "cookie" model is easier to setup

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
    It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    884 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now