commit | d7d6e77dae794f39be10e492a89ee4e0fe782ed7 | [log] [tgz] |
---|---|---|
author | Dmitrii Sutiagin <dsutyagin@mirantis.com> | Fri Aug 18 13:23:15 2017 -0700 |
committer | Dmitry Sutyagin <dsutyagin@mirantis.com> | Thu Aug 24 18:44:40 2017 +0000 |
tree | d52087121ce30ee60625995fd533ee083c19c564 | |
parent | 363d4796f8d26c382951f4f850d8275293562dab [diff] |
Add autosudo.sh profile script This script provides two commands(functions) - sudoon, sudooff After "sudoon", all subsequent commands are prepended with "sudo " With small exceptions like for bash builtins or for cd into non-restricted folders. the script tracks "cd " commands to allow working in restricted folders. The script itself should be provided by an updated salt-formula-linux package. Change-Id: I786e9c52d0be9670d0c409937e0ac6f873b3dc8e