Skip to content
Snippets Groups Projects
opentelnet.sh 245 B
Newer Older
  • Learn to ignore specific revisions
  • #!/bin/sh
    if [ ! -f /etc/telnetflag ]; then
    	touch /etc/telnetflag
           sed -i "s|:/root:/sbin/nologin|:/root:/bin/sh|" /etc/passwd
    #	cp -f /etc/telnetpasswd /etc/passwd
    #	cp -f /etc/telnetshadow /etc/shadow
    	telnetd &
    	/etc/init.d/etcsync
    fi