{"id":2524,"date":"2024-12-14T07:20:12","date_gmt":"2024-12-14T07:20:12","guid":{"rendered":"https:\/\/yolohive.com\/?p=2524"},"modified":"2024-12-14T07:21:20","modified_gmt":"2024-12-14T07:21:20","slug":"linux-login-as-superuser-root-command","status":"publish","type":"post","link":"https:\/\/yolohive.com\/zh\/linux-\u4ee5\u8d85\u7ea7\u7528\u6237-root-\u547d\u4ee4\u767b\u5f55\/","title":{"rendered":"Linux \u4ee5\u8d85\u7ea7\u7528\u6237\uff08root\uff09\u8eab\u4efd\u767b\u5f55\u547d\u4ee4"},"content":{"rendered":"

\u5982\u4f55\u5728 Linux \u4e2d\u4ee5\u8d85\u7ea7\u7528\u6237\u6216 root \u7528\u6237\u8eab\u4efd\u767b\u5f55<\/strong><\/p>\n\n\n\n

\u8d85\u7ea7\u7528\u6237\uff0c\u4e5f\u79f0\u4e3a root \u7528\u6237\u6216\u7ba1\u7406\u5458\u5e10\u6237\uff0c\u662f Linux \u4e0a\u4e3a\u7cfb\u7edf\u7ba1\u7406\u4efb\u52a1\u4fdd\u7559\u7684\u7279\u6b8a\u7528\u6237\u5e10\u6237\u3002\u51fa\u4e8e\u5b89\u5168\u539f\u56e0\uff0c\u666e\u901a\u7528\u6237\u548c\u5f00\u53d1\u4eba\u5458\u901a\u5e38\u9ed8\u8ba4\u88ab\u7981\u6b62\u76f4\u63a5\u8bbf\u95ee root \u5e10\u6237\u3002\u4ee5\u4e0b\u662f\u6210\u4e3a Linux \u8d85\u7ea7\u7528\u6237\u7684\u65b9\u6cd5\uff1a<\/p>\n\n\n\n\n\n\n\n\n\n\n
\u6559\u7a0b\u8be6\u60c5<\/strong><\/td>\n<\/tr>\n
\u96be\u5ea6\u7b49\u7ea7<\/span><\/td>\n\u7b80\u5355\u7684<\/td>\n<\/tr>\n
Root \u6743\u9650<\/span><\/td>\n\u662f\u7684<\/td>\n<\/tr>\n
\u8981\u6c42<\/span><\/td>\nLinux \u7ec8\u7aef<\/td>\n<\/tr>\n
\u7c7b\u522b<\/span><\/td>\n\u7528\u6237\u4fe1\u606f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n\n\n

\u4ec0\u4e48\u662f Linux \u8d85\u7ea7\u7528\u6237\u5e10\u6237\uff1f<\/h2>\n\n\n\n

\u5728 Linux \u548c\u5176\u4ed6\u7c7b Unix \u64cd\u4f5c\u7cfb\u7edf\u4e2d\uff0c\u201croot\u201d\u7528\u6237\u662f\u5177\u6709\u5b8c\u5168\u6743\u9650\u7684\u5e10\u6237\uff0c\u53ef\u4ee5\u8bbf\u95ee\u6240\u6709\u6a21\u5f0f\u4e0b\u7684\u6240\u6709\u6587\u4ef6\u548c\u7a0b\u5e8f\uff0c\u65e0\u8bba\u662f\u5728\u5355\u7528\u6237\u8fd8\u662f\u591a\u7528\u6237\u73af\u5883\u4e2d\u3002root \u7528\u6237\u53ef\u4ee5\u6267\u884c\u666e\u901a\u7528\u6237\u65e0\u6cd5\u6267\u884c\u7684\u4efb\u52a1\uff0c\u4f8b\u5982\u66f4\u6539\u6587\u4ef6\u6240\u6709\u6743\u548c\u8bbf\u95ee 1024 \u4ee5\u4e0b\u7684\u7aef\u53e3\u3002\u672f\u8bed\u201croot\u201d\u53ef\u80fd\u6e90\u4e8e\u8be5\u7528\u6237\u662f\u552f\u4e00\u6709\u6743\u4fee\u6539 Unix \u7cfb\u7edf\u6839\u76ee\u5f55\u7684\u7528\u6237\u3002\u7cfb\u7edf\u7ba1\u7406\u5458 (sysadmin) \u7684\u89d2\u8272\u591a\u79cd\u591a\u6837\uff0c\u5e76\u4e14\u53ef\u80fd\u56e0\u7ec4\u7ec7\u800c\u5f02\u3002\u7cfb\u7edf\u7ba1\u7406\u5458\u8d1f\u8d23\u5b89\u88c5\u3001\u652f\u6301\u548c\u7ef4\u62a4\u670d\u52a1\u5668\u548c\u8ba1\u7b97\u673a\u7cfb\u7edf\uff0c\u4ee5\u53ca\u89c4\u5212\u548c\u89e3\u51b3\u670d\u52a1\u4e2d\u65ad\u548c\u5176\u4ed6\u95ee\u9898\u3002<\/p>\n\n\n\n

\u5728 Linux \u4e2d\u4ee5\u8d85\u7ea7\u7528\u6237\u8eab\u4efd\u767b\u5f55\u7684\u547d\u4ee4<\/h2>\n\n\n\n

\u8981\u4ee5 Linux \u4e0a\u7684\u8d85\u7ea7\u7528\u6237\u6216 root \u7528\u6237\u8eab\u4efd\u767b\u5f55\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4e4b\u4e00\uff1a<\/p>\n\n\n\n

    \n
  1. su \u547d\u4ee4<\/strong> \u2013 \u4f7f\u7528\u66ff\u4ee3\u7528\u6237\u548c\u7ec4 ID \u8fd0\u884c\u547d\u4ee4\u3002<\/li>\n\n\n\n
  2. sudo \u547d\u4ee4<\/strong> \u2013 \u4ee5\u53e6\u4e00\u4e2a\u7528\u6237\u7684\u8eab\u4efd\u6267\u884c\u547d\u4ee4\u3002<\/li>\n\n\n\n
  3. doas \u547d\u4ee4<\/strong> \u2013 sudo \u547d\u4ee4\u7684\u66ff\u4ee3\u65b9\u6848\uff0c\u6e90\u81ea OpenBSD \u9879\u76ee\u3002\u5b83\u4e0e\u591a\u4e2a Linux \u53d1\u884c\u7248\u517c\u5bb9\uff0c\u4f8b\u5982 Alpine Linux\u3002<\/li>\n\n\n\n
  4. \u5bc6\u7801\u6587\u4ef6 \/etc\/passwd<\/strong> \u2013 Linux \u7528\u6237\u5e10\u6237\u6587\u4ef6\u3002<\/li>\n\n\n\n
  5. \/etc\/\u7ec4<\/strong> \u2013 \u5b9a\u4e49\u7ec4\u6210\u5458\u8eab\u4efd\u7684\u6587\u4ef6\uff0c\u6388\u4e88\u7528\u6237\u8d85\u7ea7\u7528\u6237\u8bbf\u95ee\u6743\u9650\u3002<\/li>\n\n\n\n
  6. \/etc\/shadow<\/strong> \u2013 \u8be5\u6587\u4ef6\u5305\u542b\u6bcf\u4e2a\u7528\u6237\u7684 Linux \u5bc6\u7801\u4fe1\u606f\uff0c\u5bc6\u7801\u4ee5\u6563\u5217\u683c\u5f0f\u5b58\u50a8\u3002<\/li>\n<\/ol>\n\n\n\n

    \u5982\u4f55\u6210\u4e3a Linux \u4e2d\u7684\u8d85\u7ea7\u7528\u6237<\/h2>\n\n\n\n

    \u4ee5\u4e0b\u662f\u4f7f\u7528 \u82cf<\/code> \u548c \u987b\u85e4<\/code> \u547d\u4ee4\u6765\u5728 Linux \u4e2d\u83b7\u53d6\u8d85\u7ea7\u7528\u6237\u6743\u9650\u3002<\/p>\n\n\n\n

    \u4f7f\u7528 sudo \u547d\u4ee4\u6210\u4e3a Linux \u4e2d\u7684\u8d85\u7ea7\u7528\u6237<\/h2>\n\n\n\n

    \u8981\u4f7f\u7528 \u987b\u85e4<\/code> \u547d\u4ee4\uff0c\u60a8\u5fc5\u987b\u662f Linux \u4e0a\u7279\u5b9a\u6b21\u8981\u7ec4\u7684\u4e00\u90e8\u5206\uff1a<\/p>\n\n\n\n

      \n
    • sudo \u7ec4<\/strong> \u5728 Debian \u6216 Ubuntu \u4e0a<\/li>\n\n\n\n
    • \u8f6e\u7ec4<\/strong> \u5728 CentOS\u3001RHEL\u3001Fedora \u6216 Oracle Linux \u4e0a<\/li>\n<\/ul>\n\n\n\n

      \u60a8\u53ef\u4ee5\u901a\u8fc7\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u68c0\u67e5\u60a8\u7684\u6b21\u8981\u7ec4\u6210\u5458\u8eab\u4efd\uff1a \u7fa4\u7ec4<\/code> \u547d\u4ee4\u6216 ID<\/code> \u547d\u4ee4\u3002<\/p>\n\n\n\n

      \u7fa4\u7ec4 ID<\/code><\/pre><\/div>\n\n\n\n
      uid=1000\uff08\u7ba1\u7406\u5458\uff09gid=1000\uff08\u7ba1\u7406\u5458\uff09groups=1000\uff08\u7ba1\u7406\u5458\uff09\u30014\uff08\u7ba1\u7406\u5458\uff09\u300120\uff08\u62e8\u51fa\uff09\u300124\uff08cdrom\uff09\u300125\uff08\u8f6f\u76d8\uff09\u300127\uff08sudo\uff09\u300129\uff08\u97f3\u9891\uff09\u300130\uff08dip\uff09\u300144\uff08\u89c6\u9891\uff09\u300146\uff08plugdev\uff09<\/code><\/pre><\/div>\n\n\n\n

      \u60a8\u8fd8\u53ef\u4ee5\u4f7f\u7528 grep<\/code> \u6216\u8005 egrep<\/code> \u547d\u4ee4\u6765\u68c0\u67e5\u4f60\u662f\u5426\u5c5e\u4e8e \u987b\u85e4<\/code> \u6216\u8005 \u8f66\u8f6e<\/code> \u7ec4\u3002\u4f8b\u5982\uff1a<\/p>\n\n\n\n

      grep'sudo'\/etc\/group egrep'sudo|wheel'\/etc\/group egrep'sudo|wheel'\/etc\/group | grep $USER<\/code><\/pre><\/div>\n\n\n\n
      sudo:x:27:\u7ba1\u7406\u5458<\/code><\/pre><\/div>\n\n\n\n

      \u63a5\u4e0b\u6765\uff0c\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u5207\u6362\u5230 root\/\u8d85\u7ea7\u7528\u6237\uff1a<\/p>\n\n\n\n

      \"\"<\/figure>\n\n\n\n

      \u8d85\u7ea7\u7528\u6237\u767b\u5f55 - \u5982\u4f55\u4f7f\u7528 su \u6210\u4e3a Linux \u4e2d\u7684\u8d85\u7ea7\u7528\u6237<\/strong><\/h2>\n\n\n\n

      \u5728 Linux \u548c\u7c7b\u4f3c\u7684\u57fa\u4e8e Unix \u7684\u7cfb\u7edf\u4e2d\uff0c \u82cf<\/code> \u547d\u4ee4\u5141\u8bb8\u60a8\u5728\u767b\u5f55\u4f1a\u8bdd\u671f\u95f4\u5207\u6362\u5230\u53e6\u4e00\u4e2a\u7528\u6237\u6216\u4ee5\u8d85\u7ea7\u7528\u6237\u8eab\u4efd\u767b\u5f55\u3002\u5982\u679c\u4f7f\u7528\u65f6\u672a\u6307\u5b9a\u7528\u6237\u540d\uff0c \u82cf<\/code> \u9ed8\u8ba4\u5207\u6362\u5230\u8d85\u7ea7\u7528\u6237\u8d26\u6237\u3002<\/p>\n\n\n\n

      \u5f3a\u70c8\u5efa\u8bae\u4f7f\u7528 -<\/code> \u9009\u9879 \u82cf<\/code> \u547d\u4ee4\u3002\u6b64\u9009\u9879\u63d0\u4f9b\u7684\u73af\u5883\u4e0e root \u7528\u6237\u76f4\u63a5\u767b\u5f55\u65f6\u7684\u73af\u5883\u7c7b\u4f3c\u3002\u4f7f\u7528 \u82cf<\/code> \u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n\n\n\n

      \u82cf<\/code><\/pre><\/div>\n\n\n\n

      \u9000\u51fa su \u6216 sudo \u4f1a\u8bdd<\/strong><\/h2>\n\n\n\n

      \u8981\u9000\u51fa \u82cf<\/code> \u6216\u8005 \u987b\u85e4<\/code> \u4f1a\u8bdd\u4e2d\uff0c\u53ea\u9700\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u4e4b\u4e00\uff1a<\/p>\n\n\n\n

        \n
      • \u51fa\u53e3<\/code><\/strong><\/li>\n\n\n\n
      • \u767b\u51fa<\/code><\/strong><\/li>\n<\/ul>\n\n\n\n

        \u9000\u51fa\u7684\u53e6\u4e00\u79cd\u65b9\u5f0f \u82cf<\/code> \u6216\u8005 \u987b\u85e4<\/code> \u4f1a\u8bdd\u662f\u901a\u8fc7\u6309\u4e0b \u63a7\u5236\u952e<\/strong> \u548c \u5fb7<\/strong> \u952e\u540c\u65f6\u4f7f\u7528\u3002<\/p>\n\n\n\n

        \"\"<\/figure>","protected":false},"excerpt":{"rendered":"

        \u5982\u4f55\u5728 Linux \u4e2d\u4ee5\u8d85\u7ea7\u7528\u6237\u6216\u6839\u7528\u6237\u8eab\u4efd\u767b\u5f55 \u8d85\u7ea7\u7528\u6237\uff0c\u4e5f\u79f0\u4e3a\u6839\u7528\u6237\u6216\u7ba1\u7406\u5458\u5e10\u6237\uff0c\u662f Linux \u4e0a\u4e3a\u7cfb\u7edf\u7ba1\u7406\u4efb\u52a1\u4fdd\u7559\u7684\u7279\u6b8a\u7528\u6237\u5e10\u6237\u3002\u51fa\u4e8e\u5b89\u5168\u539f\u56e0\uff0c\u666e\u901a\u7528\u6237\u548c\u5f00\u53d1\u4eba\u5458\u901a\u5e38\u9ed8\u8ba4\u88ab\u7981\u6b62\u76f4\u63a5\u8bbf\u95ee\u6839\u5e10\u6237\u3002\u4ee5\u4e0b\u662f\u60a8\u7684\u767b\u5f55\u65b9\u5f0f<\/p>","protected":false},"author":1,"featured_media":2531,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[4],"tags":[],"class_list":{"0":"post-2524","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-linux"},"acf":[],"yoast_head":"\nLinux Login as Superuser ( root ) command<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/yolohive.com\/zh\/linux-\u4ee5\u8d85\u7ea7\u7528\u6237-root-\u547d\u4ee4\u767b\u5f55\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux Login as Superuser ( root ) command\" \/>\n<meta property=\"og:description\" content=\"How to Log in as Superuser or Root User in Linux The superuser, also known as the root user or admin account, is a special user account reserved for system administration tasks on Linux. For security reasons, regular users and developers are typically restricted from directly accessing the root account by default. Here\u2019s how you\" \/>\n<meta property=\"og:url\" content=\"https:\/\/yolohive.com\/zh\/linux-\u4ee5\u8d85\u7ea7\u7528\u6237-root-\u547d\u4ee4\u767b\u5f55\/\" \/>\n<meta property=\"og:site_name\" content=\"Yolohive\" \/>\n<meta property=\"article:published_time\" content=\"2024-12-14T07:20:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-14T07:21:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/yolohive.com\/wp-content\/uploads\/2024\/12\/Linux-Login-as-Superuser-root-command.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1170\" \/>\n\t<meta property=\"og:image:height\" content=\"780\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"YoloHive\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/yolohive.com\/linux-login-as-superuser-root-command\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/yolohive.com\/linux-login-as-superuser-root-command\/\"},\"author\":{\"name\":\"YoloHive\",\"@id\":\"https:\/\/yolohive.com\/#\/schema\/person\/571e1adbaca00ce3aae6a866320e2c00\"},\"headline\":\"Linux Login as Superuser ( root ) command\",\"datePublished\":\"2024-12-14T07:20:12+00:00\",\"dateModified\":\"2024-12-14T07:21:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/yolohive.com\/linux-login-as-superuser-root-command\/\"},\"wordCount\":544,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/yolohive.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/yolohive.com\/linux-login-as-superuser-root-command\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/yolohive.com\/wp-content\/uploads\/2024\/12\/Linux-Login-as-Superuser-root-command.jpg\",\"articleSection\":[\"Linux\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/yolohive.com\/linux-login-as-superuser-root-command\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/yolohive.com\/linux-login-as-superuser-root-command\/\",\"url\":\"https:\/\/yolohive.com\/linux-login-as-superuser-root-command\/\",\"name\":\"Linux Login as Superuser ( root ) command\",\"isPartOf\":{\"@id\":\"https:\/\/yolohive.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/yolohive.com\/linux-login-as-superuser-root-command\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/yolohive.com\/linux-login-as-superuser-root-command\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/yolohive.com\/wp-content\/uploads\/2024\/12\/Linux-Login-as-Superuser-root-command.jpg\",\"datePublished\":\"2024-12-14T07:20:12+00:00\",\"dateModified\":\"2024-12-14T07:21:20+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/yolohive.com\/linux-login-as-superuser-root-command\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/yolohive.com\/linux-login-as-superuser-root-command\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/yolohive.com\/linux-login-as-superuser-root-command\/#primaryimage\",\"url\":\"https:\/\/yolohive.com\/wp-content\/uploads\/2024\/12\/Linux-Login-as-Superuser-root-command.jpg\",\"contentUrl\":\"https:\/\/yolohive.com\/wp-content\/uploads\/2024\/12\/Linux-Login-as-Superuser-root-command.jpg\",\"width\":1170,\"height\":780},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/yolohive.com\/linux-login-as-superuser-root-command\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/yolohive.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux Login as Superuser ( root ) command\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/yolohive.com\/#website\",\"url\":\"https:\/\/yolohive.com\/\",\"name\":\"Yolohive\",\"description\":\"Discover, Learn, Thrive.\",\"publisher\":{\"@id\":\"https:\/\/yolohive.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/yolohive.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/yolohive.com\/#organization\",\"name\":\"Yolohive\",\"url\":\"https:\/\/yolohive.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/yolohive.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/yolohive.com\/wp-content\/uploads\/2024\/10\/yolo-hive-high-resolution-logo-black-transparent.png\",\"contentUrl\":\"https:\/\/yolohive.com\/wp-content\/uploads\/2024\/10\/yolo-hive-high-resolution-logo-black-transparent.png\",\"width\":1920,\"height\":1051,\"caption\":\"Yolohive\"},\"image\":{\"@id\":\"https:\/\/yolohive.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/yolohive.com\/#\/schema\/person\/571e1adbaca00ce3aae6a866320e2c00\",\"name\":\"YoloHive\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/yolohive.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d9a6a9371c602531682a2f0d8c36e698?s=96&d=https%3A%2F%2Fyolohive.com%2Fwp-content%2Fuploads%2F2024%2F11%2FAsset-8%404x-150x150.png&r=x\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d9a6a9371c602531682a2f0d8c36e698?s=96&d=https%3A%2F%2Fyolohive.com%2Fwp-content%2Fuploads%2F2024%2F11%2FAsset-8%404x-150x150.png&r=x\",\"caption\":\"YoloHive\"},\"sameAs\":[\"https:\/\/yolohive.com\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Linux Login as Superuser ( root ) command","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/yolohive.com\/zh\/linux-\u4ee5\u8d85\u7ea7\u7528\u6237-root-\u547d\u4ee4\u767b\u5f55\/","og_locale":"zh_CN","og_type":"article","og_title":"Linux Login as Superuser ( root ) command","og_description":"How to Log in as Superuser or Root User in Linux The superuser, also known as the root user or admin account, is a special user account reserved for system administration tasks on Linux. For security reasons, regular users and developers are typically restricted from directly accessing the root account by default. Here\u2019s how you","og_url":"https:\/\/yolohive.com\/zh\/linux-\u4ee5\u8d85\u7ea7\u7528\u6237-root-\u547d\u4ee4\u767b\u5f55\/","og_site_name":"Yolohive","article_published_time":"2024-12-14T07:20:12+00:00","article_modified_time":"2024-12-14T07:21:20+00:00","og_image":[{"width":1170,"height":780,"url":"https:\/\/yolohive.com\/wp-content\/uploads\/2024\/12\/Linux-Login-as-Superuser-root-command.jpg","type":"image\/jpeg"}],"author":"YoloHive","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/yolohive.com\/linux-login-as-superuser-root-command\/#article","isPartOf":{"@id":"https:\/\/yolohive.com\/linux-login-as-superuser-root-command\/"},"author":{"name":"YoloHive","@id":"https:\/\/yolohive.com\/#\/schema\/person\/571e1adbaca00ce3aae6a866320e2c00"},"headline":"Linux Login as Superuser ( root ) command","datePublished":"2024-12-14T07:20:12+00:00","dateModified":"2024-12-14T07:21:20+00:00","mainEntityOfPage":{"@id":"https:\/\/yolohive.com\/linux-login-as-superuser-root-command\/"},"wordCount":544,"commentCount":0,"publisher":{"@id":"https:\/\/yolohive.com\/#organization"},"image":{"@id":"https:\/\/yolohive.com\/linux-login-as-superuser-root-command\/#primaryimage"},"thumbnailUrl":"https:\/\/yolohive.com\/wp-content\/uploads\/2024\/12\/Linux-Login-as-Superuser-root-command.jpg","articleSection":["Linux"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/yolohive.com\/linux-login-as-superuser-root-command\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/yolohive.com\/linux-login-as-superuser-root-command\/","url":"https:\/\/yolohive.com\/linux-login-as-superuser-root-command\/","name":"Linux Login as Superuser ( root ) command","isPartOf":{"@id":"https:\/\/yolohive.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/yolohive.com\/linux-login-as-superuser-root-command\/#primaryimage"},"image":{"@id":"https:\/\/yolohive.com\/linux-login-as-superuser-root-command\/#primaryimage"},"thumbnailUrl":"https:\/\/yolohive.com\/wp-content\/uploads\/2024\/12\/Linux-Login-as-Superuser-root-command.jpg","datePublished":"2024-12-14T07:20:12+00:00","dateModified":"2024-12-14T07:21:20+00:00","breadcrumb":{"@id":"https:\/\/yolohive.com\/linux-login-as-superuser-root-command\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/yolohive.com\/linux-login-as-superuser-root-command\/"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/yolohive.com\/linux-login-as-superuser-root-command\/#primaryimage","url":"https:\/\/yolohive.com\/wp-content\/uploads\/2024\/12\/Linux-Login-as-Superuser-root-command.jpg","contentUrl":"https:\/\/yolohive.com\/wp-content\/uploads\/2024\/12\/Linux-Login-as-Superuser-root-command.jpg","width":1170,"height":780},{"@type":"BreadcrumbList","@id":"https:\/\/yolohive.com\/linux-login-as-superuser-root-command\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/yolohive.com\/"},{"@type":"ListItem","position":2,"name":"Linux Login as Superuser ( root ) command"}]},{"@type":"WebSite","@id":"https:\/\/yolohive.com\/#website","url":"https:\/\/yolohive.com\/","name":"Yolohive","description":"Discover, Learn, Thrive.","publisher":{"@id":"https:\/\/yolohive.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/yolohive.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Organization","@id":"https:\/\/yolohive.com\/#organization","name":"Yolohive","url":"https:\/\/yolohive.com\/","logo":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/yolohive.com\/#\/schema\/logo\/image\/","url":"https:\/\/yolohive.com\/wp-content\/uploads\/2024\/10\/yolo-hive-high-resolution-logo-black-transparent.png","contentUrl":"https:\/\/yolohive.com\/wp-content\/uploads\/2024\/10\/yolo-hive-high-resolution-logo-black-transparent.png","width":1920,"height":1051,"caption":"Yolohive"},"image":{"@id":"https:\/\/yolohive.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/yolohive.com\/#\/schema\/person\/571e1adbaca00ce3aae6a866320e2c00","name":"YoloHive","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/yolohive.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d9a6a9371c602531682a2f0d8c36e698?s=96&d=https%3A%2F%2Fyolohive.com%2Fwp-content%2Fuploads%2F2024%2F11%2FAsset-8%404x-150x150.png&r=x","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d9a6a9371c602531682a2f0d8c36e698?s=96&d=https%3A%2F%2Fyolohive.com%2Fwp-content%2Fuploads%2F2024%2F11%2FAsset-8%404x-150x150.png&r=x","caption":"YoloHive"},"sameAs":["https:\/\/yolohive.com"]}]}},"_links":{"self":[{"href":"https:\/\/yolohive.com\/zh\/wp-json\/wp\/v2\/posts\/2524"}],"collection":[{"href":"https:\/\/yolohive.com\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yolohive.com\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yolohive.com\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yolohive.com\/zh\/wp-json\/wp\/v2\/comments?post=2524"}],"version-history":[{"count":2,"href":"https:\/\/yolohive.com\/zh\/wp-json\/wp\/v2\/posts\/2524\/revisions"}],"predecessor-version":[{"id":2534,"href":"https:\/\/yolohive.com\/zh\/wp-json\/wp\/v2\/posts\/2524\/revisions\/2534"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/yolohive.com\/zh\/wp-json\/wp\/v2\/media\/2531"}],"wp:attachment":[{"href":"https:\/\/yolohive.com\/zh\/wp-json\/wp\/v2\/media?parent=2524"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yolohive.com\/zh\/wp-json\/wp\/v2\/categories?post=2524"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yolohive.com\/zh\/wp-json\/wp\/v2\/tags?post=2524"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}