search for: nt_sec_desc

Displaying 3 results from an estimated 3 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...
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...