「Linuxコマンド - グループ関連」の版間の差分

📢 Webサイト閉鎖と移転のお知らせ
このWebサイトは2026年9月に閉鎖いたします。
新しい記事は移転先で追加しております。(旧サイトでは記事を追加しておりません)

文字列「__FORCETOC__」を「{{#seo: |title={{PAGENAME}} : Exploring Electronics and SUSE Linux | MochiuWiki |keywords=MochiuWiki,Mochiu,Wiki,Mochiu Wiki,Electric Circuit,Electric,pcb,Mathematics,AVR,TI,STMicro,AVR,ATmega,MSP430,STM,Arduino,Xilinx,FPGA,Verilog,HDL,PinePhone,Pine Phone,Raspberry,Raspberry Pi,C,C++,C#,Qt,Qml,MFC,Shell,Bash,Zsh,Fish,SUSE,SLE,Suse Enterprise,Suse Linux,openSUSE,open SUSE,Leap,Linux,uCLnux,Podman,電気回路,電子回路,基板,プリント基板 |description={{PAGENAME}} - 電子回路とSUSE Linuxに関する情報 | This pag…
 
(同じ利用者による、間の1版が非表示)
67行目: 67行目:
グループを作成する場合は、<code>groupadd</code>コマンドを使用する。<br>
グループを作成する場合は、<code>groupadd</code>コマンドを使用する。<br>
  sudo groupadd <グループ名>
  sudo groupadd <グループ名>
<br><br>
== グループとユーザを同時に作成 ==
# RHEL
sudo dnf install adduser
# SUSE
sudo zypper install shadow-utils
<br>
* <code>--system</code>オプション
*: ユーザを作成する。
* <code>--no-create-home</code>オプション
*: ホームディレクトリを作成しない。
* <code>--shell /bin/false</code>オプション
*: ログインシェルを/bin/falseに設定する。
*: このユーザはログインできなくなる。
* <code>--user-group</code>オプション
*: ユーザ名と同じ名前のグループを作成する。
<br>
# nginxユーザおよびnginxグループを同時に作成する場合
sudo useradd --system --no-create-home --shell /bin/false --user-group nginx
<br><br>
<br><br>


86行目: 107行目:
  sudo groupdel <グループ名>
  sudo groupdel <グループ名>
<br><br>
<br><br>
{{#seo:
|title={{PAGENAME}} : Exploring Electronics and SUSE Linux | MochiuWiki
|keywords=MochiuWiki,Mochiu,Wiki,Mochiu Wiki,Electric Circuit,Electric,pcb,Mathematics,AVR,TI,STMicro,AVR,ATmega,MSP430,STM,Arduino,Xilinx,FPGA,Verilog,HDL,PinePhone,Pine Phone,Raspberry,Raspberry Pi,C,C++,C#,Qt,Qml,MFC,Shell,Bash,Zsh,Fish,SUSE,SLE,Suse Enterprise,Suse Linux,openSUSE,open SUSE,Leap,Linux,uCLnux,Podman,電気回路,電子回路,基板,プリント基板
|description={{PAGENAME}} - 電子回路とSUSE Linuxに関する情報 | This page is {{PAGENAME}} in our wiki about electronic circuits and SUSE Linux
|image=/resources/assets/MochiuLogo_Single_Blue.png
}}


__FORCETOC__
__FORCETOC__
[[カテゴリ:RHEL]][[カテゴリ:SUSE]][[カテゴリ:Raspberry_Pi]][[カテゴリ:PinePhone]]
[[カテゴリ:RHEL]][[カテゴリ:SUSE]][[カテゴリ:Raspberry_Pi]][[カテゴリ:PinePhone]]