What command would you use?

You administer a system with quota enabled. The powers that be have asked you to add a new user sam. Sam should have the same amount of diskspace available as his colleague Mose. What command would you use? (choose the best answer)

You administer a system with quota enabled. The powers that be have asked you to add a new user sam. Sam should have the same amount of diskspace available as his colleague Mose. What command would you use? (choose the best answer)

A.
repquota -a sam -p mose

B.
edquota -p mose sam

C.
quotaon sam -p mose

D.
quotactl -n sam -p mose

Explanation:
edquota is a quota editor. One or more users or groups may be specified on the command line. For each user or group a temporary file is created with an ASCII representation of the current disk quotas for that user or group and an editor is then invoked on the file. The quotas may then be modified, new quotas added, etc. Setting a quota to zero indicates that no quota should be imposed.

-p protoname
Duplicate the quotas of the prototypical user specified for each user specified. This is the normal mechanism used to initialize quotas for groups of users.



Leave a Reply 0

Your email address will not be published. Required fields are marked *