smallfz / libnfs-go

Experimental NFS(v4) server library
MIT License
24 stars 10 forks source link

will you support name&password authticaion #1

Open izouxv opened 1 year ago

izouxv commented 1 year ago

hello

will you support name&password authticaion

thank you

smallfz commented 1 year ago

I was looking into the authentication mechanism with intension of implementing some kind of easy and basic security. Currently I'm studying AUTH_SYS but I don't have a clear picture of this. Any suggestions will be appreciated.

izouxv commented 1 year ago

wireshark can analysis the nfsv4 protocol, it's very useful

smallfz commented 1 year ago

There is an approach to create a virtual invisible directory at the root directory in your backend implementation. This allows for increased security, as clients need to know the name of the directory in order to mount it, effectively acting as a password.

eg. mount -t nfs 192.168.1.3:/r3aVUxgk8GKDay18 /mnt

zzzhr1990 commented 6 months ago

Seems Windows use nfsv4 kerberos authentication