[ UP ] cgi
[archserver.git] / cgi / samba / list_users.sh
blob41db8a0db1195f183b34f34036c793335b91c0f9
1 #!/bin/sh
3 echo -e "<h3><font color=blue>所有用户</color></h3>\n"
4 echo -e '<table cellpadding="4" cellspacing="0" border="1" width="40%" >\n'
6 echo -e '<form name="delete_users">'
7 count=1
8 sudo cat /etc/samba/private/smbpasswd | cut -f1 -d: | while read user
9 do
10 [ $_n = 2 ] && _n=1 || _n=2
11 echo "<tr class=\"color_table_row$_n\">
12 <td><input type=\"checkbox\" name=\"user_$count\" value=\"$user\">$user</td>
13 </tr>"
14 let count=$count+1
15 done
16 echo -e "</form>"
17 echo "</table>"