Authentication token manipulation error for ubuntu ubuntu-16.04.1-desktop-amd64

本文解决了在尝试恢复Ubuntu密码时遇到的问题。作者遵循了一个教程但未能成功,原因是系统启动为只读状态,导致passwd命令无法修改相关文件。通过运行'mount -rw -oremount /'命令将系统更改为读写模式后,问题得以解决。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

https://ubuntuforums.org/showthread.php?t=1772894

 

Hi,

I faced the same problem when I tried to recover my Ubuntu password following the tutorial on:

http://www.psychocats.net/ubuntu/resetpassword

Looking for a solution, I read and try all the stuff from other forums where mainly they diagnose problems of inconsistency between /etc/shadow and /etc/passwd files, but that was not the problem. The problem was that the system was started as read only, so the passwd command cannot modify the above mentioned files. The solution was very simple. I ran the following command:

# mount -rw -o remount /

Then I just executed the passwd command with the corresponding username and it worked as charm. Try this before anything else. I hope it saves some time for somebody else.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值