LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-17-2009, 04:35 PM   #1
mihaelamr2
LQ Newbie
 
Registered: Dec 2009
Posts: 3

Rep: Reputation: 0
nis user home directory problem


Hello, I have just installed Solaris10 on several x86 machines and trying to configure a NIS environment. All works seems to work fine until the part of adding new users. After adding a user on NIS master server i cannot login:
# su - nisusr1
su : No directory!
This is how i configured the NIS environment.
# ypmatch nisusr1 passwd
nisusr1:##nisusr1:100:101::/export/home/nisusr1:/bin/ksh
# ypcat auto.master
auto_home -browse
# ypcat auto.home
mihasolaris102:/export/home/&
# cat /etc/auto_home
+auto_home
/export/home mihasolaris102:/export/home/&
# cat /etc/auto_master
+auto_master
#/net -hosts -nosuid,nobrowse
/- auto_home -browse

# svcs nis/server
STATE STIME FMRI
online 23:59:31 svc:/network/nis/server:default
# svcs autofs
STATE STIME FMRI
online 23:59:53 svc:/system/filesystem/autofs:default
# svcs nfs/server
STATE STIME FMRI
online 23:59:56 svc:/network/nfs/server:default

Also the NFS config part:
# dfshares
RESOURCE SERVER ACCESS TRANSPORT
mihasolaris102:/home mihasolaris102 - -
mihasolaris102:/usr/share/man mihasolaris102 - -
# share
- /home rw,public,anon=-1 ""
- /usr/share/man ro ""

Following a BigAdmin post, i changed the /export/home entry in vfstab to /home, so that /home will be the local user home dir:
#cat /etc/vfstab
/dev/dsk/c1t0d0s6 /dev/rdsk/c1t0d0s6 /home ufs 2 yes -

I am quite new to this part of solaris and i do not understand anymore how to configure NIS , NFS and AUTOFS to be able to add users that mount their home directory remotely on any NIS client. Can you clear me out where is the bad?
Thanks
 
Old 12-20-2009, 03:04 AM   #2
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
The passwd table user entry home directory should be /home/nisusr1. On the server, there should a directory named /export/home/nisusr1 and /export/home should be shared.
 
Old 12-21-2009, 08:01 AM   #3
mihaelamr2
LQ Newbie
 
Registered: Dec 2009
Posts: 3

Original Poster
Rep: Reputation: 0
thanks jlliagre, but unfortunately i have tried this combination before and not working...and now is also not working...
But i noticed something strange with automounter...
when i shutdown the computer ..it hangs at "automounter not working, retrying...." or something loke that...although ps -ef | grep automountd shows the process..
root 378 1 0 15:53:01 ? 0:00 /usr/lib/autofs/automountd
And one thing that also annoys me is the fact that i cannot "touch" /export/home - no operation can be done on this directory. for instance...ls and mkdir freezes (for 1 h if i let it)
# ls -la /export
total 5
drwxr-xr-x 3 root sys 512 Dec 14 20:04 .
drwxr-xr-x 34 root root 1024 Dec 21 15:54 ..
dr-xr-xr-x 1 root root 1 Dec 21 15:53 home
# ls -la /export/home
^C# mkdir /export/home/nisusr1
^C#
any ideas why this happen?
 
Old 12-21-2009, 08:41 AM   #4
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 need to have the NFS server sharing the users home directories. First make sure this is working well before experiencing with the automounter.

Also, please clarify what you are referring to when telling "the computer". Better knowing if this is the NIS/NFS server or its client.
 
Old 12-21-2009, 02:43 PM   #5
mihaelamr2
LQ Newbie
 
Registered: Dec 2009
Posts: 3

Original Poster
Rep: Reputation: 0
sorry..by computer i mean NIS server. NIS server is the one that hangs at shutdown with <<automounter not running, retrying>>
NFS server is behaving strange..meaning that i shared for testing purpose /usr/share/man on the same NFS/NIS server and from a client computer i could mount this directory. But still no luck with /export/home.
One thing i do not understand is why you create the nis users with home directory /home/nisuser, but you setup for automount the /export/home..since the users' home directories will not be in /export/home/ ?
some errors that i get while trying to manually mount /export/home in a different location on NIS client (or even on the NIS server):
<<# mount mihasolaris102:/export/home /tmpmount
nfs mount: mount: /tmpmount: Operation not supported on transport endpoint>>

i also see this error in /var/adm/messages:
<<WARNING: NFS server initial call to mihasolaris102 failed: error 122 >>
 
Old 12-21-2009, 03:00 PM   #6
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
The automounter, when properly configured, will mount nfsserver:/export/home/username to /home/username so the latter should be defined as username home directory.
/export/home is the storage location while /home is the common path for users.
 
Old 01-05-2011, 01:37 AM   #7
kashifazizawan
Member
 
Registered: Aug 2008
Location: Dubai, UAE
Distribution: CentOS
Posts: 40
Blog Entries: 13

Rep: Reputation: 15
Question

i am running solaris 9 master/ client with automount nfs settings etc
every thing fine:

i want to secure my nfs share directory:
/export/home

every user should read write its own home drive instead of read to other's home drives.

any idea?

Last edited by kashifazizawan; 01-05-2011 at 01:39 AM.
 
Old 01-06-2011, 05:28 AM   #8
kashifazizawan
Member
 
Registered: Aug 2008
Location: Dubai, UAE
Distribution: CentOS
Posts: 40
Blog Entries: 13

Rep: Reputation: 15
i got the answer:-

at client side
/etc/auto_master
add this line

/export/home auto.home -nobrowse



this gave me solution..
my previous file was this
/export/home auto.home -browse
 
  


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
NIS Server -Users not getting /home directory bunty82 Linux - Server 3 05-17-2019 07:45 AM
NFS problem: "Could not chdir to home directory /home/USER: Permission denied" sumanc Linux - Server 4 07-22-2010 04:12 PM
user home directory problem dody1313 Solaris / OpenSolaris 5 04-25-2008 11:31 AM
nis home directory automounting ravi_foru Linux - Networking 2 03-06-2006 09:12 AM
exporting home directory with NFS and NIS cevjr Linux - Networking 2 12-23-2004 10:11 AM

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

All times are GMT -5. The time now is 12:45 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