{"author_name":"iww","image_url":"https://cdn.user.blog.st-hatena.com/default_entry_og_image/42132/1685946694840016","height":"190","title":" bash\u3067\u3001root\u3058\u3083\u306a\u3051\u308c\u3070\u30a8\u30e9\u30fc\u306b\u3059\u308b","width":"100%","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","description":"\u30b7\u30a7\u30eb\u5909\u6570UID\u3092\u4f7f\u3046 \u30b7\u30a7\u30eb\u5909\u6570UID\u306b\u306f\u5b9f\u30e6\u30fc\u30b6ID\u304c\u5165\u3063\u3066\u3044\u308b 0\u306a\u3089root #!/bin/bash if [ \"$UID\" != \"0\" ]; then echo \"root\u4ee5\u5916\u3067\u306f\u5b9f\u884c\u3067\u304d\u307e\u305b\u3093\" exit 1 fi","blog_url":"https://iww.hateblo.jp/","author_url":"https://blog.hatena.ne.jp/iww/","categories":["Linux","bash"],"published":"2024-02-27 08:00:00","url":"https://iww.hateblo.jp/entry/20240227/root","blog_title":"\u63ee\u767a\u6027\u306e\u30e1\u30e2\uff12","version":"1.0","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fiww.hateblo.jp%2Fentry%2F20240227%2Froot\" title=\" bash\u3067\u3001root\u3058\u3083\u306a\u3051\u308c\u3070\u30a8\u30e9\u30fc\u306b\u3059\u308b - \u63ee\u767a\u6027\u306e\u30e1\u30e2\uff12\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}