Welcome to the Linux Foundation Forum!

Lab 13.2: Filesystem Quotas

Posts: 3

I had an issue on CentOS 6.5: after changing noexec to usrquota in /etc/fstab and remounting the fs under /mnt/tempdir, when i run sudo quotacheck -u /mnt/tempdir I got this error

quotacheck: Cannot create new quotafile /mnt/tempdir/aquota.user.new: Permission denied

quotacheck: Cannot initialize IO on new quotafile: Permission denied

It seams to be related to SELinux permissions for that directory.

One solution, aside the one setting SELinux to permissive, came from http://www.unix.com/red-hat/176845-user-group-quota-not-working-rhel6-2-ext4-ext3.html : change context of the /mnt/tempdir

# chcon --reference=/var /mnt/tempdir

In my case it worked.

Hope this helps someone encountering the same problem.

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training