安全地更改主目录 [英] Safely change home directory

查看:134
本文介绍了安全地更改主目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图安全地更新主目录,如 / etc / passwd
中指定,但标准的Linux utils - usermod和vipw所以不提供
by Cygwin。

I'm trying to safely update the home directory as specified in /etc/passwd, but the standard Linux utils - usermod and vipw - for doing so aren't provided by Cygwin.

有没有人能告诉我他们在Cygwin中改变了什么?

Could anyone tell me how they changed this in Cygwin?

推荐答案

我最终退出所有的cygwin shell并在文本编辑器中手动编辑。到目前为止,这么好。

I ended up exiting all my cygwin shells and editing it by hand in a text editor. So far, so good.

注意:不要转义Documents and Settings目录中的空格。该条目将类似于

Note: don't escape the spaces in the "Documents and Settings" directory. The entry will look like

user:...:/cygdrive/c/Documents and Settings/user:/bin/bash

字符。

这篇关于安全地更改主目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆