"inherit permissions" broken in 2.0.7?

Gerald Carter gcarter at valinux.com
Sat Jul 29 06:39:32 GMT 2000


Charlie Brady wrote:
> 
> Looks like it to me:
> 
> bash$ pwd ; find . -type f | xargs grep -i inheritperm
> /home/e-smith/files/users/charlieb/rpms/BUILD/samba-2.0.7/source
> ./param/loadparm.c:  BOOL bInheritPerms;
> ./param/loadparm.c:  False, /* bInheritPerms */
> ./param/loadparm.c:  {"inherit permissions",P_BOOL,  P_LOCAL,
>  &sDefault.bInheritPerms,    NULL,   NULL,  FLAG_SHARE},
> ./param/loadparm.c:FN_LOCAL_BOOL(lp_inherit_perms,bInheritPerms)
> 
> David's original patch is not on-line. If anyone has a 
> copy, please point me to it.unix_mode
> 
> Thanks
> 
> Charlie

I don't think you looked at everything.  Look at
smbd/dosmode.c:unix_mode() for lp_inherit_perms()
first and see if that is what you are looking for.

  if (fname && lp_inherit_perms(SNUM(conn))) {
    char *dname;
    SMB_STRUCT_STAT sbuf;

....




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.eng.auburn.edu/~cartegw

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




More information about the samba-technical mailing list