7) 编辑logon描述文件logon.bat。 重要提示: 使用DOS/Windows文字编辑器 (比如Notepad或Edit)来创建logon.bat文件 (所以保存的文本文件是微软兼容的形式), 你也可以在Linux上做这件事但是你必须转换成正确的文本形式。 你可以使用比如 Vim的命令":set textmode"得到有微软行结尾符的文件。 net time SMBServer /y (you can also use: /yes instead of /y ) net use H: SMBServerhome -y (you can also use: /yes or /y instead of -y ) net use P: SMBServerpublic -y