[meta-lsi] [PATCH 35/86] shadow-securetty: Allow root login through telnet

Daniel Dragomir daniel.dragomir at windriver.com
Wed Oct 29 08:35:43 PDT 2014


From: "Hong H. Pham" <hong.pham at windriver.com>

Append pts/[0..9] to /etc/securetty to allow root login through telnet.

Signed-off-by: Hong H. Pham <hong.pham at windriver.com>
---
 .../shadow/shadow-securetty_4.1.4.3.bbappend        | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 recipes-core/shadow/shadow-securetty_4.1.4.3.bbappend

diff --git a/recipes-core/shadow/shadow-securetty_4.1.4.3.bbappend b/recipes-core/shadow/shadow-securetty_4.1.4.3.bbappend
new file mode 100644
index 0000000..0550f0b
--- /dev/null
+++ b/recipes-core/shadow/shadow-securetty_4.1.4.3.bbappend
@@ -0,0 +1,21 @@
+do_install_append() {
+	# Allow root to log in through telnet.  This is a security hole
+	# but it is needed for legacy reasons (i.e. testing).
+
+	cat >> ${D}${sysconfdir}/securetty << _EOM
+
+# XXX: allow root to log in through telnet.  Needed for testing.
+pts/0
+pts/1
+pts/2
+pts/3
+pts/4
+pts/5
+pts/6
+pts/7
+pts/8
+pts/9
+
+_EOM
+
+}
-- 
1.8.1.4



More information about the meta-lsi mailing list