首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

ubuntu root账户丢失超级用户权限,该怎么解决

2012-05-09 
ubuntu root账户丢失超级用户权限ubuntu在用root账户登陆时报出这样的错误:Could not chdir to home direc

ubuntu root账户丢失超级用户权限
ubuntu在用root账户登陆时报出这样的错误:

Could not chdir to home directory /root: Permission denied
-bash: /root/.bash_profile: Permission denied


当然是可以登上的,只是超级权限没有了,其他用户登陆也是没有超级权限!导致服务器没办法使用……

有知道如何将root账户的超级权限找回的高手,还请帮帮忙!谢谢!!

[解决办法]
passwd root重设一下密码

然后把原来的/root目录删掉,新建一个,再把/etc/skel中的内容复制进去

热点排行