开发者

Unique id for user account in a machine(system user account)?

开发者 https://www.devze.com 2023-03-21 00:38 出处:网络
There are various开发者_开发技巧 ways to identify a system\'s unique id using Mac address, CPU id, motherboard id etc.

There are various开发者_开发技巧 ways to identify a system's unique id using Mac address, CPU id, motherboard id etc.

But is there any unique id to identify system's user account other than hostname or username?

And the same or equivalent identifier needs to be available in windows,ubuntu and mac osx.

-mathan


If you need something cross-platform, the most straightforward thing to do is to generate a guid and store in an admin/root owned file. Here's an example of using a GUID from tivoli documentation.

http://publib.boulder.ibm.com/infocenter/tivihelp/v1r1/index.jsp?topic=%2Fcom.ibm.itsmfdt.doc%2Fans5000075.htm

You could then optionally store these GUIDs in a database when the computers are provisioned, or after the fact, either way.

0

精彩评论

暂无评论...
验证码 换一张
取 消