Deprecated: Optional parameter $shortcode declared before required parameter $args is implicitly treated as a required parameter in /home/ashishka/public_html/wp-content/plugins/wp-cirrus/wp-cirrus.php on line 331

Warning: Cannot modify header information - headers already sent by (output started at /home/ashishka/public_html/wp-content/plugins/wp-cirrus/wp-cirrus.php:331) in /home/ashishka/public_html/wp-content/plugins/all-in-one-seo-pack/app/Common/Meta/Robots.php on line 89

Warning: Cannot modify header information - headers already sent by (output started at /home/ashishka/public_html/wp-content/plugins/wp-cirrus/wp-cirrus.php:331) in /home/ashishka/public_html/wp-includes/feed-rss2.php on line 8
Root | Web Hosting Stuff https://www.ashishkale.in Get solutions under one roof Wed, 09 Sep 2015 05:48:39 +0000 en-US hourly 1 Change Linux Root Password Temporarily https://www.ashishkale.in/change-linux-root-password-temporarily/ https://www.ashishkale.in/change-linux-root-password-temporarily/#respond Wed, 09 Sep 2015 05:47:33 +0000 http://www.ashishkale.in/?p=738 How to change Linux root password temporarily If you are logged in as root and you don’t know the root password then you can follow the steps. You can easy to change your root password.    Step 1. Back-up your current shadow file. [root@hostripples ~]# cp /etc/shadow /etc/shadowbkup Step 2. Change the current root password [root@hostripples ~]# passwd root Changing password [...]

The post Change Linux Root Password Temporarily first appeared on Web Hosting Stuff.

]]>
How to change Linux root password temporarily

If you are logged in as root and you don’t know the root password then you can follow the steps. You can easy to change your root password. 

 

Step 1. Back-up your current shadow file.

[root@hostripples ~]# cp /etc/shadow /etc/shadowbkup

Step 2. Change the current root password

[root@hostripples ~]# passwd root

Changing password for user root.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.

Step 3. Switch to a local user to test whether ‘your’ root password is working or not.

[root@hostripples ~]# su – localuser 
[localuser@hostripples ~]$ su – root
Password:
[root@hostripples ~]#

Yes, you are now logged in as root with ‘your’ password.

Step 4. Restore the previous root password

[root@hostripples ~]# mv /etc/shadowbkup /etc/shadow
mv: overwrite `/etc/shadow’? y
[root@hostripples ~]#

.

.

.

.

This trick is meant for students and kindly do not misuse.

The post Change Linux Root Password Temporarily first appeared on Web Hosting Stuff.

]]>
https://www.ashishkale.in/change-linux-root-password-temporarily/feed/ 0