Ubuntu 12.04 加入Windows AD域步骤:
目前该软件名叫pbis,安装或deb包可网上下载
1、安装likewise-open工具
# apt-get install likewise-open
2、将Ubuntu电脑加入AD域
# domainjoin-cli join ming.com yang (yang为ming域的管理员帐号)
密码
3、给域用户sudo的权限:
# vi /etc/sudoers
%ming\\domain^users ALL (ALL:ALL) ALL
:wq (保存并退出)
重启电脑后用ming\zhiming.yang登录即可
注:
Ubuntu下域帐号家目录:/home/likewise-open/MING/zhiming.yang
# /opt/pbis/bin/config UserDomainPrefix $domain (设置默认域名,设置前为domain\username,设置后为username)
# /opt/pbis/bin/config AssumeDefaultDomain true
# /opt/pbis/bin/config LoginShellTemplate /bin/bash (设置SHELL为/bin/bash,不设置为/bin/sh)
# /opt/pbis/bin/config HomeDirTemplate %H/%U (设置家目录为/home/username,不设置为/home/likewise-open/domain/username)
调整后给sudo权限
# vi /etc/sudoers
%domain^users ALL (ALL:ALL) ALL
:wq
Ubuntu 12.04加域时报错ERROR:LW_ERROR_INVALID_MESSAGE解决办法:
将likewise-open软件卸了重装即可
# apt-get -P likewise-open
# apt-get install likewise-open
转载于:https://blog.51cto.com/yangzhiming/1159146