can't add directory: Permission denied.

Hello Experts,
I installed sun solaris 10 on vmware server for practice purpose.I am trying to configure root domain
can't add directory: Permission denied.I thought i missed some steps and again tried to delete the root domain and recreated again but the same error is coming. Please help.
couldn't create org_dir.suntest.org.
I followed this guide
http://docs.sun.com/app/docs/doc/816-4558/c3root-31192?a=view
Until I hang in step 14
bash-3.00# /usr/lib/nis/nissetup
can't add directory: Permission denied.
couldn't create org_dir.suntest.org.




bash-3.00# ls -l /var/nis/data
total 6
-rw-r--r--   1 root     root         392 Jan 28 11:57 root.object
-rw-r-----   1 root     root         124 Jan 28 12:00 root_dir
-rw-r--r--   1 root     root          13 Jan 28 11:57 serving_list
 
bash-3.00# nisls -l suntest.org
suntest.org.:
 
bash-3.00# niscat -o suntest.org.
Object Name   : "suntest"
Directory     : "org."
Owner         : "research.suntest.org."
Group         : "root.suntest.org."
Access Rights : r---rmcdrmcdr---
Time to Live  : 24:0:0
Creation Time : Mon Jan 28 11:57:27 2008
Mod. Time     : Thu Jan  1 03:00:00 1970
Object Type   : DIRECTORY
Name : 'suntest.org.'
Type : NIS
Master Server :
        Name       : research.suntest.org.
None.
        Universal addresses (6)
        [1] - udp, inet, 192.168.0.189.0.111
        [2] - tcp, inet, 192.168.0.189.0.111
        [3] - -, inet, 192.168.0.189.0.111
        [4] - -, loopback, research.rpc
        [5] - -, loopback, research.rpc
        [6] - -, loopback, research.rpc
Time to live : 12:0:0
Default Access rights :
 
 
bash-3.00# /usr/lib/nis/nissetup
can't add directory: Permission denied.
couldn't create org_dir.suntest.org.

Open in new window

LVL 12
ibu1System AdministratorAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ibu1System AdministratorAuthor Commented:
Here is the error i am getting on console
error.bmp
0
Brian UtterbackPrinciple Software EngineerCommented:
Why in the world are you setting up a NIS+ system? Are you already using NIS+? If you are not, don't try. Do you
need to be part of an existing NIS+ network?
0
yuzhCommented:
You should not setup Solaris 10 as NIS+ master server (NIS+ is EOF for Solaris 10), see the follwing doc for more details:
http://www.sun.com/software/solaris/faqs/nisplus.xml

If you have a Solaris network using NIS+, you can setup Solaris 10 box as a NIS+ client. add/remove/modify NIS+ objects need to be done in the NIS+ master server.

Consider migrate NIS+ to LDAP.  upgrade your NIS+ master server to Solaris 9 then migrate the database to LDAP, please read the following doc for more details:
http://www.sun.com/software/whitepapers/solaris9/nisldap.pdf
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

ibu1System AdministratorAuthor Commented:
Thanks all,
It means NIS+ feature is no longer available in solaris 10.Can I go for nis only or LDAP ?
0
yuzhCommented:
You can use LDAP or NIS, or rsetup the NIS+ Master server in a Solaris 9/8 box and setup the Solaris 10 boxes as a NIS+ clients.
0
Brian UtterbackPrinciple Software EngineerCommented:
That is incorrect conclusion. A system running Solaris 10 can certainly be a NIS+ client or master. There is nothing
missing in Solaris 10 that is in prior versions regarding NIS+, and it probably has some bug fixes as well. The link
given above explicitly stated that NIS+ will be removed from a future version of Solaris, but not from Solaris 10.

That having been said, NIS+ is EOF (i.e. deprecated), and should not be used on any new deployments. So, if you
really must use it, go ahead, but otherwise you should use LDAP, NIS or files as your naming system.  

If you are dealing with running under VMWare, I would use files until you are more comfortable with the whole
setup. You can always change it afterward. It is pretty simple to chnage between naming services, even on the
fly.

0
gheistCommented:
Another alternative would be kerberos if you have more than couple of OSes in your domain.
0
gheistCommented:
Not to mention underscore in NIS domain name may cause the problem, but since it is deprecated explore alternatives instead.
0
ibu1System AdministratorAuthor Commented:
Thanks to all the experts for the comments.
blu,if we can able to install and configure nis+ in solaris 10,than where I am doing mistake.I followed exactly the same steps provided in the guide.
Or its incompabible with vmware.
I am trying this thing with vmware because while installing solaris 10 in my p4 pc, solaris 10 does not detect network card.I tried with different network card but with no luck.The difference I noticed while installing solaris with vmware is the difference in the bios menu.The bios menu of vmware and the host pc where it is installed is totally different.That's why it can able to detect network card with vmware.
:)
0
gheistCommented:
BIOS setup menu has nothing to do with ways OS detects PCI devices.
It is cheap desktop ethernet card that has no drivers for Solaris and probably will never have. Vmware uses old and widely supported AMD PCnet adapter.
0
yuzhCommented:
There might be bug in Solaris 10 NIS+, I've seen it with Solaris 10 NIS+ client.

Since NIS+ is EOF, I would not setup a Solaris 10 as NIS+ Master server, and not sure the Solstice management can run on Solaris 10.

If you still want to learn NIS+, have a look at the following NIS FAQ:
http://www.eng.auburn.edu/~rayh/solaris/NIS+_FAQ.html

it works for me for Solaris 9 or older.
0
ibu1System AdministratorAuthor Commented:
Thankyou experts,
Still I am confusing.NIS + will work with solaris 10 or not.Its like debate going on.
Gheist, if u r sure it can be installed,than guide me where I am wrong.Or give some tutorial from where u configured nis + with solaris 10.
Installing NIS + in solaris 9 is almost the alternative option.
Thanks experts for ur patience..
:)
0
yuzhCommented:
If you want still want to try, you can follwing the instructions in the FAQ:
http://www.eng.auburn.edu/~rayh/solaris/NIS+_FAQ.html

start with the How Tos, eg look at:

__3.1 : How to Prepare Your Site for NIS+
__3.2 : How to Set Up a Root NIS+ Master
__*3.3 : How to Set Up a NIS+ Client
__3.4 : How to Set Up a Root NIS+ Replica

    it should get you going, as I mentioned before, Solaris 10 might still have bug with NIS+ (I've seen it a few month ago). Solaris 9 or older will 100% working. and I have not seen any version of  solstice adm suite for Solaris 10 wich you need to use it to manager the NIS+ database.

    Good luck!
0
ibu1System AdministratorAuthor Commented:
I am still waiting for solution.More comments needed.
0
Brian UtterbackPrinciple Software EngineerCommented:
To add to your previous comment, there is no debate. NIS+ is fully support by Sun in Solaris 10, period. If you have a support contract, you can call Sun Tech Support and they will help you get NIS+ set up in Solaris 10. In fact, NIS+
is still currently available in Solaris Express Community Edition, which is essentially the beta version of the
next release of Solaris.

So, what is the issue you have at this point? There have been several pointers to FAQ's, what else do you require? If you have a specific problem at this point, please post it and maybe we can help you out.
0
yuzhCommented:
Can you print a copy of the FAQ and then follow the instructions in the FAQ to set it up, it works for me. (at least for Solaris 9 or older)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ibu1System AdministratorAuthor Commented:
The problem is still not resolve.But I want to close the question any how.So points awarded.Thanks to all the experts for you patience.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.