登录问题

登录问题

这可能听起来很菜鸟,但是,我想更改我的电脑的用户名和密码(我认为是 ubuntu 12.4)我更改了密码,并且成功了,我更改了用户名 - 并且成功了,所以我注销并尝试重新登录,但每次我输入新密码时,电脑都会黑屏一秒钟,然后回到登录页面,

我唯一可以登录的方式是以访客身份登录。我无法删除任何内容,因为我没有权限

做完后

mount -o remount,rw /
cd /home
ls -al

这是输出:

total 16
drwxr-xr-x 4 root root 4096 mar 18 09:03 .
drwxr-xr-x 23 root root 4096 mar 18 09:49 ..
drwxr-xr-x 3 root root 4096 mar 18 09:03 .ecryptfs
dr-x------ 3 itay itay 4096 mar 18 09:09 itay

所以我这样做了: mount -o remount,rw / cd /home chmod u+w itay

mount -o remount,rw / cd /home/itay mv .Xauthority .Xauthority.backup

现在它登录到我的用户,但我可以登录终端,我该怎么办?

答案1

这个问题听起来和我非常相似。

进入 recovery-root-shell,输入:

mount -o remount,rw /
cd /home
ls -al

请在此处发布您的输出,也许您有同样的问题:)

编辑 1:这听起来不错,您可以在恢复 shell 中尝试以下命令:

mount -o remount,rw /
cd /home
chmod u+w itay

如果此命令不能解决您的问题,您可以在图形登录时尝试 STRG + ALT + F1,然后尝试在命令行中登录。当命令行中的登录有效时,您可以尝试以下命令(恢复):

mount -o remount,rw /
cd /home/itay
mv .Xauthority .Xauthority.backup

现在再次尝试登录:)

如果这没有帮助,我认为 saiarcot895 已经给了你正确的答案。

相关内容