Solaris / OpenSolarisThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Well no NFS server is there on that single machine.
Well i didnt create any user's directories on it . I just created the user using DS console and in its home directory option i gave the path /export/home/test2. But when i tried to login with test2 user from ldap client workstation it didnt mount its home directory but login was successful.
I tried to create folder on LDAP Server machine
bash#pwd
/export/home
bash#mkdir test2
It gave me some error as i m not in office so cannot tell u exact error.
Last edited by capricorn80; 08-08-2006 at 12:52 PM.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
On each client machine, just add this line to the /etc/auto_home file:
Code:
* nfs-server:/export/home/&
Of course, replace "nfs-server" with the hostname of your LDAP/NFS server.
There is no problem creating a directory in /export/home as root, I think you had an error message when you tried to create one under /home, which is by default illegal.
Don't forget to change the owner of the home directories to their respective owners, use their numerical id, as the LDAP server cannot be a LDAP client for the passwd database. Alternatively, have all the LDAP users exist in the LDAP server /etc/passwd file.
hi !
I just edit the /etc/auto_home file and add the line * myserver:/export/home/& on ldap client machine and then trying to login with user test2 but its still giving me error " cannot access Home directory".
I didnt understand the lines given below
Don't forget to change the owner of the home directories to their respective owners, use their numerical id, as the LDAP server cannot be a LDAP client for the passwd database. Alternatively, have all the LDAP users exist in the LDAP server /etc/passwd file.
Last edited by capricorn80; 08-09-2006 at 05:43 AM.
no.
i told u i just add the path in Posix User option where we have Home Directory Attribute in Directory Server and after that i add the line * myserver:/export/home/& in /etc/auto_home file .
Code:
share -F nfs -o rw -d "home dirs" /export/home
U didnt mention whether i should i add this to solaris 10 ldap server or solaris 9 ldap client.
I first add this code to solaris 10 and when i tried to execute command /etc/init.d/nfs.server start the message was NFS server was not started because no entry in /etc/df/dfstab. So i added the the line to the /etc/dfs/dfstab
share -F nfs -o rw -d "home dirs" /export/home in solaris 9 ldap client.
and /etc/init.d/nfs.server worked ok. Then i try to login with test2 user but it didnt work as same error " unable to access home directory ". I also tried to use this command
share -F nfs -o rw -d "home dirs" /export/home
only on solaris 9 ldap client still test2 got same login error.
chown 156 /export/home/test2
this command also not working after i started the nfs
error was : No such file or directory.
I have tried all possibilities but all were use less.
Last edited by capricorn80; 08-10-2006 at 12:58 AM.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
I'm afraid you are completely missing how NFS works.
The machine that need to share the home directories is the NFS server (which you still confusingly call the LDAP server).
Consequently, the above commands are only to be run on the NFS server.
About the chown, if it fails on the NFS server, you have missed to create the test2 user's home directory.
I believe that is obvious from the error message.
not exactly . I used NFS on linux . but there are some confusion going on with respect to ldap dirctory mounting. i got it wrong i thought u wrote this command
/etc/init.d/nfsserver start
to run it on solaris 9 . but your meaning was that to start nfs server on solaris 9 we can use the above command.
i just performed the following steps to mount the user home directory.
step1: on client machine i added entry in /etc/auto_home file
* myserver:/export/home/&
step2: then i created a folder on ldap server
mkdir /export/home/test2
chown 156 /export/home/test2
and then on ldap server i configure the nfs and added line to /etc/dfs/dfstab
share -F nfs -o rw -d "home dirs" /export/home
and in last
svcadm enable network/nfs/server
I think this is all procedure to mount user home directories using nfs.
let me try to login from client machine.
No not working same error " unable to access home directory. click ok to start failsafe session or cancel to restart login.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.