LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-13-2014, 03:52 AM   #1
rahul.buragohain
Member
 
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??


Hi,
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
/users
sh-4.1$
 
Old 07-15-2014, 03:38 PM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,654

Rep: Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255
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 03:40 PM.
 
Old 07-15-2014, 10:32 PM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
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.
 
  


Reply


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 07:11 AM
Issue logging into LDAP Client? your_shadow03 Linux - Newbie 1 01-26-2010 01:13 PM
boot script executed in specific user environment Carlos2dub Programming 1 05-28-2008 07:49 AM
Linux user logging from window client? sem007 Linux - Enterprise 3 12-23-2006 05:14 AM


All times are GMT -5. The time now is 03:24 AM.

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