{"id":3125,"date":"2022-12-20T16:43:32","date_gmt":"2022-12-20T19:43:32","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/xdmshell-man8\/"},"modified":"2022-12-20T16:43:32","modified_gmt":"2022-12-20T19:43:32","slug":"xdmshell-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/xdmshell-man8\/","title":{"rendered":"XDMSHELL (man8)"},"content":{"rendered":"<h1 align=\"center\">XDMSHELL<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">xdmshell \u2212 shell for starting xdm on login<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\/usr\/bin\/xdmshell<\/b><\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b><i>Xdmshell<\/i><\/b> can be used on systems that are configured to start a console in text mode by default, to allow users to start the X display manager by logging in as a special user with the shell set to the xdmshell program.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Many servers set the keyboard to do non-blocking I\/O under the assumption that they are the only programs attempting to read from the keyboard. Unfortunately, some versions of <i>getty<\/i>(8) will immediately see a continuous stream of zero-length reads which they interpret as end-of-file indicators. Eventually, <i>init<\/i>(8) will disable logins on that line until somebody types the following as root:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">On some platforms, one alternative is to disable logins on the console and always run <i>xdm<\/i>(8) from <i>\/etc\/inittab<\/i>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Another approach is to set up an account whose shell is the <i>xdmshell<\/i> program found in the xdm distribution. This program is not installed by default so that site administrators will examine it to see if it meets their needs. The <i>xdmshell<\/i> utility makes sure that it is being run from the appropriate type of terminal, starts <i>xdm<\/i>, waits for it to finish, and then resets the console if necessary. If the <i>xdm<\/i> resources file (specified by the <i>DisplayManager*resources<\/i> entry in the <i>xdm-config<\/i> file) contains a binding to the <i>abort-display<\/i> action similar to the following<\/p>\n<p style=\"margin-left:22%;\">xlogin*login.translations: #override Ctrl<Key>R: abort-display()<\/p>\n<p style=\"margin-left:11%;\">the console can then by restored by pressing the indicated key (Control-R in the above example) in the <i>xdm<\/i> login window.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>xdmshell<\/i> program is usually installed setuid to root but executable only by members of a special group, of which the only member is the account which has <i>xdmshell<\/i> as its shell:<\/p>\n<p style=\"margin-left:22%;\">% grep xdm \/etc\/passwd <br \/> x::101:51:Account for starting up X:\/tmp:\/usr\/bin\/xdmshell <br \/> % grep 51 \/etc\/group <br \/> xdmgrp:*:51: <br \/> % ls -lg \/usr\/bin\/xdmshell <br \/> -rws&#8211;x&#8212; 1 root xdmgrp 20338 Nov 1 01:32 \/usr\/bin\/xdmshell<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If the <i>xdm<\/i> resources have not been configured to have a key bound to the <i>abort-display()<\/i> action, there will be no way for general users to login to the console directly. Whether or not this is desirable depends on the particular site.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>X<\/i>(7), <i>xdm<\/i>(8), <i>xinit<\/i>(1)<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  xdmshell \u2212 shell for starting xdm on login <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,4,271],"class_list":["post-3125","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-man8","tag-xdmshell"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3125","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=3125"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3125\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}