所以我一直在试图编辑/ etc / fstab文件来添加“usrquota”,但是我试着编辑它,并且它没有任何命令,我应该遵循这个指南后( 在vsftpd中配额? ),这个系统是一个VPS只有一个驱动器运行CentOS
当前内容(原)
none /dev/pts devpts rw 0 0
装载输出
[root@s1 etc]# mount /dev/simfs on / type reiserfs (rw,usrquota,grpquota) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) none on /dev type tmpfs (rw) none on /dev/pts type devpts (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
Mtab的内容
/dev/simfs / reiserfs rw,usrquota,grpquota 0 0 proc /proc proc rw 0 0 sysfs /sys sysfs rw 0 0 none /dev tmpfs rw 0 0 none /dev/pts devpts rw 0 0 none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
首先在编辑fstab之后它会失败
[root@s1 ~]# quotacheck -cug /home quotacheck: Mountpoint (or device) /home not found. quotacheck: Can't find filesystem to check or filesystem not mounted with quota option.
将不胜感激任何帮助
VPS环境不会更新您的fstab因此可以将自动化工具(如webminconfiguration为仅查看/etc/mtab 。 另一个选项可能是将以下行添加到/etc/fstab
/dev/simfs / reiserfs rw,usrquota,grpquota 0 0
那么你可以按照你提到的build议来replace/home /
你想在什么文件系统上设置配额? 你给的例子是一个伪文件系统。 我怀疑你可以把配额放在那上面,它肯定不会做任何有用的事情。
第7章。实施 CentOS部署指南的磁盘配额详细描述了需要什么。