linux – Run Nmap in a Docker container as non admin

I like to run the Nmap tool in a Docker container but not with the default root user. I already set the (hopefully) right capabilities via setcap.
Unfortunately I get only an “operation not permitted” when I try to run it.

This is my docker file:



RUN microdnf install nmap which
RUN setcap cap_net_raw,cap_net_admin,cap_net_bind_service+eip $(which nmap)

USER 1001

CMD ("nmap", "--privileged", "-sU", "localhost")

Any idea how to fix this?

html – Admin back end – get URL of file using file browser

I would like to be able to get the URL of a html file that has been uploaded to a folder via FTP.

So if I go into a post in the admin back end of WordPress, I would like there to be a custom field with a file browser that would list the html files and subdirectories in: wp-content/uploads/articles/

Then when a file has been selected it will log the url of that file so it can be retrieved on the front end.

I’ve done countless searches on Google and here and can’t seem to find the answer I’m looking for. Would just like to know if it can or cant’t be done so I can plan accordingly.

Any insight would be greatly appreciated!

woocommerce offtopic – Clicking custom plugin admin menu redirects to “No Update Required” on live site

I built a custom WordPress plugin that sends woocommerce purchase info to a CRM. The plugin works perfectly on localhost. But on live site, whenever I click on the admin menu, I always get redirected to “No Update Required” page.

enter image description here

Here is my main plugin file:

 * Plugin Name: Woo Crm
 * Description: Sends customer data to the CRM on purchase.

if (!defined('ABSPATH')) {
    echo 'I am a plugin I cannot do anything when called directly.';

// Config
define('PLUGIN_NAME', 'Woo Crm');
define('PLUGIN_SLUG', 'woo_crm');
define('PLUGIN_URL', plugin_dir_url(__FILE__));
define('PLUGIN_PATH', plugin_dir_path(__FILE__));

// Imports
require_once(PLUGIN_PATH . 'utils/utils.php');
require_once(PLUGIN_PATH . 'views/views.php');
require_once(PLUGIN_PATH . 'services/crm/crm.php');
require_once(PLUGIN_PATH . 'views/components/settings/settings.php');

class WooCrm
    function __construct()
        // Register Styles
        add_action('admin_enqueue_scripts', array($this, 'register_styles'));

        // Create Menu Page
        add_action('admin_menu', array($this, 'plugin_setup_menu'));

        // Add Settings Fields to Menu Page
        add_action('admin_init', array('settings', 'init'));

        // Woocommerce hook
         * First check if WooCommerce is activated
         * Then check if hook isn't empty
        if (class_exists('WooCommerce')) {
            $hook = get_when_to_send_data_hook();
            if (!empty($hook)) {
                add_action($hook, array($this, 'woo_order_create_client'));

    function woo_order_create_client($order_id)
        // Create client logic

    function plugin_setup_menu()
        $icon_url = PLUGIN_URL . "public/images/dash-icon.png";
        add_menu_page(__(PLUGIN_NAME, PLUGIN_SLUG), __(PLUGIN_NAME, PLUGIN_SLUG), 'manage_options', PLUGIN_SLUG, array('views', 'admin'), $icon_url);

    function register_styles()
        wp_register_style('woo_crm_admin', PLUGIN_URL . 'public/css/admin.css');


new WooCrm();

Any help would be highly appreciated.

commerce – How to add a field to an order that only the administrator can view/edit in the orders admin?

I am looking for help in reference to commerce 2, not commerce 1. The requirement is to add a field (select list) to the order admin area, not the customer order form. The administrator should be able to input via a select list some additional tracking on an existing order. However the requirement is to not use the STATE field/functionality. The requirement is also that this field should not be visible or editable by non-admins. I know how to add a field to the order through the order types > manage fields but that will create a field for the customer order form (and doesn’t even seem editable by admin). Anyone know how to accomplish this?

magento2 – Magento 2 Redirect and display error in all admin page after click on “sign in”

I am trying to login in admin but it display “There has been an error processing your request”.

It generate error in like “Undefined offset: 2 in C:xampphtdocsm24libinternalMagentoFrameworkEncryptionEncryptor.php on line 591”

Also try to create new user and login but that solution is not working in my case. Note that I am using magento 2.4. Thanks in advance.

Admin > Customers > All Customers > Edit Customer: > left hand tab "Account Information"

How can I populate this field so it’s filled in when a customer creates an account?

enter image description here

the name is customer[account_number]

I have a field above which is a duplicate but we call it something different and it populates correctly.

The name of that input is name="customer[parent_customer_id]"

Even know it’s redundant I want both fields to populate. What file and where should i be editing to populate customer[account_number] in it’s respective field.

admin – Magento2 wrong static files path

Stack Exchange Network

Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

On save CMS page or CMS block gives 404 on admin side if content has image src

Facing strange issue while saving CMS page or CMS block on admin side.

If Content of the page or block having image tag then on save it gives 404 error: Page not found.

<img src="{{media url=&quot;Chrysanthemum.jpg&quot;}}" alt="" />

Checked following points

  • Running Magento 2.3.6 with PHP 7.3

  • Disabled WYSIWYG editor completely from system configuration

  • Tried this option – Use Static URLs for Media Content in WYSIWYG

  • Checked pub folder permission with 775 and 777

  • pub folder having .htaccess by default

  • Web server rewrites is enabled on server level

  • Ran those upgrade/di:compile/s:s:d -f command multiple times

  • Also using the adminer i tried to update the direct db entry then also facing the same issue.

Any known issue which may be related to MySQL or some other?

WordPress 5.5 site admin email verification

I got popup notification about administrator email notification but when I logged from editor account. Is it normal that an editor can update admin email isn’t it?