How to Provide Username & Password when Starting Apache Drill - apache-drill

I want to set username and password protection to Drill. Because if anyone know my storage plugin name, they will automatically access Drill. So, I want restriction to my Drill.
Is there any way to provide password while starting drill ?
Note: I am starting drill in embedded mode.

Related

Missing encrypted Exact Online password with device-specific key warning itgendhb079

Customer is running Invantive Data Hub and has recently upgraded. The batch file used to include the following:
/password:PASSWORD
But the use of unencrypted seems no longer supported; I must provide an encrypted password instead. Invantive Data Hub reports:
itgendhb079 This script uses a non-encrypted password. Please use an encrypted password instead.
How can I encrypt the password? I seem unable to find a menu option for it.
You can create an encrypted version of the password by executing the following in the Query Tool or Data Hub:
local encrypt password
and then pressing enter (Data Hub) or ctrl+enter (Query Tool).
A window will appear with the currently used password filled-in when available, signalled by ***.
Please note that the encrypted password is encrypted using a device-specific key. So you can only use it on the device on which you generated the encrypted password.

mysql 5.6 update password in users db

I Am working on installation of an application which uses MySql 5.6 Database and Tomcat as web server. After successful installation, there were two users found(admin & ascuser) by default. At first, i login(to GUI) with admin user and given (pre-defined) password. Then prompted to change admin password which went good. Later unfortunately i lost the admin password. Then i could not login to GUI. There is no option to reset admin password in GUI. There is no info provided about ascuser. I logged in to the mysql DB as root user. Passwords are hashed.
Here are few queries. Can anyone please suggest how to change/reset the password for admin user? I dont want to create any other users apart from the existing ones.
FYI:
Below are few outputs:
Mysql Query outputs
Users DB
I googled for password() in mysql to reset the admin password. But all in vain. Can any one Please provide some inputs ?
Unfortunately you cant crack the salted hashes .
But yes you can reset the user Password
check this thread How can I decrypt MySQL passwords

Configuration file no password

I run a localhost server for MySQL and PHP, in the phpMyAdmin I get the message on pink background:
"Your configuration file contains settings (root with no password) that correspond to the MySQL privileged default account.
Your MySQL server is running with this default, is open to intrusion, and you really should fix this security hole by setting a
password for user 'root'."
Can anybody please tell me about the risks?
Are there any?
Like what?
Best regards
By default say xampp use no password. Mamp uses password root by default. This wil do no harm if you only work locally. If you want to set a password anyway than look at the documentation depends on the software you are using.

How to find out the password and user name of a mysql database?

In my mysql server i have a database named "joomla". But http://localhost/joomla gives "Error displaying the error page: Application Instantiation Error". I want to check that whether i provide the correct user name and password in configuration.php file. For this i need to find out which user have permissions on joomla database. So how can i find out that?
Thanks
Login to the mysql server using an account that has adequate permissions and use show grants for <name> to get list of permitted DBs.
You won't be able to find the MySQL passwords this way though.

how to access phpmyadmin and type username and password?

Up until now I can't figure out why is phpmyadmin inaccessible when I put a password on the root user.
But I've seen someone accessing phpmyadmin and inputting a username and password. How do I do that, so that I can access phpmyadmin even when I put a password to the root user. Because maybe by default the login form is inaccessible. Do I have to write my own php code to have that kind of login form?
take a look at phpmyadmin documentation there is some options about authentication.
quote from the relevant part of the documentation
$cfg['Servers'][$i]['auth_type']
string
['HTTP'|'http'|'cookie'|'config'|'signon']
Whether config or cookie or HTTP or
signon authentication should be used
for this server. 'config'
authentication ($auth_type = 'config')
is the plain old way: username and
password are stored in config.inc.php.
'cookie' authentication mode
($auth_type = 'cookie') as introduced
in 2.2.3 allows you to log in as any
valid MySQL user with the help of
cookies. Username and password are
stored in cookies during the session
and password is deleted when it ends.
This can also allow you to log in in
arbitrary server if
$cfg['AllowArbitraryServer'] enabled.
'HTTP' authentication (was called
'advanced' in previous versions and
can be written also as 'http')
($auth_type = 'HTTP') as introduced in
1.3.0 allows you to log in as any valid MySQL user via HTTP-Auth.
'signon' authentication mode
($auth_type = 'signon') as introduced
in 2.10.0 allows you to log in from
prepared PHP session data. This is
useful for implementing single signon
from another application. Sample way
how to seed session is in signon
example: scripts/signon.php. You need
to configure session name and signon
URL to use this authentication method.
Please see the install section on
"Using authentication modes" for more
information.
I think you want to use the 'http' one.