Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-13-2014, 02:52 AM   #1
Registered: Aug 2011
Location: India
Distribution: RedHat, Centos, Fedora, SuseLinux, Ubuntu
Posts: 55

Rep: Reputation: 1
How to get user specific environment while logging in from LDAP client??

I have configured ldapserver and created user rahulbgn and group idc. This rahulbgn user is under idc group. When I log in from client system, it enters into shell as sh-4.1$. But I want the rahulbgn user's login shell to appear as [rahulbgn@ldapclient ~]$ How can i do this??? And also the owner-name and group-name is showing nfsnobody nfsnobody. The /users directory is mounted on ldapclient side through nfs from nfs server. I have set up the nfs server on ldap server. I made a directory /users on nfs server and exported it. Also I cannot make any files or directory under /users/rahulbgn folder on ldapclient side as it is showing error that I don't have permission. I want the ownername and groupname to be appeared as rahulbgn idc Please advice how I can solve it....

[root@ldapclient ~]# cd /users/
[root@ldapclient users]# ll
total 8
drwxr-xr-x. 2 nfsnobody nfsnobody 4096 Jul 9 13:47 rahulbgn
[root@ldapclient users]# su rahulbgn
sh-4.1$ pwd
Old 07-15-2014, 02:38 PM   #2
Senior Member
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,842

Rep: Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472
The UID/GID isn't being specified by LDAP, thus it gets assigned "nfsnobody".

Now this can be an error on the NFS server as it doesn't know the UID/GID. Is it possible that the NFS server isn't using LDAP?

Last edited by jpollard; 07-15-2014 at 02:40 PM.
Old 07-15-2014, 09:32 PM   #3
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,288

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Are you using NFSv3 or NFSv4? NFSv4 works a little bit differently with respect to how users are identified, and if you don't have that set up correctly, will not work correctly. I'm still using NFSv3 even though it's rather less secure. Also, you need to make sure that the permissions of the file on the server are set correctly.

When you login as rahudbgn, what are the results of the "id" command.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
specific ldap user authentication MUHAMMADRAHEEL Linux - Software 1 05-09-2014 06:11 AM
Issue logging into LDAP Client? your_shadow03 Linux - Newbie 1 01-26-2010 12:13 PM
boot script executed in specific user environment Carlos2dub Programming 1 05-28-2008 06:49 AM
Linux user logging from window client? sem007 Linux - Enterprise 3 12-23-2006 04:14 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:30 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration