All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denys Dmytriyenko <denys@ti.com>
To: "Franklin S. Cooper Jr" <fcooperjr27@gmail.com>
Cc: meta-arago@arago-project.org, "Franklin S. Cooper Jr" <fcooper@ti.com>
Subject: Re: [PATCH] shadow-securetty: Allow remote telnet login as root
Date: Wed, 7 Nov 2012 16:21:29 -0500	[thread overview]
Message-ID: <20121107212129.GH11967@edge> (raw)
In-Reply-To: <1352322311-11941-1-git-send-email-fcooper@ti.com>

On Wed, Nov 07, 2012 at 03:05:11PM -0600, Franklin S. Cooper Jr wrote:
> * Need to add pts/X to the securetty file to allow remote login via telnet as root

Why do we need telnetd and specifically with root login? Isn't sshd not 
enough? Previously telnetd was enabled because we couldn't ship sshd...


> Signed-off-by: Franklin S. Cooper Jr <fcooper@ti.com>
> ---
>  .../shadow/shadow-securetty_4.1.4.3.bbappend       |   15 +++++++++++++++
>  1 files changed, 15 insertions(+), 0 deletions(-)
>  create mode 100644 meta-arago-distro/recipes-extended/shadow/shadow-securetty_4.1.4.3.bbappend
> 
> diff --git a/meta-arago-distro/recipes-extended/shadow/shadow-securetty_4.1.4.3.bbappend b/meta-arago-distro/recipes-extended/shadow/shadow-securetty_4.1.4.3.bbappend
> new file mode 100644
> index 0000000..a09c514
> --- /dev/null
> +++ b/meta-arago-distro/recipes-extended/shadow/shadow-securetty_4.1.4.3.bbappend
> @@ -0,0 +1,15 @@
> +PR_append = "-arago0"
> +
> +do_install_append () {
> +    # Allow telnet sessions to login as root
> +    securetty_file=${D}${sysconfdir}/securetty
> +
> +    printf '\n' >> $securetty_file
> +    printf '# Allow 5 telnet login\n' >> $securetty_file
> +    printf 'pts/0\n' >> $securetty_file
> +    printf 'pts/1\n' >> $securetty_file
> +    printf 'pts/2\n' >> $securetty_file
> +    printf 'pts/3\n' >> $securetty_file
> +    printf 'pts/4\n' >> $securetty_file

You don't need to escape anything here, why not simply use "echo"?

> +
> +}
> -- 
> 1.7.0.4
> 
> _______________________________________________
> meta-arago mailing list
> meta-arago@arago-project.org
> http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago


  reply	other threads:[~2012-11-07 21:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-07 21:05 [PATCH] shadow-securetty: Allow remote telnet login as root Franklin S. Cooper Jr
2012-11-07 21:21 ` Denys Dmytriyenko [this message]
2012-11-07 21:40   ` Cooper Jr., Franklin
2013-01-03 20:09     ` Cooper Jr., Franklin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20121107212129.GH11967@edge \
    --to=denys@ti.com \
    --cc=fcooper@ti.com \
    --cc=fcooperjr27@gmail.com \
    --cc=meta-arago@arago-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.