File: setup_quota_group

package info (click to toggle)
quota 3.12-6
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,160 kB
  • ctags: 1,078
  • sloc: ansic: 9,054; sh: 567; perl: 199; makefile: 193
file content (12 lines) | stat: -rwxr-xr-x 233 bytes parent folder | download | duplicates (10)
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