我想添加public_html和private_html文件夹为我的networking服务器(Fedora 8或10或其他)的用户。 脚本将在login时为其创build文件夹的位置在哪里? 第一次login是否有一个脚本,后续login有不同的脚本? 这是完成的正常方式是什么?
创build帐户后,Fedora会将/ etc / skel的内容复制到新创build的主目录中。 你可以在这里扔空的public_html和private_html目录。
在debian中,你可以提供一个在adduser被调用后运行的脚本。 也许Fedora有类似的东西。 你可以使用这个脚本,如果你有更多的事情要做…
这里是一个男人adduser的片段
If the file /usr/local/sbin/adduser.local exists, it will be executed after the user account has been set up in order to do any local setup. The arguments passed to adduser.local are: username uid gid home-directory The environment variable VERBOSE is set according to the following rule: 0 if --quiet is specified 1 if neither --quiet nor --debug is specified 2 if --debug is specified (The same applies to the variable DEBUG, but DEBUG is deprecated and will be removed in a later version of adduser.)