SUPHAKIT CHAMWUTHIPRICHA
2009-Feb-21 09:33 UTC
[Samba] shell changed from root@ to administrator@
Hi, Can any one help me why my server always automatically changed from [root@abc] to [administrator@abc]? I found out that when I repeat this command ,it will change back to [root@abc] [administrator@abc] authconfig-tui ?????????????????? Authentication Configuration ???????????? [*] Cache Information [*] Use MD5 Passwords [*] Use Shadow Passwords [*] Use LDAP [*] Use LDAP Authentication ??????????????????? LDAP Settings ????????????????? ? Server: ldap://192.168.1.1:389/_________________ ? ? Base DN: dc=abc,dc=com___________________ ? This is my server detail: PDC: CENTOS 5.1 + SAMBA + FEDORA DIRECTORY SERVER Thank you, Tom
> Can any one help me why my server always automatically changed from > [root@abc] to [administrator@abc]? > I found out that when I repeat this command ,it will change back to > [root@abc] > > [administrator@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@jaswin.com.au <mailto:michaelh@jaswin.com.au>
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, Tom 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@abc] to [administrator@abc]? >> I found out that when I repeat this command ,it will change back to >> [root@abc] >> >> [administrator@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@jaswin.com.au <mailto:michaelh@jaswin.com.au> >