Date: Mon, 10 Jan 2011 22:26:14 +0100 From: "Marek Salwerowicz" <salwerom@iem.pw.edu.pl> To: "Rick Macklem" <rmacklem@uoguelph.ca> Cc: freebsd-current@freebsd.org, Andrzej Tobola <ato@iem.pw.edu.pl> Subject: Re: NFSv4 and pam_mount - mounting user home directories (with security?) Message-ID: <7B2D6737C7D44738A9710C1BD5E5711F@marekdesktop> References: <1283297834.106648.1294694011899.JavaMail.root@erie.cs.uoguelph.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
> I think you can stick it just before "return 0" in /etc/rc.d/nfsd. > (I'd probably just go with the "sysctl vfs.newnfs.server_min_nfsvers=4" > line in this case, since you want it unconditionally?) > > Or, if you don't want to build a kernel with "options NFSD", I think > you can get nfsd.ko loaded early by fiddling with loader.conf, but I'm > not volunteering to figure out what works there:-) > > rick > Ok, that problem has been solved ;) In nfs_precmd it checks if the option in rc.conf is set. If yes, it tries to set the sysctl flag, it it fails, loads nfsd module and then sets again the sysctl flag. But I have another question - maybe you will know the answer. So I would like NFSv4 to serve user home directories across the network for all workstations, but I would like it to protect using user password Eg. on workstation I want to do: sudo mount -t nfs -o nfsv4 nfs4-server:/home/user1 /home/user1 and then I want to be asked for password of user1 at server (or in the whole network - users and passwords are stored in LDAP server and workstation and server have access to it) Is it possible to do with NFSv4? -- Marek Salwerowicz
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7B2D6737C7D44738A9710C1BD5E5711F>