开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜