{"id":110,"date":"2014-06-19T00:08:31","date_gmt":"2014-06-19T00:08:31","guid":{"rendered":"http:\/\/192.168.1.102\/?p=110"},"modified":"2015-05-20T21:01:40","modified_gmt":"2015-05-20T21:01:40","slug":"chroot-sftp-in-aws-with-likewise-pbis-7-5","status":"publish","type":"post","link":"https:\/\/digitalsos.net\/?p=110","title":{"rendered":"chroot sftp in AWS with likewise \/ pbis 7.5+"},"content":{"rendered":"<p>Oh the humanity!\u00a0 Configuring chrooted sftp always seems like a chore when you combine it with an out side authentication like winbind or pbis (Power Broker Identity Services).<\/p>\n<p>So configuring \/etc\/ssh\/sshd_config is straight forward.\u00a0 All you need to change is:<\/p>\n<p><a title=\"SFTP\" href=\"http:\/\/en.wikibooks.org\/wiki\/OpenSSH\/Cookbook\/SFTP\">http:\/\/en.wikibooks.org\/wiki\/OpenSSH\/Cookbook\/SFTP<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>But I kept seeing errors in \/var\/log\/secure that said denied access because they are not in the &#8216;require membership of&#8217; list and\u00a0[lsass-pam] [module:pam_lsass]pam_sm_authenticate error [login:domain.local\\user][error code:40158]<\/p>\n<p>Finally figured out that you can adjust this so that they are allowed performing the following commands (need to be root or have sudo access):<\/p>\n<pre><code>\/opt\/pbis\/bin\/config --list\r\n\r\n\/opt\/pbis\/bin\/config --details RequireMembershipOf\r\n\r\n\/opt\/pbis\/bin\/config RequireMembershipOf \"domain.local\\\\account1\" \"domain.local\\\\user2\"<\/code><\/pre>\n<p>Just don&#8217;t change something major like <\/p>\n<pre><code>sudo \/opt\/pbis\/bin\/config AssumeDefaultDomain true<\/code><\/pre>\n<p>That will just lock you out.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Oh the humanity!\u00a0 Configuring chrooted sftp always seems like a chore when you combine it with an out side authentication like winbind or pbis (Power Broker Identity Services). So configuring \/etc\/ssh\/sshd_config is straight forward.\u00a0 All you need to change is: http:\/\/en.wikibooks.org\/wiki\/OpenSSH\/Cookbook\/SFTP &nbsp; But I kept seeing errors in \/var\/log\/secure that said denied access because they<\/p>\n<div class=\"read-more-wrapper\"><a class=\"read-more\" href=\"https:\/\/digitalsos.net\/?p=110\" title=\"Read More\"> <span class=\"button \">Read More<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[19],"tags":[27,29,30,28],"class_list":["post-110","post","type-post","status-publish","format-standard","hentry","category-linux","tag-aws","tag-likewise","tag-pbis","tag-sftp"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pgxmGV-1M","_links":{"self":[{"href":"https:\/\/digitalsos.net\/index.php?rest_route=\/wp\/v2\/posts\/110","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digitalsos.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digitalsos.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digitalsos.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/digitalsos.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=110"}],"version-history":[{"count":2,"href":"https:\/\/digitalsos.net\/index.php?rest_route=\/wp\/v2\/posts\/110\/revisions"}],"predecessor-version":[{"id":112,"href":"https:\/\/digitalsos.net\/index.php?rest_route=\/wp\/v2\/posts\/110\/revisions\/112"}],"wp:attachment":[{"href":"https:\/\/digitalsos.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digitalsos.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=110"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digitalsos.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}