{"id":5187,"date":"2015-01-26T16:47:04","date_gmt":"2015-01-26T15:47:04","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/hayek\/jochen\/wp\/blog-en\/?p=5187"},"modified":"2015-01-26T16:47:04","modified_gmt":"2015-01-26T15:47:04","slug":"synology-diskstation-bash-ssh","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2015\/01\/26\/synology-diskstation-bash-ssh\/","title":{"rendered":"Synology DiskStations \u2013 ordinary user accounts cannot have bash as a default shell to SSH into"},"content":{"rendered":"<ul>\n<li><a href=\"http:\/\/serverfault.com\/questions\/458553\/cant-log-in-via-ssh-to-any-accounts-set-to-use-bin-bash-as-a-default-shell\">http:\/\/serverfault.com\/questions\/458553\/cant-log-in-via-ssh-to-any-accounts-set-to-use-bin-bash-as-a-default-shell<\/a><\/li>\n<li>Synology employs a customised version of ssh, having a modified C function &#8220;IsAllowShell&#8221;, only allowing \/bin\/sh and \/bin\/ash<\/li>\n<li>in order to achieve my goal, I inserted this code into my $HOME\/.profile (code coped and adopted from the discussion thread quoted above):<\/li>\n<\/ul>\n<pre>[ -x \/opt\/bin\/bash ] &amp;&amp; exec \/opt\/bin\/bash -login<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>http:\/\/serverfault.com\/questions\/458553\/cant-log-in-via-ssh-to-any-accounts-set-to-use-bin-bash-as-a-default-shell Synology employs a customised version of ssh, having a modified C function &#8220;IsAllowShell&#8221;, only allowing \/bin\/sh and \/bin\/ash in order to achieve my goal, I inserted this code into my $HOME\/.profile (code coped and adopted from the discussion thread quoted above): [ -x \/opt\/bin\/bash ] &amp;&amp; exec \/opt\/bin\/bash -login<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","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},"_share_on_mastodon":"0"},"categories":[575],"tags":[],"class_list":["post-5187","post","type-post","status-publish","format-standard","hentry","category-synology"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-1lF","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/5187","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=5187"}],"version-history":[{"count":0,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/5187\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=5187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=5187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=5187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}