September 06, 2007

[FreeBSD] Change login shell to BASH

FreeBSD 的預設 Shell 是 TCSH, 把全部人的 Shell 都改成 BASH

for i in `awk -F: '/tcsh/ {if ($3==0||$3>=1000) print $1}' /etc/passwd`
do
   chsh -s /usr/local/bin/bash $i
done

Posted by pank at September 6, 2007 04:08 PM
Comments
Post a comment













Remember personal info?