User Tools

Site Tools


wiki:cmds:sudo

Differences

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

Link to this comparison view

Next revision
Previous revision
wiki:cmds:sudo [2021/02/15 15:14] – created cleitonwiki:cmds:sudo [2021/02/15 15:29] (current) cleiton
Line 1: Line 1:
-c+====== sudo com lecture file ====== 
 + 
 +  sudo visudo 
 +   
 +  #add ao arquivo 
 +  Defaults       lecture=always 
 +  Defaults       lecture_file=/etc/sudo_lecture.txt 
 +   
 +Clique no link para fazer o download do arquivo e evitar a perda de caracteres. 
 + 
 +<file php groot.txt> 
 + 
 +       \^V// 
 +       |. .|    I AM (G)ROOT! 
 +     - \ - / _ 
 +      \_| |_/ 
 +        \ \ 
 +      __/_/__ 
 +     |_______|   With great power comes great responsibility. 
 +      \     /    Use sudo wisely. 
 +       \___/ 
 + 
 + 
 +</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.1613402097.txt.gz · Last modified: 2021/02/15 15:14 by cleiton

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki