From 47489675e3145e2fcbdfd6819f6db9abca2777c5 Mon Sep 17 00:00:00 2001 From: Scott Miller Date: Thu, 27 Mar 2014 22:38:12 -0400 Subject: [PATCH 1/4] passwordless chsh Allows users in group "wheel" to chsh without password --- tools/install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/install.sh b/tools/install.sh index 71e19a389..cf6a01dea 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -33,6 +33,7 @@ export PATH=\"$PATH\" " ~/.zshrc echo "\033[0;34mTime to change your default shell to zsh!\033[0m" +sudo echo "auth sufficient pam_wheel.so trust group=wheel" >> /etc/pam.d/chsh #allows users in group "wheel" to chsh without password chsh -s `which zsh` echo "\033[0;32m"' __ __ '"\033[0m" From fe3fc9452515ed2aa6c195b3811029dc9cccc7b4 Mon Sep 17 00:00:00 2001 From: Scott Miller Date: Thu, 27 Mar 2014 22:50:02 -0400 Subject: [PATCH 2/4] fix >> error --- tools/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/install.sh b/tools/install.sh index cf6a01dea..a32295eaa 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -33,7 +33,7 @@ export PATH=\"$PATH\" " ~/.zshrc echo "\033[0;34mTime to change your default shell to zsh!\033[0m" -sudo echo "auth sufficient pam_wheel.so trust group=wheel" >> /etc/pam.d/chsh #allows users in group "wheel" to chsh without password +sudo bash -c "echo "auth sufficient pam_wheel.so trust group=wheel" >> /etc/pam.d/chsh" #allows users in group "wheel" to chsh without password chsh -s `which zsh` echo "\033[0;32m"' __ __ '"\033[0m" From 97930d305181ec6f5c623c360ec8371a129697fb Mon Sep 17 00:00:00 2001 From: Scott Miller Date: Sat, 5 Apr 2014 14:27:03 -0400 Subject: [PATCH 3/4] allow chsh without password --- tools/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/install.sh b/tools/install.sh index a32295eaa..5076658a7 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -33,8 +33,8 @@ export PATH=\"$PATH\" " ~/.zshrc echo "\033[0;34mTime to change your default shell to zsh!\033[0m" -sudo bash -c "echo "auth sufficient pam_wheel.so trust group=wheel" >> /etc/pam.d/chsh" #allows users in group "wheel" to chsh without password -chsh -s `which zsh` +sudo chsh -s `which zsh` $USER + echo "\033[0;32m"' __ __ '"\033[0m" echo "\033[0;32m"' ____ / /_ ____ ___ __ __ ____ _____/ /_ '"\033[0m" From 99ecfd8100a33e466f0748ba7cbf4fb01783e36b Mon Sep 17 00:00:00 2001 From: Scott Miller Date: Sat, 5 Apr 2014 14:52:03 -0400 Subject: [PATCH 4/4] delete extra space --- tools/install.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/install.sh b/tools/install.sh index 5076658a7..4224ecd6b 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -35,7 +35,6 @@ export PATH=\"$PATH\" echo "\033[0;34mTime to change your default shell to zsh!\033[0m" sudo chsh -s `which zsh` $USER - echo "\033[0;32m"' __ __ '"\033[0m" echo "\033[0;32m"' ____ / /_ ____ ___ __ __ ____ _____/ /_ '"\033[0m" echo "\033[0;32m"' / __ \/ __ \ / __ `__ \/ / / / /_ / / ___/ __ \ '"\033[0m"