The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

permissão, como fazer?

Discussion in 'Discussões em Português' started by Fabricio Macedo, Sep 19, 2015.

  1. Fabricio Macedo

    Joined:
    Sep 8, 2015
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brasil
    cPanel Access Level:
    DataCenter Provider
    boa tarde amigos, estou recebendo essa mensagem pelo CRON:

    head: cannot open `/etc/mailips' for reading: Permission denied

    como dar permissão de forma simples?
    sou novo no meio de criação do zero e estou enfrentando muitos problemas :)
    obrigado desde já.
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello,

    Have you changed that file permission ?

    please check it and try to setup correct permission for that file.

    Code:
    -rw-r----- 1 root mail 0 Sep 19 23:22 /etc/mailips

    Translate :

    Você mudou de que a permissão de arquivo?

    por favor verifique-lo e tentar configuração correta permissão para esse arquivo.

    Code:
    -rw-r----- 1 root mail 0 Sep 19 23:22 /etc/mailips
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Could you elaborate on the specific cron job that's generating this error message?

    Thank you.

    Translation:

    Olá :)

    Você poderia elaborar sobre o trabalho cron específico que está gerando esta mensagem de erro?

    Obrigado.
     
  4. Fabricio Macedo

    Joined:
    Sep 8, 2015
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brasil
    cPanel Access Level:
    DataCenter Provider
    foi um CRON que gerei para alteração de IPS de minha máquina.
    mas ja consegui dar permissão. obrigado!
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    I am happy to see the issue is now resolved. Thank you for updating us with the outcome.

    Translation:

    Fico feliz em ver que o problema seja resolvido agora. Obrigado por atualizar-nos com o resultado.
     
  6. Fabricio Macedo

    Joined:
    Sep 8, 2015
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brasil
    cPanel Access Level:
    DataCenter Provider
    amigos, estou instalando outra maquina e a permissão não funcionou!.

    insiro: chmod 0777 /etc/mailips

    aparece o erro:
    head: cannot open `/etc/mailips' for reading: Permission denied
    /home/usuario/eximrandomips.sh: line 18: [: 111.111.111.111: unary operator expected
    /home/usuario/eximrandomips.sh: line 18: [: 222.222.222.222: unary operator expected
    /home/usuario/eximrandomips.sh: line 27: /etc/mailips: Permission denied


    -------------------------
    ls -l /etc/mailips
    -rwxrwxrwx 1 root mail 0 Sep 21 18:36 /etc/mailips*

    stat /etc/mailips
    File: `/etc/mailips'
    Size: 0 Blocks: 0 IO Block: 4096 regular empty file
    Device: 7fa0b641h/2141238849d Inode: 276778 Links: 1
    Access: (0777/-rwxrwxrwx) Uid: ( 0/ root) Gid: ( 12/ mail)
    Access: 2015-09-21 18:36:30.000000000 -0400
    Modify: 2015-09-21 18:36:30.000000000 -0400
    Change: 2015-09-22 10:06:49.106459837 -0400
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    It's not about permissions, but rather about file ownership. The cPanel user running that script is not allowed to access the /etc/mailips file. You will need to run that script under "root" if you want it to have access to that file. The /etc/mailips file should have 0640 permissions.

    Thank you.

    Translation:

    Não é sobre permissões, mas sim sobre a propriedade do arquivo. O usuário cPanel execução desse script não tem permissão para acessar o arquivo / etc / mailips. Você precisará executar esse script sob "root" se você quiser ter acesso a esse arquivo. O arquivo / etc / mailips deve ter permissões 0640.

    Obrigado.
     
  8. Fabricio Macedo

    Joined:
    Sep 8, 2015
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brasil
    cPanel Access Level:
    DataCenter Provider
    ja consegui amigo, só habilitei o shell, erro meu mesmo! obrigado
     
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    I am happy to see the issue is now resolved. Thank you for updating us with the outcome.

    Translation:

    Fico feliz em ver que o problema seja resolvido agora. Obrigado por atualizar-nos com o resultado.
     
Loading...

Share This Page