问题描述:
首先说明一下,/home是单独的一个分区,我的主目录也是选择了加密的。
昨天用passwd修改了一下用户密码,结果今天登录的时候显示could not update /home/zhujia/.ICEauthority,不能显示桌面。但是在tty中登录是可以的。登录之后有几行提示文字,具体的记不清了,其中有一个命令ecryptfs-mount-private。我执行了以下这个命令,它提示我输入密码,但是这个密码是我修改之前的密码。我好像明白了一点,修改密码之后登录的时候我的主目录好像没有挂载,原因就是登录密码和挂载密码不一样。当我把密码改回成修改之前的密码,再登录系统时,一点问题都没有。
看来单纯的通过passwd修改用户密码是达不到目的了,现在我想知道怎么样使用户登录密码修改之后其他相关的密码(比如ecryptfs-mount-private的密码)也被修改?简单的说是怎么样保证我修改用户密码之后还可以正常的登录系统
【求助】Ubuntu用户密码的修改
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
- TopZhujia
- 帖子: 9
- 注册时间: 2010-10-23 11:55
- aerowolf
- 帖子: 1778
- 注册时间: 2006-02-25 17:09
- 来自: 西安
Re: 【求助】Ubuntu用户密码的修改
这个还真不知道,纯粹帮顶!
整明白了别忘记给个帖子,让我学习一下。
整明白了别忘记给个帖子,让我学习一下。
- TopZhujia
- 帖子: 9
- 注册时间: 2010-10-23 11:55
Re: 【求助】Ubuntu用户密码的修改
我在老外的网站上找到答案了,
ecryptfs wraps your passphrase ...
Log out
go to a terminal (ctrl-alt-f1)
log in with your new passphrase
mount your encrypted home with your OLD password
Code:
ecryptfs-mount-private
Again use your OLD PASSWORD with that command.
Then cd to your home directory
Code:
cd
Then run:
Code:
ecryptfs-rewrap-passphrase ~/.ecryptfs/wrapped-passphrase
enter your OLD password, then your NEW password
unmount your home
Code:
ecryptfs-umount-private
cd
restart GDM
Code:
sudo /etc/init.d/gdm stop
sudo /etc/init.d/gdm start
You should be able to log in normally.
Next time , when your change your log in password, before you log out, simply run
Code:
ecryptfs-rewrap-passphrase ~/.ecryptfs/wrapped-passphrase
enter your current then new passphrase this time.
ecryptfs wraps your passphrase ...
Log out
go to a terminal (ctrl-alt-f1)
log in with your new passphrase
mount your encrypted home with your OLD password
Code:
ecryptfs-mount-private
Again use your OLD PASSWORD with that command.
Then cd to your home directory
Code:
cd
Then run:
Code:
ecryptfs-rewrap-passphrase ~/.ecryptfs/wrapped-passphrase
enter your OLD password, then your NEW password
unmount your home
Code:
ecryptfs-umount-private
cd
restart GDM
Code:
sudo /etc/init.d/gdm stop
sudo /etc/init.d/gdm start
You should be able to log in normally.
Next time , when your change your log in password, before you log out, simply run
Code:
ecryptfs-rewrap-passphrase ~/.ecryptfs/wrapped-passphrase
enter your current then new passphrase this time.
- TopZhujia
- 帖子: 9
- 注册时间: 2010-10-23 11:55
Re: 【求助】Ubuntu用户密码的修改
很抱歉提出一个这个愚蠢的问题。在当前用户环境下使用passwd修改密码是没有问题的。我之前之所以出现了那样的问题是因为我用root用户环境中修改了zhujia的密码
- aerowolf
- 帖子: 1778
- 注册时间: 2006-02-25 17:09
- 来自: 西安
Re: 【求助】Ubuntu用户密码的修改
噢,问题解决了,恭喜!
你的教训就是我的经验,谢谢!
你的教训就是我的经验,谢谢!
- xinu
- 帖子: 130
- 注册时间: 2010-12-20 14:01
-
- 帖子: 218
- 注册时间: 2010-12-08 17:10
- 来自: 宇宙中的某个角落.....
Re: 【求助】Ubuntu用户密码的修改
这个不错,可惜我还没有加密主目录的意思。
我是个完全追求运行速度的人,特效神马的都是浮云...
Ubuntu10.04LTS
坚持单系统,坚持LTS!
PS:有时候我的帖子会没排版,那说明我在用手机上论坛!
Ubuntu10.04LTS
坚持单系统,坚持LTS!
PS:有时候我的帖子会没排版,那说明我在用手机上论坛!
-
- 帖子: 170
- 注册时间: 2011-03-10 19:08
Re: 【求助】Ubuntu用户密码的修改
请问如果是自己加密了的目录,如何从LiveCD上复制备份资料?我执行了ecryptfs-mount-private,可是它提示“ERROR: Encrypted private directory is not setup properly”,并没有要求我输入密码,然后什么也没有。