如何从 Mac OS X 更改我的 Windows 域密码?

Har*_*vey 27 windows mac domain samba macos

Mac 在 Windows 企业环境中运行良好,但许多公司要求您在一段时间(例如 3 个月)后更改密码。

如何在无需启动 PC 的情况下更改 Windows 域密码?

Har*_*vey 22

从终端:

$ smbpasswd -U username -r DOMAIN_CONTROLLER_IP

$ smbpasswd -h
When run by root:
    smbpasswd [options] [username]
otherwise:
    smbpasswd [options]

options:
  -L                   local mode (must be first option)
  -h                   print this usage message
  -s                   use stdin for password prompt
  -c smb.conf file     Use the given path to the smb.conf file
  -D LEVEL             debug level
  -r MACHINE           remote machine
  -U USER              remote username
extra options when run by root or in local mode:
  -a                   add user
  -d                   disable user
  -e                   enable user
  -i                   interdomain trust account
  -m                   machine trust account
  -n                   set no password
  -W                   use stdin ldap admin password
  -w PASSWORD          ldap admin password
  -x                   delete user
  -R ORDER             name resolve order
Run Code Online (Sandbox Code Playgroud)

  • 不幸的是 `smbpasswd` 不再出现在 Lion 的全新安装中。 (9认同)
  • `samba` 软件包现在是“默认” Homebrew 的一部分,因此您只需键入 `brew install samba` 而不是使用该 URL。 (5认同)
  • 如果你正在运行 Homebrew,你可能想尝试运行 `brew install https://raw.github.com/vertis/homebrew/master/Library/Formula/samba.rb` (3认同)
  • `smbpasswd` 在 macOS 10.12.5 上不起作用,并且 `brew install samba` 显示“没有可用的公式”。是否有其他选择(不是门户网站)? (3认同)

Axx*_*err 9

另一个建议是登录到您公司的电子邮件门户网站。许多公司正在使用 MS Exchange,它支持通过您的网络电子邮件会话更改您的密码。对于不在 Mac 上的用户,我遇到了这个确切的问题,而是永远不会接触属于 Active Directory 的机器。网络邮件/密码更改界面使这成为可能,并且适用于数百个用户。我必须承认失败消息非常神秘且毫无用处。如果密码更改失败,因为您的新密码缺乏复杂性,它可能无法告诉您。所以请注意这一限制。