quota/install.sh

raw link view readme
1
2 parted -s /dev/sdc unit MB mkpart primary ext4 1 256
3
4 mkfs.ext4 /dev/sdc1
5
6 mkdir -p /var/librarian
7
8 echo `blkid | grep sdc1 | awk '{ print $2 }'` /var/librarian ext4 defaults,usrquota 0 0 >> /etc/fstab
9
10 mount -a
11
12 yum install quota -y
13
14 quotacheck -u /var/librarian
15
16 quotaon -u /var/librarian
17
18 useradd librarian -m -s /bin/bash
19
20 #+ edquota is truly unhelpful since it's interactive
21 setquota -u librarian 500 1000 0 0 /var/librarian
22
23 chown librarian:librarian /var/librarian
24
25 quota librarian
26