zen*_*ing 5 linux rhel centos mount quota
无法在 RHEL6 和 CentOS6 中配置配额-quotecheck 返回错误消息
我创建了新分区(/dev/sda6)并将其安装(在/hulk 上)。
编辑 /etc/fstab 文件以使用以下行在分区上提供配额
/dev/sda6 /hulk ext4 defaults,usrquota,grpquota 0 0
Run Code Online (Sandbox Code Playgroud)
并给出了以下命令
[root@localhost ~]# mount -o remount,rw /hulk
[root@localhost ~]# mount|grep hulk
/dev/sda6 on /hulk type ext4 (rw,usrquota,grpquota)
[root@localhost ~]# cd /hulk
[root@localhost hulk]# ls
lost+found
Run Code Online (Sandbox Code Playgroud)
当我使用 quotacheck 命令时,它给了我以下错误消息
[root@localhost hulk]# quotacheck -cug /hulk
quotacheck: Cannot create new quotafile /hulk/aquota.user.new: Permission denied
quotacheck: Cannot initialize IO on new quotafile: Permission denied
quotacheck: Cannot create new quotafile /hulk/aquota.group.new: Permission denied
quotacheck: Cannot initialize IO on new quotafile: Permission denied
Run Code Online (Sandbox Code Playgroud)
zen*_*ing -2
# chcon ---reference=/var /hulk
Run Code Online (Sandbox Code Playgroud)
或者将 SElinux 模式更改为许可或禁用。
归档时间: |
|
查看次数: |
2943 次 |
最近记录: |