This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: nfs-server re-exporting mapped network drives


Igor Pechtchanski wrote:

On Fri, 12 Mar 2004, Smith, Gene wrote:
You are right! That fixed it. There was already a "w" for the user
"SYSTEM" but not on group and other. Guess that's what it needs. This
fact should definitely be added to the readme or changed in the default
install. I changed it on all three nfs related log files for good measure.


The log files are created by cygrunsrv when the service is first started.
If cygrunsrv ran as LocalSystem, the logs will be owned by LocalSystem.
The default umask (set in /etc/profile) is 022, which means "turn off
group and world write permissions".  I doubt there's anything the nfs
server itself can do about this.  You might try changing the umask in
/etc/profile, removing the log, and starting over...  If this works, then
it definitely should be in the README.

Changed umask in /etc/profile to 000. With nfs daemons running, rm'd the logfiles. Restarted daemons with no error. Files came back like this:


-rw-r--r--    1 SMITED   mkgroup-        0 Mar 12 17:18 mountd.log
-rw-r--r--    1 SMITED   mkgroup-    11869 Mar 12 17:21 nfsd.log
-rw-r--r--    1 SYSTEM   root            0 Mar 12 17:18 portmap.log

No longer all SYSTEM/root but now like all other files in system SMITED/mkgroup- (except portmap which is still running as LocalSystem). Looks like the 1st time you start nfs as LocalSystem it makes it impossible to change unless you add write permissions or delete the mountd and ntfsd log files first.

Also noticed that when I bop around in my mounted nfs directory on the client machine (doing cd's and ls), I get tons of errors in the nfsd.log file all saying this:

"nfsd[1860] 03/12/104 17:21 auth_clnt.c 327 : Unable to setgroups: invalid argument"

This happened when running as LocalSystem too.
-gene



I also noticed that nfs-server-config script did not work quite right
the second time you ran it. It would not reload the daemons but complain
they were already installed. I fixed that my rearranging the order of
things. Also, it always complained that your mounts were not global even
when they are. I also fixed that. Should I send a patch to someone or
just send my fixed file to this list?

Thanks for the help.
-gene


The nfs-server announcement
(<http://cygwin.com/ml/cygwin/2003-11/msg00267.html>) says to send
comments and questions to the cygwin list (i.e., here).  To help the
maintainer filter out the relevant messages, you might put something like
"[PATCH] nfs-server: ..." as the subject.

Hope this helps,
	Igor


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]