Showing posts with label password. Show all posts
Showing posts with label password. Show all posts

02 June 2024

Have forgotten root password of mysql server

$ sudo service mysql stop

$ sudo vi /etc/mysql/mysql.conf.d/reset-mysql-password.cnf

[mysqld] 
skip-grant-tables

$ sudo mysqld_safe --skip-grant-tables &

$ mysql -u root

mysql > UPDATE mysql.user SET authentication_string=null WHERE User='root'; 

mysql > FLUSH PRIVILEGES;

mysql > exit

$ mysql -u root

mysql > ALTER USER 'root'@'localhost' IDENTIFIED WITH caching_sha2_password BY 'yourpasswd';

mysql > FLUSH PRIVILEGES;

sudo rm /etc/mysql/mysql.conf.d/reset-mysql-password.cnf

$ mysql -u root

mysql > 

17 September 2021

Password entering dialogue box would not show up in Outlook

Password Entering dialogue box would not show up in Outlook

 

Problem: After changing password, open Outlook, it is not connected the exchange server. 'Missing password' shows up at bottom right corner, but the password entering box would not show up.

Cause: You are sharing screen in Zoom meeting.

Solution: Stop sharing screen, then the password entering box wil l show up.

05 June 2019

How to create a root password in Ubuntu Linux?

How to create a root password in Ubuntu Linux?


You may have noticed that you can’t login to root account on Ubuntu, this is because root doesn’t actually have a password set.
Type the following command:
sudo passwd
The following message will appear:
[sudo] password for [username]: [Type your user password and press return]
After that another message will appear, the following:
Type new UNIX password: [Type the root password you want]
Now the last thing you need to do, the following:
Retype new UNIX password: [Retype the root password you chosen before]
The following message will appear:
passwd: password updated successfully
If the above message showed up on your terminal, you can now use the root privileges by typing:
su
And then type the password you chosen. That's it!

13 April 2019

How to Reset Windows Server 2008 R2 Administrator Password

How to Reset Windows Server 2008 R2 Administrator Password





In the past, when someone forgot their password to a Windows machine, the only known remedy was to reinstall the operating system. This was as true for personal computers running Home versions of Windows as for Windows Server products like Server 2008. Today, that is no longer the case. There are several tools that will allow you to reset a Windows Server password, and most of them are relatively easy to use if you have some experience working with computers.
That being said, the case is different for novice users. Users who have never reset a password on a Windows machine before may find a couple of these methods to be a little tricky. Choose the one that you are most comfortable with, and follow the steps in the description.

Method 1: Reset Windows Server 2008 Password via Reinstall

Some administrators still prefer the old way of reinstalling the server OS if they forget the password. Maybe they have had bad experiences with password reset tools; maybe some of their data had been compromised; or maybe they are not comfortable using freeware applications, which can pose security and other risks. If you are one of the "old school" administrators and this is how you want to do it, then here's how to reinstall Windows Server 2008:
Step 1. Before doing anything, please take a backup of all your local data. Since you are doing a full reinstallation of Windows Server, this is absolutely essential. Do not proceed without doing a backup.
Step 2. Next, get your installation disk for Windows Server 2008 R2, insert it into your server PC and wait for the Install Windows screen to appear. Enter all the basic preferences such as language, time and currency format and keyboard input method and click on "Next". You will now see a button that says Install Now. Click on that.
Step 3 . The Installer window will ask you to select an operating system. Select the appropriate one and click on Next. Now accept the licence terms and click on "Next" again. The next option will be to choose the type of installation. The options are Upgrade and Custom. Unless you have purchased a licence for server 2012 or 2016, choose the Custom option.
Windows Server 2008 Password Reset
Step 4 . Select the disk location details and click on Install Now, and the installation will begin. Your server will restart once the installation is complete. This particular method will prepare your computer for first use, which means the password must be changed before logging on for the first time. This is where you enter a new password, confirm it, and proceed to the next step.
Step 5 . You may now configure the server and activate the licence.
Note: You need to realise that since you are reinstalling the operating system, all the information in the local drives will be overwritten. That means you will need to take a backup of all your data prior to doing the reinstallation. This is also a labour-intensive task, so if you don't want to go through so much trouble, try the next method described below.

Method 2. Reset Windows Server 2008 Admin Password in One-Click

TunesBro WinGeeker Ultimate is a finely tuned piece of software that can reset various types of password on Windows machines. It has been extensively tested even before its first release, and testing has been done on over 1600 models of PCs, laptops and tablets.
Because of the extensive testing and the continuous feature and capability additions to the software, it has an amazing recovery rate of 100% for Windows passwords. Using this utility will allow you to reset Windows Server password with absolutely no trouble and no disturbance to your data.
Main Features of WinGeeker Ultimate
  • Easily reset Windows Server 2008 .
  • Support local and admin password on Window Server.
  • Add new user account and password for login.
  • Create bootable password reset disk from USB or DVD.
 

Step 1 Install TunesBro WinGeeker

On a different Windows machine, download and install TunesBro WinGeeker Ultimate. Now insert a USB drive or a writable DVD / CD and launch the program.
install wingeeker

Step 2 Make Password Reset Disk

On the software interface you will see two burning options. Depending on what media you inserted, click on the 'Burn' option against that choice. Your bootable media will now be created in a few moments.
install wingeeker

Step 3Change Boot Order on Windows Server 2008

Now take the DVD/CD or drive and insert it into the locked Windows Server. Boot up the machine and enter the boot menu to change the boot order. You can do this during the boot process by pressing F2 or another special key that will be shown on the screen.
insert USB drive

Step 4 Reset Administrator Password of Windows Server 2008 R2

Once you see the TunesBro WinGeeker interface, select the correct ISO file, which will be the Server 2008 R2 OS version. Then select the admin username and click on ‘Reset Password'. You can now click on the "Reboot" button, then remove the media from the server and restart the machine normally. You will be able to enter the admin account without requiring a password.
start to reset Windows password

Method 3: Recover Server 2008 Password via Offline NT Password & Registry Editor

This popular utility is also known as NT password or, simply, chntpw utility. It's a fast way to reset Windows machine password, and there is no need to do a full backup before executing this particular process.
The method requires a little bit of command line work, but most of it is restricted to leaving the default option as it is and simply hitting the Enter key multiple times. You must follow the process from start to finish as it is described below in order to reset your Windows Server password without disturbing any other system files.
Here is how to use NT password to reset your Windows Server 2008 R2 password. Obviously, since you don't have the password for your server machine, the first two steps will need to be executed on a different PC:
Step 1. First of all, you will need to download Offline NT Password & Registry Editor and extract the ISO file from the ZIP file that you downloaded. You will now need to create bootable media from this ISO file.
Step 2. The next step is to insert this bootable media into the server machine and boot up the system. You will now see the command line interface for NT Password after the initial boot process. Press Enter to select the default boot option and proceed.
Step 3 . From here on, you can simply type 1 and press Enter at every option. In the step that asks you to select the appropriate username, type in the username for the account which you need to clear the password for.
Step 4 . The last step is to exit the application and confirm writing the registry. You can do this by pressing '!' and Enter, then the letter 'q' and Enter again, and then 'y' and Enter when asked to confirm registry writing. You should see an 'EDIT COMPLETE' message on the screen if you have followed all the steps correctly.
NT Password
Although steps are fairly straightforward, a lot of administrators are reluctant to use the software because it is open source. That means there has been no security updates for a long time, and using the software on a company server could compromise customer data or lead to other complications. If you are in this position, try the third method described below.

Summary

The first method is obviously not required unless you really want to do a reinstallation of Windows Server 2008 R2 for some reason. The second choice does have its own drawbacks as well, such as being outdated and prone to security risks. The recommended choice, therefore, is option 3, which is highly reliable and trusted by millions of users around the world. However, it is entirely up to you to choose which method you want to use to reset your Windows Server 2008 R2 password.

14 October 2013

Reset Forgotten MySql root Password Under Windows

http://www.jovicailic.org/2012/04/reset-forgotten-mysql-root-password-under-windows/

If you forgot root password for your MySQL database server running under Microsoft Windows, there is still a way to access your database and even reset your password using the command prompt.
Follow next steps:

1. Stop your MySQL server completely. This can be done from Wamp(if you use it), or start “services.msc” using Run window, and stop the service there.
2. Open your MS-DOS command prompt using “cmd” inside the Run window. Then go to your MySQL bin folder, such as C:\MySQL\bin. Path is different if you use Wamp.
3. Execute the following command in the command prompt:
  mysqld.exe -u root --skip-grant-tables
4. Leave the current MS-DOS command prompt as it is, and open a new MS-DOS command prompt window.
5. Go to your MySQL bin folder again.
6. Enter “mysql” and press enter.
7. You should now have the MySQL command prompt working. Type “use mysql;” so that we switch to the “mysql” database.
8. Execute the following command to update the password:
(UPDATE user SET Password = PASSWORD('your_new_passowrd') 
WHERE User = 'root';)
UPDATE user SET authentication_string = PASSWORD('your_new_passowrd') 
WHERE User = 'root';
However, you can now run almost any SQL command that you wish.
After you are finished close the first command prompt, and type “exit;” in the second command prompt.

You can now start the MySQL service. That’s it.

03 March 2013

Forgot Drupal 7 site administrator password

http://drupal.org/node/1023428

Resetting the administrator password with sql-query (Drupal 7)

 

Last updated February 25, 2013. Created by Heine on January 11, 2011.
Edited by LeeHunter, batigolix, emag, negativefix. Log in to edit this page.
When, in Drupal 7, the password for user 1 (the administrator) is lost and the email notification or drush methods don't work, it is possible to set the password via a database query.
But first, you have to generate a password hash that is valid for your site.
Execute the following commands from the command line, in the Drupal root directory:
./scripts/password-hash.sh newpwd
or for Windows:
php .\scripts\password-hash.sh newpwd
NOTE: If you receive an error that PHP is not a recognized command then you need to add php to the system PATH. For example: ;c:\wamp\bin\php\php5.3.8\ . This will then work in the Command Prompt. Once completed right click in Command Prompt window to mark the text and copy the hash code.
Of course, change "newpwd" to the desired password. If the password contains special characters such as a space, * or ? you must escape them, or wrap the password in quotes appropriate for the shell used.
The script will output a password hash that is valid for the site. Copy this to the clipboard or write it down somewhere; you'll need it for the next step. Be careful not to include more or less characters as the hash. These hashes look somewhat like $S$CTo9G7Lx28rzCfpn4WB2hUlknDKv6QTqHaf82WLbhPT2K5TzKzML
Then execute the following query on the Drupal database:
UPDATE users SET pass ='$S$CTo9G7Lx28rzCfpn4WB2hUlknDKv6QTqHaf82WLbhPT2K5TzKzML' WHERE uid = 1;
To execute this query it will be necessary to login to the database. This is typically done through the command line or through a GUI interface such as phpMyAdmin.

Clear flood table

If you have reset password either by using script or "request new password" but still receive "Sorry, there have been more than 5 failed login attempts for this account. It is temporarily blocked." then you may delete the corresponding entry in flood table.
This flood table records username and ip which has failed login attempts.

Reset using a PHP-file

No command-line access? You can reset the password using a PHP-file as well, but keep in mind that this opens a arises a huge security issue if not handled correctly.

Pass root param

If you're on windows and you want to pass the root param to the script, you'll need this:
php -f password-hash.sh -- --root "C:\wamp\www\" newp@ss
Anything that follows the double-dash will be passed to password-hash.sh.

15 February 2013

How to reset password of mysql to none?

http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html

For Windows, use

mysql\bin>mysqld-nt --skip-grant-tables


C.5.4.1.3. Resetting the Root Password: Generic Instructions
The preceding sections provide password-resetting instructions for Windows and Unix systems. Alternatively, on any platform, you can set the new password using the mysql client (but this approach is less secure):
  1. Stop mysqld and restart it with the --skip-grant-tables option. This enables anyone to connect without a password and with all privileges. Because this is insecure, you might want to use --skip-grant-tables in conjunction with --skip-networking to prevent remote clients from connecting.
  2. Connect to the mysqld server with this command:
    shell> mysql
    
  3. Issue the following statements in the mysql client. Replace the password with the password that you want to use.
    mysql> UPDATE mysql.user SET authentication_string=PASSWORD('MyNewPass')
        ->                   WHERE User='root';
    mysql> FLUSH PRIVILEGES;
    
    The FLUSH statement tells the server to reload the grant tables into memory so that it notices the password change.
You should now be able to connect to the MySQL server as root using the new password. Stop the server, then restart it normally (without the --skip-grant-tables and --skip-networking options).

05 November 2010

Default IP addresses, usernames & passwords of some routers and APs

Cisco LinkSys routers -

IP: 192.168.1.1
User name: (blank)
Password: admin

Cisco LinkSys APs -
IP: 192.168.1.245
User name: admin
Password: admin

Siemens router - SpeedStream 6520 -
IP: 192.168.254.254
User name: admin
Password: admin

Linksys WAP54G 
details: Wireless-G Access Point
Default IP address: 192.168.1.245 
Default admin username: <blank> 
Default admin password: admin 


=======

Linksys WRT300N Wireless-N Broadband Router
ip address: 192.168.1.1 username:(leave it blank)
password: admin

Linksys WRT150N Wireless-N Home Router
ip address: 192.168.1.1 username:(leave it blank)
password: admin

Linksys WRT330N Wireless-N Gigabit Gaming Router
ip address: 192.168.1.1 username:(leave it blank)
password: admin

Linksys WRT350N Wireless-N Gigabit Router with Storage Link
ip address: 192.168.1.1 username:(leave it blank)
password: admin
Linksys WRT600N Dual-Band Wireless-N Gigabit Router with Storage Link
ip address: 192.168.1.1 username:(leave it blank)
password: admin

Linksys WRVS4400N Wireless-N Gigabit Security Router with VPN
ip address: 192.168.1.1 username:(leave it blank)
password: admin

Linksys WRT100 RangePlus Wireless Router
ip address: 192.168.1.1 username:(leave it blank)
password: admin

Linksys WRH54G Wireless-G Home Router
ip address: 192.168.1.1 username:(leave it blank)
password: admin

Linksys WRT54G Wireless-G Broadband Router
ip address: 192.168.1.1 username:(leave it blank)
password: admin

Linksys WRT54G3G-AT Wireless-G Router for Mobile Broadband
ip address: 192.168.1.1 username:(leave it blank)
password: admin

Linksys WRT54G3G-ST Wireless-G Router for Mobile Broadband
ip address: 192.168.1.1 username:(leave it blank)
password: admin

Linksys WRT54GC Compact Wireless-G Broadband Router
ip address: 192.168.1.1 username:(leave it blank)
password: admin

Linksys WRT54GL Wireless-G Broadband Router
ip address: 192.168.1.1 username:(leave it blank)
password: admin

Linksys WRT54GR Wireless-G Broadband Router with RangeBooster
ip address: 192.168.1.1 username:(leave it blank)
password: admin

Linksys WRT54GX2 Wireless-G Broadband Router with SRX200
ip address: 192.168.1.1 username:(leave it blank)
password: admin

Linksys WRT54GX4 Wireless-G Broadband Router with SRX400
ip address: 192.168.1.1 username:(leave it blank)
password: admin

Linksys WRTSL54GS Wireless-G Media Storage Link Router with SpeedBooster
ip address: 192.168.1.1 username:(leave it blank)
password: admin

Linksys WRV200 Wireless-G VPN Router with RangeBooster
ip address: 192.168.1.1 username:admin
password: admin

Linksys WRV54G Wireless-G VPN Broadband Router
ip address: 192.168.1.1 username:admin
password: admin