Parent Directory
|
Revision Log
|
Patch
revision 41 by apollock, Sun Feb 10 18:23:11 2008 UTC | revision 42 by apollock, Tue Feb 12 22:41:02 2008 UTC | |
---|---|---|
# | Line 12 | Line 12 |
12 | for entry in $(getent passwd | cut -d: -f1,7 | grep -v -E "^(sash)?root:") | for entry in $(getent passwd | cut -d: -f1,7 | grep -v -E "^(sash)?root:") |
13 | do | do |
14 | shell=$(echo $entry | cut -d: -f2) | shell=$(echo $entry | cut -d: -f2) |
15 | if [ "$shell" == "" ]; then | |
16 | continue | |
17 | fi | |
18 | if grep -q $shell /etc/shells; then | if grep -q $shell /etc/shells; then |
19 | user=$(echo $entry | cut -d: -f1) | user=$(echo $entry | cut -d: -f1) |
20 | if [ $UID -eq 0 ]; then | if [ $UID -eq 0 ]; then |
|
ViewVC Help | |
Powered by ViewVC 1.1.22 |