metasploitable2.0_linux修改root密码

msfadmin @ metasploitable : ~ $ sudo passwd root
[ sudo ] password for msfadmin :              #这里输入msfadmin的密码,也就是msfadmin
Enter new UNIX password :              #这里输两次要更改的root的密码
Retype new UNIX password :
passwd : password updated successfully
 
msfadmin @ metasploitable : ~ $ su root      #然后切换过来就好了
Password :                        #输入你更改的root密码
root @ metasploitable : ~ # id
uid = 0 ( root ) gid = 0 ( root ) groups = 0 ( root )


转载自:https://zerlong.com/426.html                   。。                    感谢。

你可能感兴趣的:(linux)