2017-12-05 1 views
0

/etc/skelは新規ユーザー用にクローン作成されるフォルダーです。 /etc/skelフォルダから何をコピーするかを定義する方法がありますか?新規ユーザー用にプログラムでクローンを作成する/ etc/skel

たとえば、ユーザーが作成され、Aという名前のグループに属している場合、/etc/skel/not_for_a.txtを除く/etc/skelフォルダをクローンする方法を探しています。可能?

+0

を作成した後、コマンドを呼び出すために/usr/local/sbin/adduser.localを使用することができます[manページ](https://manpages.ubuntu.com/manpages/zesty/man5/adduser.conf.5。 html) - プログラミングに関する質問ではありません。閉会投票。 – tripleee

+0

(a)ユーザーを作成し、(b)必要な追加ロジックを実行するスクリプトを作成できます。 – larsks

答えて

0

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

私は、ユーザーが

関連する問題