【已解决】home有独立分区,重装系统后能直接登录原账号?
Tofloor
poster avatar
辉夜
deepin
2020-09-23 23:16
Author
本帖最后由 a789 于 2020-9-24 08:14 编辑

感觉不行哎,密码都不在home里吧?
那home独立出来只能保留文件,并不能重新登录原有账号吧?
Reply Favorite View the author
All Replies
Ziggy
deepin
2020-09-24 01:26
#1
不行,只能新系统安装时设置相同用户名和密码,用户名不同连/home也不能承接
Reply View the author
138******58
deepin
2020-09-24 01:36
#2
新系统安装时设置相同用户名就行,已经这么干好多年。
Reply View the author
callcz
deepin
2020-09-24 01:44
#3
/home是一个目录作用是存放用户主目录,比如你的帐号是user你的主目录就是/home/user,user帐户默认拥有/home/user目录的所有者权限,里面存放有关user有关的设置文件,另外也相当于user帐户的私人储存空间,默认的桌面、图片、下载等目录也在里面。/home可以选择用单独的分区挂载,不分区的话就和根目录在同一分区。重新安装系统后,如果在系统中有名为user帐户(新建亦可),用这个账号登录就能得到/home/user的权限了。
Reply View the author
enforcee
deepin
2020-09-24 01:52
#4
记录用户密码的文件是
/etc/shadow
Reply View the author
辉夜
deepin
2020-09-24 02:19
#5
https://bbs.deepin.org/post/202732
不行,只能新系统安装时设置相同用户名和密码,用户名不同连/home也不能承接 ...

原来如此
Reply View the author
辉夜
deepin
2020-09-24 02:19
#6
https://bbs.deepin.org/post/202732
新系统安装时设置相同用户名就行,已经这么干好多年。

感谢
Reply View the author
阿措
deepin
2020-09-24 04:24
#7
登入的时候有一个程序把你输入的账号和密码加密成密文,然后去/etc/shadow里对比,正确就让你登入。这就是登入的大致过程。和其他的基本上没关系
Reply View the author
138******58
deepin
2020-09-24 15:49
#8
本帖最后由 sparksky 于 2020-9-24 07:50 编辑

不要忘记系统安装时,在挂载分区那里,要挂载home目录的啊。
Reply View the author
辉夜
deepin
2020-09-24 16:40
#9
https://bbs.deepin.org/post/202732
不要忘记系统安装时,在挂载分区那里,要挂载home目录的啊。

这个记得

我突然又想到如果opt也独立出来,是不是可以通过什么命令自动来修复或者补齐依赖之类的,让重装后的系统直接就装好软件?
Reply View the author