Solaris UNIX Configure Disk Quota For UFS File System

To configure disk quotas for a UFS file system in Solaris UNIX, you need to follow these steps:

  1. Enable quotas on the file system. Run the following command to enable quotas:
    sudo quotacheck -vum /path/to/filesystem

    This command will create quota files on the file system, which are used to track usage and limits for individual users.

  2. Set the quota limits for each user. Run the following command to set the quota limit for a user:
    sudo edquota -u username /path/to/filesystem

    This will open the quota editor for the specified user and file system. You can set the soft and hard limits for disk usage in kilobytes. The soft limit is the warning threshold, and the hard limit is the maximum allowed usage.

  3. Verify the quotas. Run the following command to verify the quotas for a user:
    sudo quota username /path/to/filesystem

    This will display the current usage, soft limit, and hard limit for the specified user and file system.

  4. Mount the file system with quotas enabled. Run the following command to mount the file system with quotas enabled:
    sudo mount -o remount,quota /path/to/filesystem

    This will remount the file system with quotas enabled.

With these steps, you have successfully configured disk quotas for a UFS file system in Solaris UNIX. The disk usage of each user will now be tracked and limited according to the configured quotas.

Leave a Comment