summaryrefslogtreecommitdiffstats
path: root/services/telnetd/include/passwd.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2012-07-28 07:10:41 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2012-07-28 07:10:41 -0500
commitff43f5d4444485d60f8bb69f1978d462b8b2707d (patch)
treeeec5bc397b0324002061b273c0db13eb7ef4eba5 /services/telnetd/include/passwd.h
parentftpd: Added from old stack (diff)
downloadrtems-libbsd-ff43f5d4444485d60f8bb69f1978d462b8b2707d.tar.bz2
telnetd: Added from old stack
Diffstat (limited to 'services/telnetd/include/passwd.h')
-rw-r--r--services/telnetd/include/passwd.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/services/telnetd/include/passwd.h b/services/telnetd/include/passwd.h
new file mode 100644
index 00000000..8d5c299a
--- /dev/null
+++ b/services/telnetd/include/passwd.h
@@ -0,0 +1,25 @@
+/* Define a default password for telnetd here.
+ * NOTES:
+ * - this can be overridden at run-time by setting
+ * the "TELNETD_PASSWD" environment variable.
+ * As soon as that variable is set, the new password
+ * is effective - no need to restart telnetd.
+ * - this must be set to an _encrypted_ password, NOT
+ * the cleartext. Use the 'genpw' utility to generate
+ * a password string:
+ *
+ * 1) Compile 'genpw.c' for the HOST, i.e.
+ * cc -o genpw genpw.c -lcrypt
+ * 1) delete an old password definition from this file.
+ * 2) run './genpw >> passwd.h'. This will append
+ * a new definition to this file.
+ *
+ * - if no password is defined here, no authentication
+ * is needed, i.e. telnet is open to the world.
+ *
+ * T. Straumann <strauman@slac.stanford.edu>
+ */
+
+/* #undef TELNETD_DEFAULT_PASSWD */
+/* Default password: 'rtems' */
+#define TELNETD_DEFAULT_PASSWD "tduDcyLX12owo"