Displaying 4 results from an estimated 4 matches for "nt_sec_desc".
2020 May 25
2
Question about smbc_stat() and smbc_statvfs() in libsmbclient
...at server/share/dir>?, &sb);
> printf(?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...
2020 May 27
0
Question about smbc_stat() and smbc_statvfs() in libsmbclient
...printf(?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, si...
2025 Jan 08
1
Need SDDL Format Security Descriptor (using libsmbclient.so)
I am using smbc_getxattr() function (in libsmbclient.so) with the "system.nt_sec_desc" attribute to retrieve the security descriptor, but this is not providing the descriptor information in SDDL format.
Also, I am not able to find any attribute in smbc_getxattr() which can provide SDDL format.
I need to use the ACLs information extracted from smbc_getxattr() into windows SDK A...
2020 May 28
2
Question about smbc_stat() and smbc_statvfs() in libsmbclient
...?, 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, gro...