デフォルトでは、グループにユーザーを追加する

デフォルトでは、グループにユーザーを追加する

システム内のすべてのユーザーが共有するグループがあります。グループ名は普遍的で、コンピュータの誰もが普遍的なファイル共有を許可します。デフォルトでは、すべての新しいユーザーをこのグループに追加するにはどうすればよいですか? [adduserコマンドは手動介入を必要としません。]

ベストアンサー1

ADD_EXTRA_GROUPSマンページで以下EXTRA_GROUPSを設定してください/etc/adduser.conf

   ADD_EXTRA_GROUPS
          Setting this to something other than 0 (the default) will  cause
          adduser  to  add  newly  created non-system users to the list of
          groups defined by EXTRA_GROUPS (below).

   EXTRA_GROUPS
          This is the list of groups that new  non-system  users  will  be
          added  to.  By default, this list is 'dialout cdrom floppy audio
          video plugdev users games'

おすすめ記事