lwc:programming:bash

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
lwc:programming:bash [2024/09/27 08:39] John Harrisonlwc:programming:bash [2024/09/27 12:48] (current) – [Superuser] John Harrison
Line 190: Line 190:
   * create a wrapper script that does all your magic for you. Don't add sudo to the cmds in the wrapper script   * create a wrapper script that does all your magic for you. Don't add sudo to the cmds in the wrapper script
   * using ''visudo'' add to the end of your ''/etc/sudoers'' file ''USERNAME ALL=(ALL:ALL) NOPASSWD: FULL_PATH_TO_SCRIPT'' substituting in USERNAME and FULL_PATH_TO_SCRIPT as necessary   * using ''visudo'' add to the end of your ''/etc/sudoers'' file ''USERNAME ALL=(ALL:ALL) NOPASSWD: FULL_PATH_TO_SCRIPT'' substituting in USERNAME and FULL_PATH_TO_SCRIPT as necessary
-  * to execute the cmd without password type ''sudo FULL_PATH_TO_THE_CMD''+  * to execute the cmd without password type ''sudo FULL_PATH_TO_THE_SCRIPT''
 ===== Misc ===== ===== Misc =====
    * write to dmesg: ''echo Some message > /dev/kmsg''    * write to dmesg: ''echo Some message > /dev/kmsg''
  • lwc/programming/bash.1727444344.txt.gz
  • Last modified: 2024/09/27 08:39
  • by John Harrison