您当前的位置是:首页-Linux

解决"authentication token manipulation error"

【发表于】:2018/9/8 0:00:00  已被访问:967次
安装完Ubuntu Server. 配置好了几个软件后就忘记继续了...今天打开,居然忘记了密码...真是的..
后来还是要改了. 不想重新弄什么的了..百度了下怎么改密码...然后就有一篇文章说是在进入系统前进入高级模式..然后里面有root的单用户模式..
1).在启动项选择:Advaned options for Ubuntu.(重启长安shift键,就会进入菜单选项,谨记!!!)
2).然后 选择:Ubuntu ,with Linux 3.13.0-24-generic (recovery mode),
3). 等待加载完成..你将看到"Recovery Menu (filesystem state :read-only)"
4).选择root Drop to root shell prompt 就会进入单用户模式了..
然后是修改密码.
输入passwd user,回车后就出现
authentication token manipulation error.
passwd unchanged..
这个错误怎么解决呢?!
下面是一篇外国人写的文章,的确有用...
http://linhost.info/2013/08/passwd-authentication-token-manipulation-error-ubuntu/
文章的内容大致如下:
You probably encountered this error while trying to reset the password on a Ubuntu system.
root@u13-04:~# passwd nyuser
Enter new UNIX password:
Retype new UNIX password:
passwd: Authentication token manipulation error
passwd: password unchanged
This is the result of trying to work on a file system while mounted as read-only. The solution is a simple one. Before making changes to the users password mount the filesystem as read-write which allows for the necessary changes to be made.
mount -o rw,remount /
Now try to change the users passwords again.
root@u13-04:~# passwd nyuser Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
关键代码是:mount -o rw,remount /
输入后就可以改了..注意..输入后什么也不会提示.再次修改密码就会成功了

经验分享

 
上下篇: 运维必须掌握的Linux的基础知识 apt-get安装软件Unable to locate package错误解决办法

最新推荐信息