机器中用户帐户的唯一ID(系统用户帐户)?
有多种方法可以使用 Mac 地址、CPU id、主板 id 等来识别系统的唯一 ID。
但是,除了主机名或用户名之外,还有其他唯一的 id 可以识别系统的用户帐户吗?
并且相同或等效的标识符需要在 windows、ubuntu 和 mac osx 中可用。
-马森
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您需要跨平台的东西,最简单的事情就是生成一个 guid 并将其存储在 admin/root 拥有的文件中。以下是使用 tivoli 文档中的 GUID 的示例。
http://publib.boulder.ibm.com/infocenter/tivihelp/v1r1/index.jsp?topic=%2Fcom.ibm.itsmfdt.doc%2Fans5000075.htm
然后您可以选择在配置计算机时或事后(无论哪种方式)将这些 GUID 存储在数据库中。
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.