Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
ONTAPI to get windows name and SID for local Unix User and Groups.
2020-02-27
11:21 PM
5,134 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
