在使用 Solaris Management Console 管理用户的起始目录时,请牢记以下几点:
如果使用“用户”工具的“新增用户向导”添加用户帐户,并将用户的起始目录指定为 /export/home/username,系统会自动将起始目录设置为自动挂载。还会向 passwd 文件中添加以下项。
/home/username |
要使用“用户”工具设置不自动挂载起始目录的用户帐户,这是唯一可以使用的方法。首先设置可禁用此功能的用户帐户模板,然后用该模板添加用户。无法使用“新增用户向导”禁用此功能。
使用具有 -x autohome=N 选项的 smuser add 命令来添加用户,将不会自动挂载用户的起始目录。但是,在添加用户之后,无法使用 smuser delete 命令选项来删除起始目录。此时必须使用“用户”工具来删除用户及其起始目录。