nfs mount rw
Hi, I am trying to get write access on a nfs share. As far as I can tell by reading around, this should be the syntax in the exports file: /maptosharemachinetoshareto(rw) When I -HUP mountd though, it tells me that the line in the exports file is wrong. So I change it into this: /maptosharemachinetoshareto and then all is fine. I can mount it as well, but I don't have writing access, only reading. How should I specify the (rw) part? Thanks, Warren ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: nfs mount rw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Warren Head wrote: Hi, I am trying to get write access on a nfs share. As far as I can tell by reading around, this should be the syntax in the exports file: /maptosharemachinetoshareto(rw) When I -HUP mountd though, it tells me that the line in the exports file is wrong. So I change it into this: /maptosharemachinetoshareto and then all is fine. I can mount it as well, but I don't have writing access, only reading. How should I specify the (rw) part? Thanks, Warren That's more of a non-Sun type exports file format I believe. Here's mine as an example: /store/ad0 hoover shiina mrouter /store/ad1 hoover shiina mrouter /media/cdrom-alldirs,ro -mapall=gcooper:gcooper:wheel hoover Cheers, - -Garrett -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.1 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFt3arEnKyINQw/HARAgzeAKCudIOKe1pOJk9wTOlNb/y9YsVPugCfeLMz uqAbbFtxPKB/JhPzNkl+F+8= =dqf1 -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: nfs mount rw
Warren Head wrote: Hi, I am trying to get write access on a nfs share. As far as I can tell by reading around, this should be the syntax in the exports file: /maptosharemachinetoshareto(rw) hmm man exports suggests examples such as /usr /usr/local -maproot=0:10 friends /usr -maproot=daemon grumpy.cis.uoguelph.ca 131.104.48.16 /usr -ro -mapall=nobody /u -maproot=bin: -network 131.104.48 -mask 255.255.255.0 /u2 -maproot=root friends /u2 -alldirs -network cis-net -mask cis-mask /cdrom -alldirs,quiet,ro -network 192.168.33.0 -mask 255.255.255.0 so not sure where you got that from. When I -HUP mountd though, it tells me that the line in the exports file is wrong. So I change it into this: /maptosharemachinetoshareto and then all is fine. I can mount it as well, but I don't have writing access, only reading. Shoudl be rw by default. who doesnt have writing access? are the unix permissions on both sides correct, if its an issue with root not being able to write, the manpage says: In the absence of -maproot and -mapall options, remote accesses by root will result in using a credential of -2:-2. All other users will be mapped to their remote credential. If a -maproot option is given, remote access by root will be mapped to that credential instead of -2:-2. If a -mapall option is given, all users (including root) will be mapped to that credential in place of their own. Hope this helps, sorry for the RTFM but is a cliche for a reason :) Vince How should I specify the (rw) part? Thanks, Warren ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: nfs mount rw
Warren Head wrote: Hi, I am trying to get write access on a nfs share. As far as I can tell by reading around, this should be the syntax in the exports file: /maptosharemachinetoshareto(rw) When I -HUP mountd though, it tells me that the line in the exports file is wrong. So I change it into this: /maptosharemachinetoshareto and then all is fine. I can mount it as well, but I don't have writing access, only reading. How should I specify the (rw) part? You don't need to specify rw as such --- it is the default, which is why you get an error message when you attempt to do so. See exports(5) for more information about the configuration file. You don't say much about whom should have access, and to what, but I suspect you want to either use -maproot=user or -public or ? Disclaimer: IANAE. Kevin Kinsey -- Ain't no right way to do a wrong thing. -- The Mad Dogtender ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: nfs mount rw
Vince schreef: so not sure where you got that from. Hi Vince, Well, I got that from numerous man pages through google. One of the first ten results of 'man exports' was even a link to www.freebsd.org. But, now I see on the server that the man page there really is different. A difference then between linux and bsd I guess. Shoudl be rw by default. who doesnt have writing access? Should it be? Well, it isn't right now. My own user account under ubuntu doesn't have write access by default, nor does root. are the unix permissions on both sides correct, I'm not using nis (yet), so perhaps that is what is needed here? I never used nfs before, if that wasn't totally obvious. :-) The exports syntax shown in the local man page is helping me out. The options are all working, -mapall is usefull, but what I really want is the 'rw by default' bit. So that each user can create files and get their own uid:gid accordingly. If NIS is the answer here, I would not be surprised. Could it be? Thanks, Warren ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: nfs mount rw
On Jan 24, 2007, at 12:01 PM, WarrenHead wrote: I really want is the 'rw by default' bit. So that each user can create files and get their own uid:gid accordingly. If NIS is the answer here, I would not be surprised. Could it be? In order for NFS filesharing to work sensibly, the server and client need to share the same uid/gid information. You can manually sync the contents of /etc/group and /etc/passwd, but over the long term, setting up some form of network directory services (ie, NIS, LDAP/ OpenDirectory, etc) will make life much easier... -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]