dos filemode

MCCALL,DON (HP-USA,ex1) don_mccall at hp.com
Fri Mar 30 19:30:05 GMT 2001


Hi Jerry,
Looks good, but the statement "allows a user who would not otherwise be
allowed" is a little
misleading - looking at the code indicates that the intent is to check to
see if the user is an ADMIN user,or if the file in question has write for
'other', or if the user is a member of the GROUP that owns the file, and the
group has write permission; if any of these conditions are met THEN the
become_root and vfs_chmod are done.  So really, it "allows a user who should
otherwise be allowed to modify these permissions (were it not for the Unix
proscription against non-owner modifying permissions), to make changes."
That's how I read it, anyway - my phrasing is poor, but you get the drift...
(you're the writer, not me!)
Hope this helps,
Don 
-----Original Message-----
From: Gerald Carter [mailto:gcarter at valinux.com]
Sent: Friday, March 30, 2001 12:43 PM
To: samba-technical at samba.org
Subject: dos filemode


Can someone confirm?  Does this sound correct?


       dos filemode (S)
              The default behavior in Samba is to  provide  UNIX-
              like behavor that unless a user is the the owner of
              a file or directory, he or she will not be able  to
              modify the object's permissions. This is often con-
              fusing to DOS/Windows users. Enabling this  parame-
              ter  allows  a  user  who  would  not  otherwise be
              allowed  to  modify  these  permissions,  to   make
              changes.  Ownership  of  the  file/directory is not
              changed, only the permissions are modified.
 
              Default: dos filemode = no




Cheers, jerry
----------------------------------------------------------------------
   /\  Gerald (Jerry) Carter                     Professional Services
 \/    http://www.valinux.com/  VA Linux Systems   gcarter at valinux.com
       http://www.samba.org/       SAMBA Team          jerry at samba.org
       http://www.plainjoe.org/                     jerry at plainjoe.org

       "...a hundred billion castaways looking for a home."
                                - Sting "Message in a Bottle" ( 1979 )





More information about the samba-technical mailing list