LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 08-11-2006, 02:51 AM   #61
capricorn80
Member
 
Registered: Jun 2006
Distribution: CentOS
Posts: 154

Original Poster
Rep: Reputation: 15

yea its working fine giving me out put .
showmount -e 172.16.4.80
output : export list for 172.16.4.80
/export/home (everyone)

ls -l /net/172.16.4.80/export/home
this command showing me folders with there permissions.

ls -ld /home/test2
showing me test2 permissions which are
drwxr-xr-x 2 test2 root

After that i tried to login from test2 on client machine but still error is there "unable to access home directory"
 
Old 08-11-2006, 12:11 PM   #62
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
But you still can login as test2 or not ?
 
Old 08-11-2006, 12:15 PM   #63
capricorn80
Member
 
Registered: Jun 2006
Distribution: CentOS
Posts: 154

Original Poster
Rep: Reputation: 15
i can login as test2 . But the problem was that home directory was not mouting n still after doing this i cannot be able to access home directory of test2. The problem is still there.
 
Old 08-14-2006, 01:48 AM   #64
capricorn80
Member
 
Registered: Jun 2006
Distribution: CentOS
Posts: 154

Original Poster
Rep: Reputation: 15
Hi jlliagre !
u figure out wat is the problem. Dont know y its not working yet.
 
Old 08-14-2006, 01:51 AM   #65
capricorn80
Member
 
Registered: Jun 2006
Distribution: CentOS
Posts: 154

Original Poster
Rep: Reputation: 15
Hi jlliagre !
u figure out wat is the problem? Dont know y its not working yet.
 
Old 08-14-2006, 03:31 AM   #66
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by capricorn80
i can login as test2 . But the problem was that home directory was not mouting n still after doing this i cannot be able to access home directory of test2. The problem is still there.
Please elaborate.
Copy and paste the results of these commands executed on your client machine:
Code:
$ telnet localhost
Connected to localhost.
Escape character is '^]'.
login: test2
password: *****
Last login: Mon Aug 14 10:23:59 on pts/7
Sun Microsystems Inc.   SunOS 5.11      snv_45  August 2006
$ echo $HOME
/home/test2
$ pwd
/home/test2
$ ls -ld $HOME
drwxr-xr-x  75 test2 root    3584 Aug 13 20:06 /home/test
 
Old 08-14-2006, 11:45 PM   #67
capricorn80
Member
 
Registered: Jun 2006
Distribution: CentOS
Posts: 154

Original Poster
Rep: Reputation: 15
bash-2.05# telnet localhost
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.


SunOS 5.9

login: test2
Password:
No directory! Logging in with home=/
Last login: Fri Aug 11 14:55:52 from :0
Sun Microsystems Inc. SunOS 5.9 Generic May 2002
bash-2.05$ echo $HOME
/

bash-2.05$ pwd
/
bash-2.05$ ls -ld $HOME
drwxr-xr-x 43 root root 1536 Aug 15 09:15 /
bash-2.05$

Last edited by capricorn80; 08-14-2006 at 11:47 PM.
 
Old 08-14-2006, 11:53 PM   #68
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
What gives these commands on the client machine ?
Code:
grep test2 /etc/passwd
ldaplist -vl passwd test2
 
Old 08-15-2006, 01:02 AM   #69
capricorn80
Member
 
Registered: Jun 2006
Distribution: CentOS
Posts: 154

Original Poster
Rep: Reputation: 15
bash-2.05# grep test2 /etc/passwd
bash-2.05# ldaplist -vl passwd test2
+++ database=passwd
+++ filter=(&(objectclass=posixaccount)(uid=test2))
+++ template for merging SSD filter=(&(%s)(uid=test2))
dn: uid=test2,ou=people,dc=sunrnd1,dc=sunlab,dc=ciit
givenName: test2
sn: tes
gidNumber: 1
uidNumber: 156
mail: test2@sunrnd1.sunlab.ciit
uid: test2
cn: test2 tes
loginShell: /usr/bin/bash
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetorgperson
objectClass: posixAccount
objectClass: shadowaccount
userPassword: {crypt}SkmtCTAWcoHlc
homeDirectory: /export/home/test2
preferredLanguage: en
 
Old 08-15-2006, 04:18 AM   #70
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Huh ??
Quote:
homeDirectory: /export/home/test2
Why did you change the homeDirectory attribute which was correct in http://www.linuxquestions.org/questi...63#post2369363 ?
Quote:
homeDirectory: /home/test2
 
Old 08-15-2006, 04:39 AM   #71
capricorn80
Member
 
Registered: Jun 2006
Distribution: CentOS
Posts: 154

Original Poster
Rep: Reputation: 15
You Wrote that
By the way, the usual convention is to have the home directories on /export/home/<username> not /home/<username>.
So i change it to /export/home/test2
 
Old 08-15-2006, 08:56 AM   #72
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
You are confusing the physical location of directories shared by the NFS server with the logical home directories.

In that previous post, I was talking about physical location which are indeed by convention /export/<something>. I was later asking you to try "ls -ld /home/test2" on the client machine, which should have lead you to understand the difference.

Home directories have always been under Unix, and still are /home/<username>, so revert test2 homeDirectory attribute to its correct value and see what's happen.
 
Old 08-15-2006, 12:47 PM   #73
capricorn80
Member
 
Registered: Jun 2006
Distribution: CentOS
Posts: 154

Original Poster
Rep: Reputation: 15
listen sir its been really confusing .
Now you are saying that i should give the path of user in Home Directory attribute in the Directory Server like this /home/test2 ???? .
well i did this in office i change it n try to login from client. But i will try it again tomorrow.
If i misunderstand something plz do let me know.
thx
wait a min well
I was later asking you to try "ls -ld /home/test2" on the client machine..

yes i did that on client machine not on server.
 
Old 08-15-2006, 03:17 PM   #74
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by capricorn80
listen sir its been really confusing .
Now you are saying that i should give the path of user in Home Directory attribute in the Directory Server like this /home/test2 ???? .
Absolutely.
Quote:
well i did this in office i change it n try to login from client. But i will try it again tomorrow.
If i misunderstand something plz do let me know.
thx
wait a min well
I was later asking you to try "ls -ld /home/test2" on the client machine..

yes i did that on client machine not on server.
Yes, that was the right test.
 
Old 08-17-2006, 01:44 PM   #75
capricorn80
Member
 
Registered: Jun 2006
Distribution: CentOS
Posts: 154

Original Poster
Rep: Reputation: 15
ok i will check it.
listen can we implement quota on users using Directory Server? i mean test2 user can assign only 50 MB like we do in Active Directory.
 
  


Reply



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
Configure LDAP yongsp Linux - Software 3 04-15-2006 02:54 AM
pam + ldap client paul_mat Linux - Networking 0 10-25-2005 10:55 PM
LDAP client configuration help omart Linux - Software 1 11-22-2004 02:06 AM
suse 9.1 as ldap client egyptian Linux - Networking 0 07-19-2004 02:41 AM
Configure LDAP rockwell_001 Linux - Software 0 07-07-2004 10:47 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 04:51 PM.

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
Open Source Consulting | Domain Registration