Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8806557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:09:20+00:00 2026-06-14T02:09:20+00:00

I have a phppgadmin configuration file ( /usr/share/phppgadmin/conf/config.inc.php ) It has a line: $conf[‘extra_login_security’]

  • 0

I have a phppgadmin configuration file (/usr/share/phppgadmin/conf/config.inc.php)
It has a line:

$conf['extra_login_security'] = false;

I would like to change it to:

$conf['extra_login_security'] = true;

using bash shell-script. I understand that I would have to use something like sed/awk. But don’t know how exactly to use it to do what I want.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T02:09:22+00:00Added an answer on June 14, 2026 at 2:09 am

    If you want a simple global substitution of false to true then sed 's/false/true/g' will do it.

    $ echo "conf['extra_login_security'] = false" | sed 's/false/true/g'
    conf['extra_login_security'] = true
    

    However to only change lines the start with conf[ and just change the value to true then this is better sed 's/\(^.*conf\[.*\] =\) false/\1 true/g'

    echo "conf['extra_login_security'] = false" | sed 's/\(^.*conf\[.*\] =\) false/\1 true/g'
    conf['extra_login_security'] = true
    

    EDIT:

    Just that line can be done with the following:

    sed -i 's/\(^.*conf\[.extra_login_security.\] =\) false/\1 true/' /usr/share/phppgadmin/conf/config.inc.php

    Use -i to save the changes to the file, or redirect to a new file if you don’t want to overwrite the original.

    sed 's/\(^.*conf\[.extra_login_security.\] =\) false/\1 true/' > mynewfile.php

    A trick if you don’t have permission to write mynewfile.php is to pipe the output to tee and sudo that:

    sed 's/\(^.*conf\[.extra_login_security.\] =\) false/\1 true/' | sudo tee mynewfile.php

    From man tee tee – read from standard input and write to standard output and files.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In phpMyAdmin I have a char(32) column that has no default value(ie. Default: None).
I have a json file exported from phpmyadmin, it looks like this(utf-8 file): [{user_email:
I have a problem in php code inserting values into database (I use PHPMyAdmin).
I have installed phppgadmin in a Ubuntu server and want to access it from
I have a PostgreSQL backup made with PHPPgadmin using Export > Copy (instead Copy
I have a php script with a few errors in. It's impossible to debug
I am attempting to create a View in PhpPgAdmin (PostGreSQL db) which has the
When I start phpmyadmin I see this message: Your configuration file contains settings (root
I have a PHP script which inserts a row into a Postgres DB. It
I have phpmyadmin running on a remote VPS. It has been working fine for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.