業務用エアコン関連の技術情報、エラーコード、環境問題対策に関する別サイト「エアコンの安全な修理・適切なフロン回収」

2020-09

LinuxTips(RedHat系)

ドメイン名からメールサーバーを調べる

ドメイン名からメールサーバーを調べる(-t mx)あるドメイン内でメールサーバーとして稼働しているホストを調べるには、そ...
LinuxTips(RedHat系)

ホスト名からIPアドレスを調べる

ホスト名からIPアドレスを調べるホスト名からIPアドレスを調べることを「正引き名前解決」と言います。この処理はネームサー...
LinuxTips(RedHat系)

Linuxのポート状況を確認する

Linuxのポート状況を確認するネットワーク上のどのコンピュータに接続するのかを「IPアドレス」で識別し、そのコンピュー...
LinuxTips(RedHat系)

Linuxのネットワーク環境を確認する

Linuxのネットワーク環境を確認する●まず「ip -a」にてネットワークデバイスの確認をする# ip a1: lo: ...
LinuxTips(RedHat系)

IPアドレスを確認する

IPアドレスを確認するIPアドレス確認をするには、「ifconfig」コマンドを使用します。ifconfigコマンドは、...
LinuxTips(RedHat系)

ユーザーの設定を変更する

ユーザーの設定を変更するユーザーには予め、UIDやGID、ホームディレクトリなどが指定されている。これらの情報を後から変...
LinuxTips(RedHat系)

ユーザーを削除する

ユーザーを削除するユーザーを削除するコマンドはuserdel。このコマンドを実行すると、ユーザー情報は削除されるが、ユー...
LinuxTips(RedHat系)

一般ユーザーでroot権限のコマンドを実行する

一般ユーザーでroot権限のコマンドを実行する一般ユーザーでログインの時、root権限のコマンドを使用する場合は、sud...
LinuxTips(RedHat系)

他のユーザにファイルを見せないようにする

他のユーザにファイルを見せないようにするLinuxでは、他のユーザにファイルを見せないようにすることができる。chmod...
LinuxTips(RedHat系)

ユーザーを作成する

To create and add a new user, use the "useradd" commandBy specifying a user name as an argument to the command, a user will be created. The user directory will be created under the /home directory, and the group name will be the same as the user name.
LinuxTips(RedHat系)

グループを作成する

To create and add a new group, use the "groupadd" command.Information about groups is described in /etc/group and can be edited, but it is better to edit the group information with the vigr command instead of directly editing the "/etc/group" file.
LinuxTips(RedHat系)

ユーザーが所属しているグループを確認する

Check the group in /etc/passwd and /etc/group (check the gid)Users always belong to a group, and the group described in the /etc/passwd and /etc/group files is the primary group.The gid (group ID) is stored in the /etc/passwd and /etc/group files
LinuxTips(RedHat系)

ユーザを複数のグループに所属させる

Group information in Linux is stored in the "/etc/group" file, which has the following notationtama:x:500:From left to right, tama is the group name, X is the password (when it says X, it is written in the /etc/gshadow file). 500 is the GID.To make a user belong to multiple groups, edit the "/etc/group" file, but it is convenient to use the vigr command to edit the "/etc/group" file. (The operation method is the same as vi)
LinuxTips(RedHat系)

ユーザーのログイン履歴を確認する

The user's login history will be output to the /var/run/utmp and /var/log/wtmp files.This file, like the /var/log/lastlog and /var/log/btmp files, is a binary file, so it cannot be displayed by the less, cat, or tail commands.To display it, use the dedicated /usr/bin/last command.
LinuxTips(RedHat系)

ユーザーの所属グループを表示する

To check which group a particular user belongs to, use the groups command.If you run the command with no arguments, the group to which the user who executed the command belongs will be displayed.If you specify the name of the user whose group you want to display as an argument, the group to which the user belongs will be displayed.