<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Login on Debimate</title><link>https://debimate.jp/tags/login/</link><description>Recent content in Login on Debimate</description><image><title>Debimate</title><url>https://debimate.jp/images/default-ogp.jpg</url><link>https://debimate.jp/images/default-ogp.jpg</link></image><generator>Hugo -- 0.161.1</generator><language>ja-jp</language><lastBuildDate>Thu, 16 Apr 2020 00:00:00 +0000</lastBuildDate><atom:link href="https://debimate.jp/tags/login/index.xml" rel="self" type="application/rss+xml"/><item><title>/etc/passwdに記載された/usr/sbin/nologin, /bin/falseとは何か【ログイン禁止】</title><link>https://debimate.jp/post/ja/2020-04-16-etc-passwd%E3%81%AB%E8%A8%98%E8%BC%89%E3%81%95%E3%82%8C%E3%81%9F-usr-sbin-nologin-bin-false%E3%81%A8%E3%81%AF%E4%BD%95%E3%81%8B%E3%83%AD%E3%82%B0%E3%82%A4%E3%83%B3%E7%A6%81%E6%AD%A2/</link><pubDate>Thu, 16 Apr 2020 00:00:00 +0000</pubDate><guid>https://debimate.jp/post/ja/2020-04-16-etc-passwd%E3%81%AB%E8%A8%98%E8%BC%89%E3%81%95%E3%82%8C%E3%81%9F-usr-sbin-nologin-bin-false%E3%81%A8%E3%81%AF%E4%BD%95%E3%81%8B%E3%83%AD%E3%82%B0%E3%82%A4%E3%83%B3%E7%A6%81%E6%AD%A2/</guid><description>&lt;h3 id="前書き"&gt;前書き&lt;/h3&gt;
&lt;p&gt;先日、Rubyのコーディング練習がてらに、ユーザ情報を出力するコマンドの仕様をボンヤリと考えていました。&lt;/p&gt;
&lt;blockquote class="twitter-tweet"&gt;&lt;p dir="ltr" lang="ja"&gt;Rubyの練習用に「neofetchがシステムの情報出すなら、自分はユーザ情報を表示するコマンド作るか」と思ったが、既に類似仕様のfingerコマンド(&lt;a href="https://t.co/epoOGD4zlC"&gt;https://t.co/epoOGD4zlC&lt;/a&gt;)があった。&lt;br&gt;そりゃ、あるよね。&lt;/p&gt;— Nao (@ARC_AED) &lt;a href="https://twitter.com/ARC_AED/status/1250631227733708802?ref_src=twsrc%5Etfw"&gt;April 16, 2020&lt;/a&gt;&lt;/blockquote&gt;
&lt;script async src="https://platform.twitter.com/widgets.js" charset="utf-8"&gt;&lt;/script&gt;
&lt;p&gt;出力すべきユーザ情報には「ユーザが使用しているログインシェル」を含めようと考え、「/etc/passwd」を確認したら、ログインシェルを記載するセクションに予想外の記述がありました。その記述とは、「/usr/sbin/nologin」および「/bin/false」です。明らかに、シェルではありません。&lt;/p&gt;</description></item></channel></rss>