Page 2 of 3

Re: NIS + NFS network - Slackware and Salix

Posted: 7. Jul 2011, 20:44
by lmello
Do you use DHCP and there is no IP assigned at mount time in boot process?
No, I don't. I work at an University and my boss assigned to me a range of fixed IP's. In the host machine (Slackware 13.37) I edit the /etc/rc.d/rc.inet1.conf and in the client machines (Salix 13.37) I let wicd to manage the network configuration. After the boot process in the client machines it is possible to access both the local network and the internet, it's just the NFS shares that - for reasons unknown to me - aren't being mounted automatically.
But your network is probably local and not routable from outside (192.168.*.* or 10.*.*.* or 172.16.0.0/12) so what security reasons you consider? If you try NFS on routable addresses then indeed you`re in trouble as NFS is unencrypted.
No, my addresses can be accessed from the outside.

Re: NIS + NFS network - Slackware and Salix

Posted: 7. Jul 2011, 21:27
by thenktor
Try with pure DHCP (in rc.inet1.conf) or fixed IP instead of wicd. I guess wicd assigns the IP to late.

Re: NIS + NFS network - Slackware and Salix

Posted: 7. Jul 2011, 21:49
by witek
To tell the truth in my systems I disabled wicd and configured the network manually with static IPs (rc.inet1.conf) but I`m working in local network.

Re: NIS + NFS network - Slackware and Salix

Posted: 8. Jul 2011, 15:27
by aiya88
lmello, do you have any message when you're typing

Code: Select all

dmesg
EDIT: Salix network relies on Wicd? :shock: Why not rc.inet* ?

Re: NIS + NFS network - Slackware and Salix

Posted: 11. Jul 2011, 10:30
by thenktor
Because of WLAN support.

Re: NIS + NFS network - Slackware and Salix

Posted: 11. Jul 2011, 13:49
by lmello
witek wrote:To tell the truth in my systems I disabled wicd and configured the network manually with static IPs (rc.inet1.conf) but I`m working in local network.
It worked!

Thanks a bunch, I didn't even had to disable wicd. I edited /etc/rc.d/rc.inet1.conf manually and it worked. The only thing I'd forgotten was to set USE_DHCP[0]="no".

But I'm having difficulties setting up additional NIS clients. I couldn't set up an additional machine after I got two NIS clients running, and I have absolutely no idea why... the NIS maps ARE being distibuted, I looked in the /var/yp/binding directory, but I couldn't log in as the NIS user.

Re: NIS + NFS network - Slackware and Salix

Posted: 11. Jul 2011, 18:51
by witek
lmello wrote: but I couldn't log in as the NIS user.
Examine /etc/export once again (typos in IP/netmask?) and check if all needed stuff is running on clients (portmap, rpc, etc.)

Re: NIS + NFS network - Slackware and Salix

Posted: 11. Jul 2011, 20:24
by lmello
witek wrote:
lmello wrote: but I couldn't log in as the NIS user.
Examine /etc/export once again (typos in IP/netmask?) and check if all needed stuff is running on clients (portmap, rpc, etc.)
AFAIC, the only things a NIS client needs to run is:

- rpc.portmap
- rpc.statd
- ypbind

Those are run by the rc.rpc and rc.yp scripts. I checked my /etc/defaultdomain as well. What the heck could it be then? Gremlins?

edit - I just forgot to change the /etc/nsswitch.conf file. Boy this whole procedure should have an entry in the wiki!

But anyway, there is a problem that seems unsolved using NIS to manage only one user account spread upon various machines - Firefox refuses to start in more than one computer. How can I solve this problem?

edit 2 - I just managed to find an answer to the Firefox problem:

Code: Select all

firefox -P
And then I the users can configure their own profiles and run many Firefox sessions at once.

Re: NIS + NFS network - Slackware and Salix

Posted: 22. Jul 2011, 14:00
by lmello
I found another problem - the NIS group map isn't being shared properly in my clients. When I open up the terminal and type 'groups' here's the output:

Code: Select all

users
When it should be:

Code: Select all

users floppy audio video cdrom plugdev power netdev
As configured in account created in the NIS server. When I run 'ypcat group.byname' on the client there's no output. What should I do? :?

Re: NIS + NFS network - Slackware and Salix

Posted: 22. Jul 2011, 17:14
by kikinovak
Hi,

The groups problem gave me a headache too, but I recently found the solution. Check out /var/yp/Makefile for the MINGID variable. Default is 500. Set it to 1, so group information for every group > 1 gets exported.

BTW, as soon as I have a wiki account, I'll write a detailed HOWTO on how to configure NIS/NFS on SalixOS. Here in my office, I have such a setup on Slackware, but I guess SalixOS will do as well 8-)