From owner-freebsd-questions@FreeBSD.ORG Tue Sep 17 04:38:38 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id DCA829DA for ; Tue, 17 Sep 2013 04:38:38 +0000 (UTC) (envelope-from m.e.sanliturk@gmail.com) Received: from mail-vb0-x22c.google.com (mail-vb0-x22c.google.com [IPv6:2607:f8b0:400c:c02::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9B5B12940 for ; Tue, 17 Sep 2013 04:38:38 +0000 (UTC) Received: by mail-vb0-f44.google.com with SMTP id e13so3674213vbg.3 for ; Mon, 16 Sep 2013 21:38:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=4aZNumwtlJw2ipNLk27MameVlZOtMEVYhS/quR8v+Q8=; b=mpVBJ7lqoFTQ3akyKpvjqpy0cDJ4xAAlxeuv7ecJOnASYy4q6slot7xNAhr/3b/1tR thCFTHMusEJ4NFDluti7vr2WL4O1Ft/xYFyuQz1AQB7CE24l9z2HrQdDHOws11ap80kQ IRtkqUUOKFg6qAKBaoT+eBaqL1FRhjjs8KXFWpHPqVMSINOow8v+LiuMgnG9BwtANB3q OHsWCT5bGJ9ySfgyQA1jbaSZip+Vg+lIe2E1Vkndg1ilHfBxyKRMQcyZ72VGqnSYpCZU yu70laL+CqsafYzttp5BO+1HulFJ9kVUlx1tlLOsXwu5iF59/d7pb4Z7omZPR04scbVP W9FA== MIME-Version: 1.0 X-Received: by 10.220.164.70 with SMTP id d6mr9000009vcy.19.1379392717682; Mon, 16 Sep 2013 21:38:37 -0700 (PDT) Received: by 10.58.44.97 with HTTP; Mon, 16 Sep 2013 21:38:37 -0700 (PDT) In-Reply-To: <0AB346EB-102C-46F7-9641-3F2F5A4371D2@gmail.com> References: <0AB346EB-102C-46F7-9641-3F2F5A4371D2@gmail.com> Date: Tue, 17 Sep 2013 00:38:37 -0400 Message-ID: Subject: Re: NFS file modes consistency among different operating systems From: Mehmet Erol Sanliturk To: aurfalien Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: FreeBSD Questions Mailing List X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Sep 2013 04:38:38 -0000 On Mon, Sep 16, 2013 at 11:53 PM, aurfalien wrote: > From your non MS$ clients, open a shell and type umask, what returns? > > Sounds like your default umask needs changing is all. > > I would suggest going with a umask of 775 and ensuring all ppl requiring > mod access be group members of what you have settled on. > > > > - aurf > > On Sep 16, 2013, at 8:41 PM, Mehmet Erol Sanliturk wrote: > > > Dear All , > > > > > > I have NFS 3 in FreeBSD 9.1 amd64 . > > > > The clients are FreeBSD , Linux , Windows XP through Samba on the same > > files . > > > > The Windows XP is able to access , use and modify files created or > modified > > by any other operating system user . > > > > In contrary , FreeBSD and Linux users are NOT able to such sharing > because > > files are created by another user and access mode settings are not > > changeable due to owner of files . > > > > It is very likely that some settings are missing but I do not know which > > ones . > > > > One remedy is to use NFS server in root logged state and change file > modes > > frequently ( An ordinary user in server is NOT permitted to change modes > > of files created by other users although exported directories owned by > such > > a user ) . > > > > How can I solve the following problem : > > > > No any client should be able to change file modes set in server > > All files created by client should inherit modes set in server directory > . > > > > > Linux umask : 0002 FreeBSD umask : 0022 Changing client umask to 775 is not solving the problem , because in NFS server , they are setting their own modes without considering existing umask . When a file is modified by a user , the other users in FreeBSD and Linux are not able to access to these files even their umask values are 775 . The Linux user is defined in groups 1000 and 1001 but this is also not permitting access to files modified by other users whether their group is 1000 or 1001 . > > Thank you very much . > > > > Mehmet Erol Sanliturk > > >