+ Responder ao Tópico



  1. #1

    Padrão Mudar mensagem no pure-ftpd

    Como faco para mudar a mensagem logo apos que o usuario digita o usuario e senha, como essa do slackware abaixo.

    30-*************************************************************************
    Welcome to ftp.slackware.com,

    You are user 31 of 96.

    On This Site:
    /pub/slackware/ Slackware Linux

    If you experience any problems e-mail us: [email protected]
    *************************************************************************

    230 Anonymous access granted, restrictions apply.
    Remote system type is UNIX.
    Using binary mode to transfer files.

  2. #2

    Padrão Re: Mudar mensagem no pure-ftpd

    Citação Postado originalmente por diogotog
    Como faco para mudar a mensagem logo apos que o usuario digita o usuario e senha, como essa do slackware abaixo.

    30-*************************************************************************
    Welcome to ftp.slackware.com,

    You are user 31 of 96.

    On This Site:
    /pub/slackware/ Slackware Linux

    If you experience any problems e-mail us: [email protected]
    *************************************************************************

    230 Anonymous access granted, restrictions apply.
    Remote system type is UNIX.
    Using binary mode to transfer files.
    Diogo,
    para adicionar mensagens as telas de login do pure-ftpd é necessário um software aparte chamado "fortune". Tendo instalado o "fortune" e cumprido as dependências adicione aos parametros de inicialização do pure-ftpd "-F /usr/share/fortune/meufortunequote".

    A localização do diretório "/usr/share/fortune" deve variar em cada distribuição mas acredito que isso não seria um problema para você descobrir qual é. O formato do arquivo usado para armazenar o(s) texto(s) seria o seguinte mostrado como exemplo logo abaixo.

    Chuck Norris' tears cure cancer. Too bad he has never cried. Ever.
    %
    Chuck Norris does not sleep. He waits.
    %
    Chuck Norris is currently suing NBC, claiming Law and Order are trademarked names for his left and right legs.
    %
    The chief export of Chuck Norris is pain.
    %
    If you can see Chuck Norris, he can see you. If you can't see Chuck Norris, you may be only seconds away from death.
    %
    Chuck Norris has counted to infinity. Twice.
    %
    Chuck Norris does not hunt because the word hunting implies the probability of failure. Chuck Norris goes killing.
    %
    Chuck Norris' blood type is AK+. Ass-Kicking Positive. It is compatible only with heavy construction equipment, tanks, and fighter jets.
    %
    Chuck Norris is 1/8th Cherokee. This has nothing to do with ancestry, the man ate a fucking Indian.
    %
    In fine print on the last page of the Guinness Book of World Records it notes that all world records are held by Chuck Norris, and those list
    ed in the book are simply the closest anyone else has ever gotten.
    There is no chin behind Chuck Norris' beard. There is only another fist.
    %
    Chuck Norris does not teabag the ladies. He potato-sacks them.
    Pluto is actually an orbiting group of British soldiers from the American Revolution who entered space after the Chuck gave them a roundhouse
    kick to the face.
    %
    Espero que tenha esclarecido. Boa Sorte.

    Link: http://www.redellipse.net/code/fortune