[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: i have no name!



This has already been done - my nsswitch.conf reads exactly as you say. 
Also, root can do an ls -l in a user's home directory and see the user
names as expected. A user cannot.


On Wed, 2003-02-12 at 12:30, Michael Biebl wrote:
> Brian K. Jones wrote:
> > Can't believe this hasn't ever made it to this list :)
> > 
> > I'm running a stock Redhat 7.3 install, including the stock openldap
> > packages.  I've made it through the importing of NIS data into the
> > server, and I'm even able, at this point, to log in to another redhat
> > box via ssh, which gets the login info from the ldap server (yay!).
> > 
> > However, even though I can log into this box using info from the ldap
> > server, it apparently can't determine my username, because my bash
> > prompt looks like this: [i have no name!@host]
> > 
> > Also, doing an 'ls -l' in my home directory shows uid number only - no
> > names.  
> 
> Add/Change these entriese in your /etc/nsswitch.conf:
> 
> passwd:         files ldap
> group:          files ldap
> shadow:         files ldap
> 
> 
> It's also preferable to install the nscd, which caches queries for uid 
> and gid.
> 
> 
> Yours,
> Michael Biebl
-- 

Brian K. Jones
System Administrator
Dept. of Computer Science, Princeton University
jonesy@cs.princeton.edu
http://www.linuxlaboratory.org
http://phat.sourceforge.net
Voice: (609) 258-6080