3
3

More than 5 years have passed since last update.

サーバー構築入門: ユーザーをたくさん作る際に知っておきたかったこと

Posted at

/etc/skel というホームディレクトリのひな形となるディレクトリがあるらしい。。。知らなんだorz
だからここに authorized_keysや.zsh_rc やらを予め作っておけば、
ユーザーを増やす際の面倒くささがだいぶ軽減するはず(人´∀`).☆.。.:*・゚

$ cd /etc/skel
$ sudo mkdir -m 700 .ssh
$ sudo touch .ssh/authorized_keys
$ sudo chmod 600 .ssh/authorized_keys

skelってskeltonの意味なんだろなぁ( ・_・)r

/etc/skel is template directory for making new user home directory
for example, authorised_keys, .zshrc, more useful if you set these files in /etc/skel

3
3
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3