{"id":185,"date":"2017-04-27T11:23:21","date_gmt":"2017-04-27T11:23:21","guid":{"rendered":"http:\/\/info.ffteixeira.net\/2017\/04\/27\/how-to-switch-to-root-using-su-on-freebsd\/"},"modified":"2017-04-27T11:23:21","modified_gmt":"2017-04-27T11:23:21","slug":"how-to-switch-to-root-using-su-on-freebsd","status":"publish","type":"post","link":"https:\/\/blog.ffteixeira.net\/?p=185","title":{"rendered":"How to switch to root using su on FreeBSD"},"content":{"rendered":"<p>How can a &quot;normal&quot; user get root rights, or actually switch to root account using the su command when working under FreeBSD?<\/p>\n<p>To do that, that &quot;normal&quot; user needs to be in <em>wheel<\/em> group. So this command will enable a given user to be able to switch to root account with the command &quot;su &#8211; root&quot; or just &quot;su &#8211; &quot;<\/p>\n<pre>\n<code>pw groupmod wheel -m [user]\n<\/code><\/pre>\n<p>Now that user will be able to become root. This is a good security feature that FreeBSD has, and that I did not know.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/www.garron.me\/en\/bits\/switch-access-get-root-freebsd.html\" target=\"_blank\" rel=\"noopener noreferrer\">Credits <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How can a &quot;normal&quot; user get root rights, or actually switch to root account using the su command when working under FreeBSD? To do that, that &quot;normal&quot; user needs to be in wheel group. So this command will enable a &hellip; <a href=\"https:\/\/blog.ffteixeira.net\/?p=185\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-185","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/posts\/185","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=185"}],"version-history":[{"count":0,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/posts\/185\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=185"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=185"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}