user space

dog 2001-02-20 10:44:00
如何控制user的使用文件或目录的大小,我的os是sun和aix
谢谢
...全文
126 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
wdhuang 2001-02-21
  • 打赏
  • 举报
回复

在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 .

19,610

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧