Displaying 4 results from an estimated 4 matches for "group_attr".
2020 May 25
2
Question about smbc_stat() and smbc_statvfs() in libsmbclient
...ntf(?uid = %d, gid = %d\n?, sb.st_uid, sb.st_gid);
> }
Then my local uid&gid will be printed and not the owner of ?dir? (not even the user I?m connecting as).
I can get the real owner & group via:
> const char *owner_attr = "system.nt_sec_desc.owner+";
> const char *group_attr = "system.nt_sec_desc.group+";
> char buf[256];
>
> smbc_getxattr(path, owner_attr, buf, sizeof(buf)):
> printf("Owner='%s'\n", path, buf);
> smbc_getxattr(path, group_attr, buf, sizeof(buf)) < 0)
> printf(?Group=%s\n?, buf);
(And then manually tr...
2020 May 27
0
Question about smbc_stat() and smbc_statvfs() in libsmbclient
...gid);
> > }
>
> Then my local uid&gid will be printed and not the owner of ?dir? (not even the user I?m connecting as).
>
>
> I can get the real owner & group via:
>
> > const char *owner_attr = "system.nt_sec_desc.owner+";
> > const char *group_attr = "system.nt_sec_desc.group+";
> > char buf[256];
> >
> > smbc_getxattr(path, owner_attr, buf, sizeof(buf)):
> > printf("Owner='%s'\n", path, buf);
> > smbc_getxattr(path, group_attr, buf, sizeof(buf)) < 0)
> > printf(?Group=%s\n?...
2020 May 28
2
Question about smbc_stat() and smbc_statvfs() in libsmbclient
...>> Then my local uid&gid will be printed and not the owner of ?dir? (not even the user I?m connecting as).
>>
>>
>> I can get the real owner & group via:
>>
>>> const char *owner_attr = "system.nt_sec_desc.owner+";
>>> const char *group_attr = "system.nt_sec_desc.group+";
>>> char buf[256];
>>>
>>> smbc_getxattr(path, owner_attr, buf, sizeof(buf)):
>>> printf("Owner='%s'\n", path, buf);
>>> smbc_getxattr(path, group_attr, buf, sizeof(buf)) < 0)
>>> pr...
2003 Dec 01
0
No subject
...(UNIHDR)*num_names);
if (hdr_name == NULL)
return False;
- uni_name = (UNISTR2 *)talloc(ctx,sizeof(UNISTR2)*num_names);
+ uni_name = (UNISTR2 *)talloc_zero(ctx,sizeof(UNISTR2)*num_names);
if (uni_name == NULL)
return False;
}
@@ -1363,7 +1375,7 @@
}
if (num_rids) {
- if ((group_attrs = (uint32 *)talloc(p->mem_ctx, num_rids * sizeof(uint32))) == NULL)
+ if ((group_attrs = (uint32 *)talloc_zero(p->mem_ctx, num_rids * sizeof(uint32))) == NULL)
return NT_STATUS_NO_MEMORY;
}
@@ -1476,6 +1488,7 @@
DEBUG(3,("User:[%s]\n", smb_pass->smb_name));
+ Z...