当前位置: 技术问答>linux和unix
user space
来源: 互联网 发布时间:2014-10-21
本文导语: 如何控制user的使用文件或目录的大小,我的os是sun和aix 谢谢|在sun solaris下可以这样做:(同时参考edquota帮助) 比如新加一个用户为:china , 用户的文件目录为 /user/china ; 解决方法如下: (1) . Ans for first question . 1. Becom...
如何控制user的使用文件或目录的大小,我的os是sun和aix
谢谢
|
在sun solaris下可以这样做:(同时参考edquota帮助) 比如新加一个用户为:china , 用户的文件目录为 /user/china ; 解决方法如下: (1) . Ans for first question . 1. Become superuser. 2. Edit the /etc/vfstab file by using the editor of your choice. Add rq to the mount options field for each UFS file system that will have quotas. vfstab : --------------------------------------------------------- /dev/dsk/c0t4d0s5 /dev/rdsk/c0t4d0s5 /user ufs 3 yes rq -----------------------------------------------------**--- 3. Change directory to the top of the file system that will have quotas. # cd /user 4. Create a file named quotas. # touch quotas 5. Change permissions to read/write for root only. # chmod 600 quotas 6. allocate quotas to user # edquota china this command will bring up a vi editor , what did you should do is to modify the parameter of this file .
|
在sun solaris下可以这样做:(同时参考edquota帮助) 比如新加一个用户为:china , 用户的文件目录为 /user/china ; 解决方法如下: (1) . Ans for first question . 1. Become superuser. 2. Edit the /etc/vfstab file by using the editor of your choice. Add rq to the mount options field for each UFS file system that will have quotas. vfstab : --------------------------------------------------------- /dev/dsk/c0t4d0s5 /dev/rdsk/c0t4d0s5 /user ufs 3 yes rq -----------------------------------------------------**--- 3. Change directory to the top of the file system that will have quotas. # cd /user 4. Create a file named quotas. # touch quotas 5. Change permissions to read/write for root only. # chmod 600 quotas 6. allocate quotas to user # edquota china this command will bring up a vi editor , what did you should do is to modify the parameter of this file .