Autor Tópico: Editar sudoers?? Muita dificuldade!!!! [RESOLVIDO]  (Lida 5279 vezes)

Offline Nelson Quintanilha

  • Usuário Ubuntu
  • *
  • Mensagens: 522
  • "O mundo não deve ter fronteiras, mas horizontes."
    • Ver perfil
Editar sudoers?? Muita dificuldade!!!! [RESOLVIDO]
« Online: 08 de Junho de 2008, 16:58 »
Olá colegas,

Estou tentando editar o sudoers para acabar de instalar o firestarter conforme o post onde o Alarcon explica o processo. http://ubuntuforum-br.org/index.php/topic,28333.msg163972.html#msg163972

Porem não estou conseguindo, quando dou o comando:export EDITOR=gedit && sudo visudo ele retorna:

Citar
E325: ATTENTION
Found a swap file by the name "/etc/.sudoers.tmp.swp"
          owned by: root   dated: Sat Jun  7 18:03:23 2008
         file name: /etc/sudoers.tmp
          modified: YES
         user name: root   host name: nelson-desktop
        process ID: 7304
While opening file "/etc/sudoers.tmp"
             dated: Sat Jun  7 08:35:51 2008

(1) Another program may be editing the same file.
    If this is the case, be careful not to end up with two
    different instances of the same file when making changes.
    Quit, or continue with caution.

(2) An edit session for this file crashed.
    If this is the case, use ":recover" or "vim -r /etc/sudoers.tmp"
    to recover the changes (see ":help recovery").
    If you did this already, delete the swap file "/etc/.sudoers.tmp.swp"
    to avoid this message.
"/etc/sudoers.tmp" 23 lines, 470 characters
Press ENTER or type command to continue



# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#

Defaults        env_reset

# Uncomment to allow members of group sudo to not need a password
# %sudo ALL=NOPASSWD: ALL

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

Obs: não é possível fazer alteração nele, ele está travado.
Alguém saberia ne informar o que acontece e como posso arrumar isso???
« Última modificação: 08 de Junho de 2008, 21:12 por Nelson Quintanilha »

Piras

  • Visitante
Re: Editar sudoers?? Muita dificuldade!!!!
« Resposta #1 Online: 08 de Junho de 2008, 18:11 »
Que eu sabia, para editar o arquivo sudoers você precisa antes dar um chmod 400 /etc/sudoers para salvar suas alterações, tendo depois o cuidado de dar outro comando para restringir novamente a edição do arquivo. Questão de segurança.

Offline Nelson Quintanilha

  • Usuário Ubuntu
  • *
  • Mensagens: 522
  • "O mundo não deve ter fronteiras, mas horizontes."
    • Ver perfil
Re: Editar sudoers?? Muita dificuldade!!!!
« Resposta #2 Online: 08 de Junho de 2008, 18:34 »
Olá Piras,

Traduz o processo, nós, os seres mortais não entendemos dessa forma.
T+

Offline Nelson Quintanilha

  • Usuário Ubuntu
  • *
  • Mensagens: 522
  • "O mundo não deve ter fronteiras, mas horizontes."
    • Ver perfil
Re: Editar sudoers?? Muita dificuldade!!!!
« Resposta #3 Online: 08 de Junho de 2008, 21:11 »
Relolvi dessa forma nano /etc/sudoers conforme:
http://ubuntuforum-br.org/index.php/topic,17835.0.html
T+