mori– Author –
-
Linux樹林
[Linux] Managing Password Expiration and Account Validity with the chage Command
Overview The chage command allows administrators to manage the "aging" of user passwords and the validity period of user accounts. It provides detailed control over when a password expires, how long the grace period lasts after expiratio... -
Linux樹林
【Linux】chageコマンドでパスワードの有効期限とアカウント失効日を管理する
概要 ユーザーアカウントのパスワード有効期限(Expiration)や、パスワード期限切れ後の猶予期間、アカウント自体の失効日などを詳細に管理・表示するためのコマンドです。 定期的なパスワード変更を強制するセキュリティポリシーの運用や、契約終了日に... -
Linux樹林
[Linux] Managing Passwords and Expiration with the passwd Command
Overview The passwd command is used to change, set, or manage user account passwords. While standard users can only change their own passwords, system administrators (root) have the authority to set or change passwords for all users. Add... -
Linux樹林
【Linux】passwdコマンドでパスワードの変更と有効期限管理を行う
概要 ユーザーアカウントのパスワードを変更、設定、または管理するためのコマンドです。 一般ユーザーは自分のパスワードのみを変更できますが、システム管理者(root)は全てのユーザーのパスワードを設定・変更できるほか、パスワードの有効期限の設定... -
Linux樹林
[Linux] Changing User Name and Contact Information with the chfn Command
Overview The chfn command is used to modify the user's real name, room number, work phone, and other auxiliary information stored in the GECOS field (comment section) of the /etc/passwd file. This information is typically displayed by co... -
Linux樹林
【Linux】chfnコマンドでユーザーの氏名や連絡先情報を変更する
概要 /etc/passwd ファイルのGECOSフィールド(コメント欄)に格納されている、ユーザーの実名、部屋番号、電話番号などの付帯情報を変更するためのコマンドです。 finger コマンドなどで表示されるこれらの情報は、システム管理上の連絡先として利用され... -
Linux樹林
[Linux] Switching Login Shells with the chsh Command
Overview The chsh (change shell) command is used to change the login shell that launches immediately after a user logs into the terminal. It is commonly used to switch from the default bash to other shells like zsh, or to disable a syste... -
Linux樹林
【Linux】chshコマンドでログインシェルを切り替える
概要 ユーザーがターミナルにログインした直後に起動するシェル(ログインシェル)を変更するためのコマンドです。 bashからzshへの切り替えや、システム管理用ユーザーのシェルを無効化する場合などに使用します。変更内容はユーザーデータベース(/etc/p... -
Linux樹林
[Linux] Modifying Group Names and GIDs with the groupmod Command
Overview The groupmod command is used to modify the definitions of existing groups, such as their names or Group IDs (GID). This tool is essential when you need to rename a group to match an organizational change or when you need to reas... -
Linux樹林
【Linux】groupmodコマンドでグループ名や識別ID(GID)を書き換える
概要 作成済みのグループ定義(グループ名やGID)を変更するためのコマンドです。 組織の名称変更に合わせてグループ名をリネームしたり、システム移行やセキュリティポリシーの変更に伴ってグループID(GID)を振り直したりする際に使用します。 特にGID... -
Linux樹林
[Linux] Removing Unnecessary Groups from the System with groupdel
Overview The groupdel command is used to remove existing group definitions from a Linux system. When a project is disbanded or an organizational change occurs, this command cleans up the environment by removing the unnecessary Group ID (... -
Linux樹林
【Linux】groupdelコマンドで不要なグループをシステムから削除する
概要 作成済みのグループ定義をシステムから削除するためのコマンドです。 プロジェクトの解散や、組織変更などで不要になったグループID(GID)を /etc/group および /etc/gshadow から取り除きます。 ただし、「あるユーザーのメイン(プライマリ)グル... -
Linux樹林
[Linux] Creating New Groups with the groupadd Command
Overview The groupadd command is used to create new "groups" within a Linux system. This functionality serves as the foundation for managing access permissions, such as controlling who can read or write to shared folders on a file server... -
Linux樹林
【Linux】groupaddコマンドで新規グループを作成する
概要 Linuxシステム上に新しい「グループ」を作成するためのコマンドです。 ファイルサーバーでの共有フォルダへのアクセス権限管理や、特定の開発チーム内でのみファイルを読み書き可能にするなど、ユーザーを束ねて権限をコントロールする際の土台となり... -
Linux樹林
[Linux] Modifying User Settings and Locking Accounts with the usermod Command
Overview The usermod command is the primary tool for modifying existing user account information in a Linux system. It handles everything from routine administrative tasks, such as changing a login shell or group membership, to more sign... -
Linux樹林
【Linux】usermodコマンドでユーザー設定の変更・アカウントロックを行う
概要 作成済みのユーザーアカウント情報を、後から変更するためのコマンドです。 ログインシェルや所属グループの変更といった日常的な管理から、ログイン名(ユーザーID名)自体の変更、さらには不正アクセス対策としての一時的なアカウントロック(凍結... -
Linux樹林
[Linux] Deleting Users and Removing Memberships with the deluser Command
Overview In Debian-based distributions like Ubuntu and Debian, the deluser command is the primary tool for removing user accounts or excluding users from specific groups. As a high-level wrapper for the userdel command, it offers safer a... -
Linux樹林
【Linux】deluserコマンドでユーザー削除とグループ脱退を行う
概要 Debian系ディストリビューション(Ubuntu, Debianなど)において、ユーザーアカウントの削除、またはユーザーを特定のグループから除外するためのコマンドです。 userdel コマンドのラッパー(フロントエンド)であり、ホームディレクトリのバックア... -
Linux樹林
[Linux] Managing System Cleanups: Deleting User Accounts with userdel
Overview The userdel command is a standard utility used to remove user accounts that are no longer needed on a Linux system. Whether you are offboarding a consultant or deleting a temporary account used for system testing, this command a... -
Linux樹林
【Linux】userdelコマンドでユーザーアカウントを削除する
概要 Linuxシステムから不要になったユーザーアカウントを削除するためのコマンドです。 退職した社員のアカウントや、検証用に作成した一時的なユーザーをシステムから抹消する際に使用します。 重要な点として、「ユーザー情報だけを消す(ファイルは残... -
Linux樹林
[Linux] Creating User Accounts Interactively with the adduser Command
Overview In Debian-based distributions like Ubuntu, Debian, or Kali Linux, the adduser command provides a user-friendly, interactive way to create user accounts. Unlike the low-level useradd command, adduser acts as a wizard that guides ... -
Linux樹林
【Linux】adduserコマンドでユーザーアカウントを対話的に作成する
概要 Debian系ディストリビューション(Ubuntu, Debian, Kali Linuxなど)において、対話形式で親切にユーザーアカウントを作成するためのコマンドです。 低レベルな useradd コマンドとは異なり、ホームディレクトリの作成、デフォルト設定のコピー、初期... -
Linux樹林
[Linux] Creating User Accounts with the useradd Command
Overview The useradd command is the primary tool for creating new user accounts in a Linux system. It allows administrators to define specific details such as the account name, User ID (UID), group memberships, home directory, and the de... -
Linux樹林
【Linux】useraddコマンドでユーザーアカウントを作成する
概要 Linuxシステムに新しいユーザーアカウントを作成するためのコマンドです。 アカウント名、ユーザーID(UID)、所属グループ、ホームディレクトリ、ログインシェルなどを細かく指定して作成できます。 注意点として、このコマンドを実行した直後のユー... -
JavaScript樹林
[JavaScript]Searching Array Data A Complete Guide to indexOf, lastIndexOf, and includes
Overview Checking if a specific value exists in an array or finding its location is a common task in data validation and UI control. This article clarifies the differences between indexOf and lastIndexOf, which retrieve index positions, ... -
JavaScript樹林
【JavaScript】配列データの検索!indexOf, lastIndexOf, includesの使い分け完全ガイド
概要 配列の中に「特定の値が含まれているか」を確認したり、「その値がどこにあるか」を特定したりする処理は、データ検証やUI制御において頻繁に発生します。 本記事では、インデックス番号(位置)を取得する indexOf / lastIndexOf と、存在有無を真偽... -
JavaScript樹林
[JavaScript]Converting Array Elements into a Single String with the join Method
Overview When you have data managed in an array and want to convert it into a single string—such as a CSV format (comma-separated) or a specific format like a slash-separated date—you use the join method. This approach is more efficient ... -
JavaScript樹林
【JavaScript】配列要素を連結して文字列化!joinメソッドの活用法
概要 配列として管理されているデータを、CSV形式(カンマ区切り)や特定のフォーマット(スラッシュ区切りなど)の1つの文字列に変換したい場合、join メソッドを使用します。 ループ処理で文字列連結を行うよりも簡潔で、末尾の区切り文字処理なども不要... -
JavaScript樹林
[JavaScript]Array Concatenation – Spread Syntax vs. concat
Overview When you need to merge multiple data lists into a single collection, JavaScript offers two primary methods: the traditional concat method and the modern "Spread Syntax (...)" introduced in ES2015 (ES6). Today, spread syntax has ... -
JavaScript樹林
【JavaScript】配列連結の決定版!concatとスプレッド構文の使い分け
概要 複数のデータリストを1つにまとめたい場合、JavaScriptには伝統的な concat メソッドと、ES2015(ES6)で導入された直感的な「スプレッド構文(...)」の2つの方法があります。 現在では、可読性が高く柔軟な操作が可能なスプレッド構文が主流となって...