Permalink
Browse files

turned pseudo-code into real code! yay!

  • Loading branch information...
aculich committed Feb 2, 2012
1 parent 9178a7a commit c2a46164fb03e6e508c7a2ac853286e44c9eafd3
Showing with 9 additions and 4 deletions.
  1. +9 −4 README
View
13 README
@@ -1,8 +1,13 @@
-for i in {All closing accounts}; do closeautomapentry $i; closeamdmapentry $i; closeexportsentry $i; done
+#!/bin/bash
-for i in {Instructional closing accounts}; do closegroupentry $i; closenetgroupentry $i; done
+inst="iristestofalonglogin"
+full="iristest"
+all="$full $inst"
-for i in {Instructional closing accounts}; do co -l passwd.closed; ypmatch $i passwd >> passwd.closed; ci -u -m"closing $i ($USER)" passwd.closed; done
+for i in $all; do closeautomapentry $i; closeamdmapentry $i; closeexportsentry $i; done
-for i in {Non-instructional closing accounts}; do passwd -r nis -e $i; sleep 3; done
+for i in $inst; do closegroupentry $i; closenetgroupentry $i; done
+for i in $inst; do co -l passwd.closed; ypmatch $i passwd >> passwd.closed; ci -u -m"closing $i ($USER)" passwd.closed; done
+
+for i in $full; do echo "changing shell for $i"; echo "/usr/sww/share/etc/expired" | passwd -r nis -e $i; sleep 3; done

0 comments on commit c2a4616

Please sign in to comment.