原文地址:Ubuntu: 无法使用su命令作者:王志
发现Ubuntu中无法用su命令切换到root用户。
suPassword:su:Authenticationfailure
s
u
P
a
s
s
w
o
r
d
:
s
u
:
A
u
t
h
e
n
t
i
c
a
t
i
o
n
f
a
i
l
u
r
e
原来Ubuntu中root用户默认是禁止使用的,需要手工开启。
开启方法:sudo passwd
关闭方法:sudo passwd -l root
开启root用户后就可以使用su命令了。