Change Home Directory Ubuntu 14.10 [closed]

拈花ヽ惹草 提交于 2019-12-23 09:26:29

问题


I'm trying to change the home directory to a different folder and my OS is not letting me do that. In Ubuntu I try to edit the useradd file but I can't figure out any way to save my changes that I made. Does anyone know how to do this?


回答1:


As root

usermod -d /path/to/new/directory username

Make sure your have created the new directory first with the mkdir command. Then login as yourself again, the directory is set during login.




回答2:


sudo usermod -d /path/to/new/home -m username


来源:https://stackoverflow.com/questions/28619737/change-home-directory-ubuntu-14-10

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!