0
xfs_quota limitをグループidに設定しました。しかし、ハード/ソフトリミットは効力を持ちません。ユーザーに割り当て制限を設定した場合のみ動作します。XFS_Quota - グループの問題
グループ名:グループにマッピングされたtestuserを
「TESTUSER」「itshare」
あなたは以下の手順が表示された場合、私は3メガバイトとハードリミットにソフトリミットを設定している:
ユーザー名をitshareグループのために4MB。
ユーザー "testuser"は指定した制限を超えてファイルをアップロードできます。
[[email protected] ~]#xfs_quota -x -c 'limit -g bsoft=3m bhard=4m itshare' /home
[[email protected] ~]# xfs_quota -x -c 'report -h ' /home
User quota on /home (/dev/mapper/centos-home)
Blocks
User ID Used Soft Hard Warn/Grace
---------- ---------------------------------
root 391.8M 0 0 00 [------]
testuser 5.7M 0 0 00 [-none-]
Group quota on /home (/dev/mapper/centos-home)
Blocks
Group ID Used Soft Hard Warn/Grace
---------- ---------------------------------
root 391.8M 0 0 00 [------]
testuser 5.7M 0 0 00 [------]
itshare 0 3M 4M 00 [------]
[[email protected] ~]#
[[email protected] ~]# id testuser
uid=1000(testuser) gid=1000(testuser) groups=1000(testuser),1003(itshare)
[[email protected] ~]#