login等是成功的,但是当打开一个GNOMEterminal,有时候I have no name!@hostname:~$而不是username@hostname:~$
for i in {1..20}; do gnome-terminal; done ) whoami报告设置了正确的用户名和USERvariables。 whoami , wbinfo -m , getent passwd username , id username )不会返回任何故障。 [libdefaults] default_realm = MY.DOMAIN.COM dns_lookup_realm = false dns_lookup_kdc = false ticket_lifetime = 24h renew_lifetime = 7d forwardable = true [realms] MY.DOMAIN.COM = { # KDC is the key distribution server # One per line in the format #kdc = ##adsrv## ##KDCSERVER## kdc = dc1.my.domain.com kdc = dc2.my.domain.com kdc = dc3.my.domain.com kdc = dc4.my.domain.com kdc = dc5.my.domain.com # Admin server is a list of AD server #admin_server = adsrv1 adsrv2 ... adsrvX ##ADMINSERVER## admin_server = dc1.my.domain.com dc2.my.domain.com dc3.my.domain.com dc4.my.domain.com dc5.my.domain.com } ##MyRealms## [domain_realm] .my.domain.com = MY.DOMAIN.COM my.domain.com = MY.DOMAIN.COM ##MyDomRealms##
[global] server string = my server workgroup = MY security = ads realm = my.domain.com password server = * domain logons = no template homedir = /home/%D/%U template shell = /bin/bash winbind enum groups = no winbind enum users = no winbind use default domain = yes domain master = no local master = no prefered master = no os level = 0 idmap config *:backend = tdb idmap config *:range = 11000-20000 idmap config MY:backend = rid idmap config MY:range = 100000-200000