我正在寻找新的用户创build完成额外configuration的例子,超越/etc/skel的东西。 例如,有谁写了一个脚本来设置public_html设置GUID?
这是我写的改变权限的简单脚本,因为adduser在从/ etc / skel复制时会放弃权限。
#!/bin/sh # This script is executed at the end of adduser # USAGE: # adduser.local USER UID GID HOME chgrp www-data $4/public_html chmod g+s $4/public_html