Re: NFS file modes consistency among different operating systems

2013-09-17 Thread Mehmet Erol Sanliturk
On Tue, Sep 17, 2013 at 1:28 AM, aurfalien aurfal...@gmail.com wrote:

 
  When a file is modified by a user ,

 Whats that users umask?

 - aurf



755

Thank you very much .

Mehmet Erol Sanliturk
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: NFS file modes consistency among different operating systems

2013-09-17 Thread Mehmet Erol Sanliturk
On Tue, Sep 17, 2013 at 1:32 AM, aurfalien aurfal...@gmail.com wrote:

  When a file is modified by a user

 Also curious whats that users group?

 - aurf




Linux
   user a: 1000 in group :1000
  group n  id : 1001 ( member : a )

FreeBSD :
   user b : 1001 in group 1001

NFS Server : group id : 1000


User a is not able to use files created or  modified by user b , and vice
versa .
Users a and b are not able to use or modify files created or modified by
Windows XP user . There is no any restriction for the Windows XP user .

Thank you very much .

Mehmet Erol Sanliturk
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: NFS file modes consistency among different operating systems

2013-09-17 Thread aurfalien

On Sep 16, 2013, at 11:27 PM, Mehmet Erol Sanliturk wrote:

 
 
 
 On Tue, Sep 17, 2013 at 1:28 AM, aurfalien aurfal...@gmail.com wrote:
 
  When a file is modified by a user ,
 
 Whats that users umask?
 
 - aurf
 
 
 755

Ok, well thats your answer.

Only that user can mod the file, every one else has rx privs.

I'd highly recommend this book;

http://shop.oreilly.com/product/9780596003432.do

And book mark this;

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/permissions.html

- aurf
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: NFS file modes consistency among different operating systems

2013-09-16 Thread aurfalien
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 .
 
 
 Thank you very much .
 
 Mehmet Erol Sanliturk
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: NFS file modes consistency among different operating systems

2013-09-16 Thread Mehmet Erol Sanliturk
On Mon, Sep 16, 2013 at 11:53 PM, aurfalien aurfal...@gmail.com 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
 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: NFS file modes consistency among different operating systems

2013-09-16 Thread aurfalien
 
 When a file is modified by a user ,

Whats that users umask?

- aurf
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: NFS file modes consistency among different operating systems

2013-09-16 Thread aurfalien
 When a file is modified by a user

Also curious whats that users group?

- aurf
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org