The system is asking for the password of your account and then verifies whether you are allowed to run sudo based on the content of /etc/sudoers. By default only Administrators (which have the option ticket in Preferences) are allowed to do this.
In case you want to run shell commands with sudo without having to switch users all the time you have several options:
Use ssh <any-admin-user>@localhost to log in as an admin user and run sudo then
Add your non-admin user to /etc/sudoers by logging in as an admin user, executing sudo visudo in Terminal, duplicating the %admin ALL=(ALL) ALL line and replacing %admin with your username. This will allow you to use sudo in Terminal without giving you full admin access. Using visudo instead of editing the file directly will ensure that the file gets checked for syntactical correctness on save (an error in /etc/sudoers might lock you out of your system completely)
f you store your CA certificates on the filesystem (in PEM format) you can tell curl to use them with
sudo curl --cacert /path/to/cacert.pem ...
You can also turn off the certificate verification with
sudo curl --insecure ...
Edit: Updated with regard to feedback
If you want to set this permanently, you should create a .curlrc files and place in your home directory. sudo commands may need this file in /var/root The file takes the same options as the command line but without the dashes. One option per line:
Best Answer
It appears that mc requires to match precompiled shell version, e.g. /bin/bash to be the one.
In order to resolve this, its is required to change default root shell from sh to bash, and do it with following command:
To revert back in case you have some problems, just reverse the parameters:
Just in case above commands do not work, may be default shell was already changed. Check it with command:
Hope it will save tons of time for you.