User Tools

Site Tools


wiki:cmds:sudo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:cmds:sudo [2021/02/15 15:23] cleitonwiki:cmds:sudo [2021/02/15 15:29] (current) cleiton
Line 7: Line 7:
   Defaults       lecture_file=/etc/sudo_lecture.txt   Defaults       lecture_file=/etc/sudo_lecture.txt
      
-Criar o arquivo:+Clique no link para fazer download do arquivo e evitar a perda de caracteres. 
 + 
 +<file php groot.txt>
  
-  sudo vim /etc/sudo_lecture.txt 
-   
-  #add o conteúdo 
-<file php groot.txt>   
        \^V//        \^V//
        |. .|    I AM (G)ROOT!        |. .|    I AM (G)ROOT!
Line 22: Line 20:
       \     /    Use sudo wisely.       \     /    Use sudo wisely.
        \___/        \___/
-  + 
 </file> </file>
 +
 +Criar o arquivo: ''/etc/sudo_lecture.txt''
 +
 +  sudo cp groot.txt /etc/sudo_lecture.txt
 +
 +
 +Testando:
 +  
 +  sudo -k
 +  sudo -i
 +
 +Fonte:
 +  * https://www.cyberciti.biz/open-source/command-line-hacks/adding-spice-to-your-sudo-session-with-a-lecture-file-on-linux-or-unix/
 +
 +
wiki/cmds/sudo.1613402588.txt.gz · Last modified: 2021/02/15 15:23 by cleiton

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki