delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/02/16/16:35:20

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Tom Britton <tom DOT britton AT fronde DOT com>
Subject: NFS Server "cannot change time on" error
Date: Tue, 16 Feb 2010 21:24:02 +0000 (UTC)
Lines: 75
Message-ID: <loom.20100216T211152-277@post.gmane.org>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hi
I'm trying to set up the Cygwin NFS Server.  My problem is that non-root users
on a Unix box get a "cannot change time on ..." error when creating files on a
NFS share.  Root users do not get this message.  

The (a) problem appears to have something to do with setuid permission (see
event Viewer error below).

Does anyone know what to do to fix this?

Details
  Server:
    Cygwin 1.7
    nfs-server-2.3-5
    Windows Server 2003 SP2
    daemons running as Administrator (also when running as System account)

  Client:
    Solaris 8

  Destination/shared directory:  
     /pub
     ... has drwxrwxrwx Unix permissions
     ... has Everyone Full Control Windows permissions

------------------

This is a typical test sequence:

/etc/exports
  #/pub *(rw,all_squash)
  #/pub *(rw,no_root_squash)
  #/pub *(rw,all_squash,anonuid=10500,anongid=10513)
  #/pub *(rw,all_squash,anonuid=501,anongid=513)      # Guest local user
  #/pub *(rw,all_squash,anonuid=1003,anongid=513)     # Nobody local user
  /pub *(rw,all_squash,anonuid=544,anongid=544)      # Administrators

Mounting share:
  sundev:/roothome # showmount -e newsybdev
  export list for newsybdev:
  /pub *
  sundev:/roothome # mount newsybdev:/pub /mnt/pub
  sundev:/roothome # touch /mnt/pub/root1
  sundev:/roothome #

Create file:
  sundev:/export/home/tbritton $ touch /mnt/pub/tom1
  touch: cannot change times on /mnt/pub/tom1
  sundev:/export/home/tbritton $

Event Viewer message:
  Event Type:	Error
  Event Source:	nfsd
  Event Category:	None
  Event ID:	0
  Date:		17/02/2010
  Time:		9:57:07 a.m.
  User:		NT AUTHORITY\SYSTEM
  Computer:	NEWSYBDEV
  Description:
  The description for Event ID ( 0 ) in Source ( nfsd ) cannot be found. 
  The local computer may not have the necessary registry information or 
  message DLL files to display messages from a remote computer. You may 
  be able to use the /AUXSOURCE= flag to retrieve this description; see 
  Help and Support for details. 
  The following information is part of the event: 
  nfsd: PID 2700: Unable to seteuid(544): Permission denied.

------------------


Regards,
         Tom




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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019