Saturday, August 05, 2006

Shell script之練習: 將eric的quota policy套用給所有的user

# cd /root/bin
# vi quota.sh
#!/bin/bash
for USER in `awk -F: '{print $1}' /etc/passwd`
do
edquota -p eric "$USER"
done
# chmod 755 quota.sh
# ./quota.sh

No comments: