summaryrefslogtreecommitdiff
path: root/setup_quota_group
blob: 7343fea53bb304e566a8974fa7b2936d0e95b911 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

if [ $# -lt 2 ]; then
   echo "Usage: $0 proto_type_user group"
   exit 1
fi

gid=`cat /etc/group | grep "^$2" | cut -d: -f3`
for user in `cat /etc/passwd | grep ".*:.*:$gid:" | cut -d: -f1`
do
   edquota -p $1 $user
done