{"id":31,"date":"2007-10-14T06:26:51","date_gmt":"2007-10-13T22:26:51","guid":{"rendered":"http:\/\/www.sysadmindayph.com\/blog\/server-refused-to-allocate-pty-warning-no-access-to-tty-bad-file-number\/"},"modified":"2007-10-14T06:27:29","modified_gmt":"2007-10-13T22:27:29","slug":"server-refused-to-allocate-pty-warning-no-access-to-tty-bad-file-number","status":"publish","type":"post","link":"http:\/\/www.sysadmindayph.com\/blog\/server-refused-to-allocate-pty-warning-no-access-to-tty-bad-file-number\/","title":{"rendered":"Server refused to allocate pty Warning: no access to tty (Bad file number)"},"content":{"rendered":"<h2>(Also for <strong>Solaris PTY<\/strong>. Setting up number of PTYs)<\/h2>\n<p>That error was experienced when trying to connect to a server through ssh. The server being accessed here is a Sunfire V20 running Solaris 2.6.<\/p>\n<p>First glance, looks like that the maximum number of allowed ssh connection has been reached. This is a knows issue for old version of Solaris but not in 5.8 and newer. Solaris kernel tuning is required.<\/p>\n<p>All jobs\/services were transferred from one box to another. From the old server, there was no reported login problem (&#8220;Server refused to allocation pty&#8221;) ever.<\/p>\n<p><strong>Setup maxuser on Solaris 2.6<\/strong><\/p>\n<p>To change the default value of &#8216;maxuser&#8217; on a Solaris 2.6, we need to edit \/etc\/system and add the required value.<\/p>\n<blockquote><p> The default value is set to either the number of MB of  physical memory or <code>MAX_DEFAULT_MAXUSERS<\/code>, whichever is lower.<\/p>\n<p>For Solaris 2.5.1-7, <code>MAX_DEFAULT_MAXUSERS<\/code> is 1024.  For Solaris  8-10, <code>MAX_DEFAULT_MAXUSERS<\/code> is 2048.<\/p>\n<p><code>maxusers<\/code> can be set explicitly in the \/etc\/system file, but is limited to 2x <code>MAX_DEFAULT_MAXUSERS<\/code>.<\/p><\/blockquote>\n<p>After editing the \/etc\/system file, the box need to be restarted.<\/p>\n<p>More information can be seen <a href=\"http:\/\/www.princeton.edu\/~unix\/Solaris\/troubleshoot\/kerntune.html\">here<\/a> and <a href=\"http:\/\/www.brandonhutchinson.com\/Solaris_pty's.html\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>(Also for Solaris PTY. Setting up number of PTYs) That error was experienced when trying to connect to a server through ssh. The server being accessed here is a Sunfire V20 running Solaris 2.6. First &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,5],"tags":[],"class_list":["post-31","post","type-post","status-publish","format-standard","hentry","category-kernel-tuning","category-solaris"],"_links":{"self":[{"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts\/31","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/comments?post=31"}],"version-history":[{"count":0,"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts\/31\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/media?parent=31"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/categories?post=31"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/tags?post=31"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}