You are not logged in.

#1 2020-01-28 14:25:28

everwisher
Member
Registered: 2019-09-11
Posts: 33

Can't login arch-based NFS server from Windows: NET HELPMSG 1326

I'm setting up an NFS server on my archlinux-based homelab and have "nfs-server.service" enabled via systemd. However, when I tried to access the NFS filesystem from a Windows 10 client using the command:

mount -u:[i]myuser[/i] \\192.168.1.2\nfs-shared Z:

Windows responded with "Network Error - 1326".

I'm sure to have typed in the correct password as I can ssh/putty into my homelab via this combination of myuser and password recognized incorrect by the WIndows 10 client. And the subfolders under /nfs-shared are owned by this myuser, of which the uid is 1000.

If I changed the command to:

mount -o anon \\192.168.1.2\nfs-shared Z:

the drive was successfully mounted but I can't read the folders within. Windows reported things saying I don't have permissions to access \\192.168.1.2\nfs-shared\Movies (could be a little different than what it was literally as I'm using non-English version of Windows)

Besides, when I tried to access from macOS using the command:

mount -t nfs -o resvport /192.168.1.2:/nfs-shared /private/nfs

macOS keeped replying with a bunch of "nfs server 192.168.1.2:/nfs-shared: lockd not responding" until it eternally said "Connection to the server is disconnected".

What is the underlying issue?

Down below is the content of my "/etc/exports":

/nfs-shared 192.168.1.0/24(rw,sync,subtree_check,crossmnt,fsid=0,no_root_squash)
/nfs-shared/Movies 192.168.1.0/24(rw,sync,subtree_check,all_squash,anonuid=1000)
/nfs-shared/Videos 192.168.1.0/24(rw,sync,subtree_check,all_squash,anonuid=1000)
/nfs-shared/Music 192.168.1.0/24(rw,sync,subtree_check,all_squash,anonuid=1000)

Offline

#2 2020-01-29 12:11:04

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,311

Re: Can't login arch-based NFS server from Windows: NET HELPMSG 1326

https://www.reddit.com/r/linux4noobs/co … ndows_net/
I guess that's also you ?


error 1326 can be caused by time sync issues like described here https://www.itexperience.net/2012/07/12 … n-net-use/
Are all 3 machines (arch, windows, mac os) running ntp clients ?

Another possibility is incorrect mapping from username to userid .

https://community.wd.com/t/mount-share- … /149308/14
Arch Wiki on NFS mentions NFS4 supports something called idmapping that may also solve the issue, IF server and clients all support it.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2020-01-30 04:58:44

everwisher
Member
Registered: 2019-09-11
Posts: 33

Re: Can't login arch-based NFS server from Windows: NET HELPMSG 1326

Lone_Wolf wrote:

https://www.reddit.com/r/linux4noobs/co … ndows_net/
I guess that's also you ?


error 1326 can be caused by time sync issues like described here https://www.itexperience.net/2012/07/12 … n-net-use/
Are all 3 machines (arch, windows, mac os) running ntp clients ?

Another possibility is incorrect mapping from username to userid .

https://community.wd.com/t/mount-share- … /149308/14
Arch Wiki on NFS mentions NFS4 supports something called idmapping that may also solve the issue, IF server and clients all support it.

_______________________________________________

Yes, it was me asking the same question at r/linux4noobs.

I'll squeeze some time for the description webpage you recommended and if any problems persists I'll come back to see if you could kindly offer further help.

Actually I don't quite catch up with the mapping things. As you've pointed it out, I'll try to make some sense of that.

Thank you very much for helping.

Offline

Board footer

Powered by FluxBB