[root@******* root]# mkdir /root/tools |
#!/bin/sh awk 'BEGIN {FS=":"} {printf("%s %s %s\n",$1,$2,$3)}'|while read acc pas gr do chmod 755 /home/${acc} done |
[root@******* root]# chmod 0700 /root/tools/henkou755 |
[root@******* root]# /root/tools/henkou755 < new2002.all |