Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] nis - warning: data too long
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Ancestor
n00b
n00b


Joined: 06 Nov 2006
Posts: 72

PostPosted: Thu Sep 20, 2007 6:20 pm    Post subject: [solved] nis - warning: data too long Reply with quote

the problem is strange..
i'm using NIS in my school network, i have server on gentoo (installed on ppc) and clients with debian installed on them..

there are about 260 students.. all of them should be in groups like cdrom,plugdev,audio,games and so on..
but after creating /etc/group when i try to export users and groups through ypinit

so:
Code:
macserv ~ # /usr/lib/yp/ypinit -m

At this point, we have to construct a list of the hosts which will run NIS
servers.  macserv.lo5 is in the list of NIS server hosts.  Please continue to add
the names for the other hosts, one per line.  When you are done with the
list, type a <control D>.
        next host to add:  macserv.lo5
        next host to add: 
The current list of NIS servers looks like this:

macserv.lo5

Is this correct?  [y/n: y] 
We need a few minutes to build the databases...
Building /var/yp/macserv.lo5/ypservers...
Running /var/yp/Makefile...
gmake[1]: Entering directory `/var/yp/macserv.lo5'
Updating passwd.byname...
Updating passwd.byuid...
Updating group.byname...
makedbm: warning: data too long: floppy::11:kuba,ancestor,boguckak,dedysk (...)

and it prints "makedbm: warning: data too long:" for every group..

any ideas? i couldn't find the solution anywhere..

or maybe someone has a better idea than NIS + NFS?
earlier i tried to use ldap, but there were problems with changing password.. so i switched to nis..
i also tried codafs.. but there were problems with logging in..

EDIT:

finally i solved the problem.. it took me about a month.. but, then:

according to www.linux-nis.org/doc/nis-pages.ps (10th page) it is necessary to add --no-limit-check to /var/yp/Makefile
so i added it:
Code:
DBLOAD = $(YPBINDIR)/makedbm -c -m `$(YPBINDIR)/yphelper --hostname` --no-limit-check

and now it works great :D
Back to top
View user's profile Send private message
yuri10b
n00b
n00b


Joined: 15 Dec 2016
Posts: 1

PostPosted: Thu Dec 15, 2016 11:39 am    Post subject: works Reply with quote

great thanks!
it helped me.
maybe will interested for somebody else - it works for a RH based 6.x systems.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum