setquota 中文man页面

系统
setquota 是一个命令行配额编辑器.它允许针对特定(通过名字或id标识的)用户/组的配额设置. 配额可以直接指定,也可以从其它用户复制(参看选项 -p). 使用这个应用程序,同时可以设置超出软配额的可能的时间限制(参看选项 -t). 如果你想手工编辑配额,你也可以使用 edquota(8) 应用程序,倘若你觉得它更方便的话.

NAME(名称)

setquota - 设置磁盘配额或时间限制  

SYNOPSIS(总览)

setquota [ -u | -g ] filesystem-name block-soft block-hard inode-soft inode-hard name...

setquota [ -u | -g ] filesystem-name -p model-name name...

setquota -p [ -u | -g ] filesystem-name block-time-limit inode-time-limit  

DESCRIPTION(描述)

setquota 是一个命令行配额编辑器.它允许针对特定(通过名字或id标识的)用户/组的配额设置. 配额可以直接指定,也可以从其它用户复制(参看选项 -p). 使用这个应用程序,同时可以设置超出软配额的可能的时间限制(参看选项 -t). 如果你想手工编辑配额,你也可以使用 edquota(8) 应用程序,倘若你觉得它更方便的话.

OPTIONS(选项)

-u
为指定的用户设置用户配额.这是默认的选项
-g
为指定的组设置组配额.
-p model-name
设置指定的用户/组的配额与 model-name 的用户/组相同.
-t
在指定的文件系统上针对特定的配额类型设置时间限制. 限制以秒计.

要禁止使用配额,可以设置相应的参数为0. 要对几个文件系统修改配额,可以对每个文件系统调用一次.

只有超级用户可以编辑配额.(为了在一个文件系统上建立配额,文件系统的 root目录下必须包含一个由root所有,叫做 aquota.useraquota.group 的文件. 参看 quotaon(8) 以了解详情.)  

FILES(相关文件)

aquota.user或aquota.group
位于文件系统root下的配额文件
/etc/mtab
已挂载的文件系统表

SEE ALSO(另见)

quota(1), quotactl(2), quotacheck(8), quotaon(8), repquota(8), convertquota(8), edquota(8)  

#p#

NAME

setquota - set disk quotas  

SYNOPSIS

setquota [ -r ] [ -u | -g ] [ -F quotaformat ] name block-softlimit block-hardlimit inode-softlimit inode-hardlimit -a | filesystem...

setquota [ -r ] [ -u | -g ] [ -F quotaformat ] [ -p protoname ] name -a | filesystem...

setquota -b [ -r ] [ -u | -g ] [ -F quotaformat ] -a | filesystem...

setquota -t [ -u | -g ] [ -F quotaformat ] block-grace inode-grace -a | filesystem...

setquota -T [ -u | -g ] [ -F quotaformat ] name block-grace inode-grace -a | filesystem...  

DESCRIPTION

setquota is a command line quota editor. The filesystem, user/group name and new quotas for this filesystem can be specified on the command line.

-r
Edit also remote quota use rpc.rquotad on remote server to set quota. This option is available only if quota tools were compiled with enabled support for setting quotas over RPC.
-F quotaformat
Perform setting for specified format (ie. don't perform format autodetection). Possible format names are: vfsold (version 1 quota), vfsv0 (version 2 quota), rpc (quota over NFS), xfs (quota on XFS filesystem)
-u
Set user quotas for named user. This is the default.
-g
Set group quotas for named group.
-p protoname
Use quota settings of user or group protoname to set the quota for the named user or group.
-b
Read information to set from stdin (input format is name block-softlimit block-hardlimit inode-softlimit inode-hardlimit ).
-t
Set grace times for users/groups. Times block-grace and inode-grace are specified in seconds.
-T
Alter times for individual user/group when softlimit is enforced. Times block-grace and inode-grace are specified in seconds or can be string 'unset'.
-a
Go through all filesystems with quota in /etc/mtab and perform setting.

To disable a quota, set the coresponding parameter to 0. To change quotas for several filesystems, invoke once for each filesystem.

Only the super-user may edit quotas.  

FILES

aquota.user or aquota.group
quota file at the filesystem root (version 2 quota, non-XFS filesystems)
quota.user or quota.group
quota file at the filesystem root (version 1 quota, non-XFS filesystems)
/etc/mtab
mounted filesystem table

SEE ALSO

edquota(8), quota(1), quotactl(2), quotacheck(8), quotaon(8), repquota(8)

责任编辑:韩亚珊 来源: CMPP.net
相关推荐

2011-08-24 16:48:36

man中文man

2011-08-15 10:21:09

man中文man

2011-08-11 16:11:49

at中文man

2011-08-25 10:21:56

man.conf中文man

2011-08-11 15:03:21

ACCESS中文man

2011-08-16 10:59:16

pwconv中文man

2011-08-19 18:30:52

ipc中文man

2011-08-25 17:18:07

putc中文man

2011-08-15 13:53:19

stat中文man

2011-08-25 15:24:31

execlp中文man

2011-08-15 18:06:07

restore中文man

2011-08-15 15:45:04

xpdf中文man

2011-08-24 17:06:42

NOTIFY中文man

2011-08-15 14:42:28

uname中文man

2011-08-15 11:30:37

pwd中文man

2011-08-23 14:24:42

ping中文man

2011-08-15 11:01:45

2011-08-25 17:15:16

printf中文man

2011-08-25 16:44:46

ftrylockfil中文man

2011-08-23 17:24:11

userdel中文man
点赞
收藏

51CTO技术栈公众号