- 论坛徽章:
- 1
|
装了NIS服务器,平时使用还好,目前有个问题期待解决。默认如果一个组成员字符超过1024,在make的时候就会提示错误:
makedbm: warning: data too long
网上查了一下,有两个解决办法:
1. 修改用户组,把一个组分成若干个小组,但是组ID一样。这个貌似非常简单的办法,可是还未经验证,而且当用户查看自己所属组的时候,看到这么多也会搞不清楚。
group1::1000:user1,user2,user3
group2::1000:user4,user5,user6
group3::1000:user7,user8,user9
2. 重新编译:
To allow the creation of NIS maps with a longer entry, you need to add the --no-limit-check option to the makedbm call in /var/yp/Makefile.
The result should look like:
DBLOAD = $(YPBINDIR)/makedbm -c -m `$(YPBINDIR)/yphelper --hostname` --no-limit-check
There is another way of solving this problem for /etc/group entries. This idea is from Ken Cameron:
但我的问题是,之前NIS是通过yum安装,并不是源码编译,不知道能否采用这个办法?
有没有类似经验的,出来指点一下,谢谢! |
评分
-
查看全部评分
|