[Solved] NIS + NFS network - Slackware and Salix

You have a problem with Salix? Post here and we'll do what we can to help.
User avatar
lmello
Posts: 218
Joined: 4. Aug 2010, 17:38
Location: Brazil
Contact:

Re: NIS + NFS network - Slackware and Salix

Post 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.
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: NIS + NFS network - Slackware and Salix

Post by thenktor »

Try with pure DHCP (in rc.inet1.conf) or fixed IP instead of wicd. I guess wicd assigns the IP to late.
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
User avatar
witek
Posts: 233
Joined: 16. Nov 2009, 13:41
Location: Poland.Łódź

Re: NIS + NFS network - Slackware and Salix

Post 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.
aiya88
Posts: 9
Joined: 1. Jul 2011, 19:19
Location: France

Re: NIS + NFS network - Slackware and Salix

Post 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* ?
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: NIS + NFS network - Slackware and Salix

Post by thenktor »

Because of WLAN support.
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
User avatar
lmello
Posts: 218
Joined: 4. Aug 2010, 17:38
Location: Brazil
Contact:

Re: NIS + NFS network - Slackware and Salix

Post 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.
User avatar
witek
Posts: 233
Joined: 16. Nov 2009, 13:41
Location: Poland.Łódź

Re: NIS + NFS network - Slackware and Salix

Post 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.)
User avatar
lmello
Posts: 218
Joined: 4. Aug 2010, 17:38
Location: Brazil
Contact:

Re: NIS + NFS network - Slackware and Salix

Post 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.
User avatar
lmello
Posts: 218
Joined: 4. Aug 2010, 17:38
Location: Brazil
Contact:

Re: NIS + NFS network - Slackware and Salix

Post 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? :?
kikinovak
Posts: 22
Joined: 9. Jul 2010, 18:37

Re: NIS + NFS network - Slackware and Salix

Post 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-)
Post Reply