{"id":545,"date":"2011-01-28T00:30:38","date_gmt":"2011-12-20T13:51:50","guid":{"rendered":"http:\/\/kraftek.com\/blog\/enable-ftp-access-disable-telnet-for-only-some-users\/"},"modified":"2011-01-28T00:30:38","modified_gmt":"2011-12-20T13:51:50","slug":"enable-ftp-access-disable-telnet-for-only-some-users","status":"publish","type":"post","link":"\/blog\/index.php\/enable-ftp-access-disable-telnet-for-only-some-users\/","title":{"rendered":"enable ftp access, disable telnet for only some users"},"content":{"rendered":"<p>To make &#8220;only ftp&#8221; users, meaning they can only use ftp, no telnet or ssh, do this:<br \/>\nadd \/bin\/false to the list of shells in \/etc\/shells<br \/>\nchange your user&#8217;s shell to \/bin\/false<br \/>\nTo make users be able to sftp &amp; ftp, but not telnet or ssh change their shell to \/usr\/sbin\/sftp-server<br \/>\ndone!<br \/>\ntesting ipmp<br \/>\nTo make one of your interfaces fail:<br \/>\n# ifconfig adapter_name modinsert ldterm@2<br \/>\nTo get it back<br \/>\n# ifconfig adapter_name modremove ldterm@2<br \/>\nYou can also do the supported command:<br \/>\n#if_mpadm -d qfe1<br \/>\nto get it back<br \/>\n# if_mpadm -r qfe1<br \/>\n221\/433<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To make &#8220;only ftp&#8221; users, meaning they can only use ftp, no telnet or ssh, do this: add \/bin\/false to the list of shells in \/etc\/shells change your user&#8217;s shell to \/bin\/false To make users be able to sftp &amp; ftp, but not telnet or ssh change their shell to \/usr\/sbin\/sftp-server done! testing ipmp To [&hellip;]<\/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-545","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/545","targetHints":{"allow":["GET"]}}],"collection":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=545"}],"version-history":[{"count":0,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/545\/revisions"}],"wp:attachment":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=545"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=545"},{"taxonomy":"post_tag","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=545"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}