Find the answer to your Linux question:
Results 1 to 4 of 4
Working in Debian I've generated a private key. Code: sudo openssl req -x509 -nodes -newkey rsa:1024 -keyout /etc/ssl/private/pure-ftpd.pem -out /etc/ssl/private/pure-ftpd.pem Then I am attempting to configure for TLS only. Code: ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2009
    Posts
    16

    echo Permission Denied


    Working in Debian I've generated a private key.
    Code:
    sudo openssl req -x509 -nodes -newkey rsa:1024 -keyout /etc/ssl/private/pure-ftpd.pem -out /etc/ssl/private/pure-ftpd.pem
    Then I am attempting to configure for TLS only.
    Code:
    Sudo echo 2 > /etc/pure-ftpd/conf/TLS
    Problem is I keep getting an 'permission denied' response.
    Last edited by rfxcasey; 07-07-2013 at 11:23 AM.

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,307
    hi,

    you are running 'echo' as root, but the redirection ('>') is being called by you. instead, try this:
    Code:
    echo 2 | sudo tee /etc/pure-ftpd/conf/TLS
    or try wrapping the whole thing in quotes:

    Code:
    sudo "echo 2 > /etc/pure-ftpd/conf/TLS"

  3. #3
    Just Joined!
    Join Date
    Sep 2009
    Posts
    16
    Quote Originally Posted by atreyu View Post
    hi,

    you are running 'echo' as root, but the redirection ('>') is being called by you. instead, try this:
    Code:
    echo 2 | sudo tee /etc/pure-ftpd/conf/TLS
    or try wrapping the whole thing in quotes:

    Code:
    sudo "echo 2 > /etc/pure-ftpd/conf/TLS"
    Worked, thanks. Been a few days but iirc it was the quote wrapping that did the trick.

  4. #4
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,307
    great, glad you got it sorted.

    marking as Solved. Note that you can do this yourself using the Thread Tools link at the top of the page.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •