General Discussion

ONTAPI to get windows name and SID for local Unix User and Groups.

Anshul
views-count 936 Views

Volume with security style mixed  is shared as CIFS share.

When we access the CIFS share on windows machine and view permissions it shows UnixPermUid\root, UnixPermGid\root and UnixPerm\other for local Unix users and groups.

Anshul_0-1582874526167.png

 

The SID for these local Unix user and groups are:

S-1-5-21-2038298172-1297133386-11111-0   for UnixPermUid\root

S-1-5-21-2038298172-1297133386-22222-0   for UnixPermGid\root 

S-1-5-21-2038298172-1297133386-33333       for UnixPerm\other

 

The ONTAPI to fetch local Unix user users and groups are:

name-mapping-unix-group-get-iter
name-mapping-unix-user-get-iter

But these ONTAPI are not giving windows name and SID for local Unix users and groups.

 

How to get the windows name and SID for local Unix users and groups programmatically?

What is the ONTAPI to get windows name and SID for local Unix user and groups?

1 REPLY 1

Re: ONTAPI to get windows name and SID for local Unix User and Groups.

donny_lang
views-count 937 Views

The way that Windows displays those names and SIDs is, as far as I understand it, an attempt by Windows to approximate UNIX mode bits into something that resembles the style of NTFS permissions. That being said, I don't think you'll be able to get that specific data from the ONTAPI. 

G2 Review Banner
All Community Forums
Public