每次添加新用户时执行命令最简单的方法是什么?
我检查过,/etc/adduser.conf
但没有什么在那里看起来会这样做?
我想将它添加到用户,.bashrc
以便jsut在登录时执行,但我宁愿在登录之前进行设置.
任何帮助,将不胜感激.
Ind*_*oad 11
来自man adduser
:
If the file /usr/local/sbin/adduser.local exists, it will be exe?
cuted 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
Run Code Online (Sandbox Code Playgroud)
您似乎可以在此处添加用户创建操作.