[Samba] shell changed from root@ to administrator@

suphakit at gmx.com suphakit at gmx.com
Mon Feb 23 11:44:33 GMT 2009

Thank you Michael, I want to replace my Windows fileserver with Linux
and I also use it as authentication server for domain users (Windows)

Best Regards,

here is my  /etc/nsswitch.conf file:::

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files    

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files ldap
rpc:        files
services:   files ldap

netgroup:   files ldap

publickey:  nisplus

automount:  files ldap
aliases:    files nisplus

Michael Heydon wrote:
>> Can any one help me why my server always automatically changed from
>> [root at abc] to [administrator at abc]?
>> I found out that when I repeat this command ,it will change back to
>> [root at abc]
>> [administrator at abc] authconfig-tui
> If it is anything like my system, root is a local user (defined in
> /etc/passwd) while administrator is defined in ldap with the same UID.
> It sounds like your system is using LDAP to resolve the username
> before passwd.
> What does your /etc/nsswitch.conf look like?
> I suspect that the Redhat/Centos support people might be more
> knowledgeable about this stuff, as far as I can see your problem has
> nothing to do with samba.
> *Michael Heydon - IT Administrator *
> michaelh at jaswin.com.au <mailto:michaelh at jaswin.com.au>

More information about the samba mailing list