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.
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
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
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.
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?
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 >>
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.