Welcome to the Linux Foundation Forum!

Lab 9.5. Enable StartTLS for Postfix, and Force Plain-Text Logins to Use StartTLS

Hi fellow learners,
I have found myself a bit stuck on this lab.
it says in the instruction that

cat /tmp/postfix.key > /etc/postfix/postfix.pem

I have tried this but i am denied even when i use sudo

Please can anyone help me.

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Comments

  • Posts: 115

    Hello davidboadu,

    The redirection (>) opens a new shell so you either have to switch to root user account instead of using sudo or do something like this

    cat /tmp/postfix.key | sudo tee /etc/postfix/postfix.pem

  • Posts: 380
    edited October 2021

    Another option is the interactive option in sudo:
    $ sudo -i
    # cat /tmp/postfix.key > /etc/postfix/postfix.pem
    # exit

  • thanks i tried that and it worked

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training