Operating System - HP-UX
1753797 Members
7552 Online
108805 Solutions
New Discussion юеВ

create_depot_hp-ux_11 script

 
SOLVED
Go to solution
Chris2005
Regular Advisor

create_depot_hp-ux_11 script

I'm trying to make a depot from several patches, using the create_depot_hp-ux_11 script. During processing the script severall entries of the following error occur:

------
ERROR:

"testserv.domein1.nl:/tmp/patches/depot": You do not have the
required permissions to select this target. Check permissions
using the "swacl" command or see your system administrator for
assistance. Or, to manage applications designed and packaged
for nonprivileged mode, see the "run_as_superuser" option in
the "sd" man page.

----
What might be the problem? Script ran under root?!

Regards,
Chris
9 REPLIES 9
Ivan Krastev
Honored Contributor

Re: create_depot_hp-ux_11 script

Problem is in resolving hostname. Check for proper resolv for testserv.domein1.nl. Check /etc/hosts, /etc/rc.config.d/netconf, /etc/nsswitch. After changes restart swagentd.

regards,
ivan
Chris2005
Regular Advisor

Re: create_depot_hp-ux_11 script

Ah ok. I try that. I think that's the problem. Thanx.

Regards,
Chris
Chris2005
Regular Advisor

Re: create_depot_hp-ux_11 script

I can't find /etc/nsswitch

I checked the following files and there are no IP or hostnames in their.
---
# ll ns*
-r--r--r-- 1 bin bin 547 Nov 14 2000 nsswitch.compat
-r--r--r-- 1 bin bin 372 Nov 14 2000 nsswitch.files
-r--r--r-- 1 bin bin 574 Nov 14 2000 nsswitch.hp_defaults
-r--r--r-- 1 bin bin 532 Nov 14 2000 nsswitch.nis
-r--r--r-- 1 bin bin 585 Nov 14 2000 nsswitch.nisplus
--
Which file do you mean exactly?
Chris2005
Regular Advisor

Re: create_depot_hp-ux_11 script

By the way: /etc/hosts, /etc/rc.config.d/netconf are well configured.
Pete Randall
Outstanding Contributor

Re: create_depot_hp-ux_11 script

Create a file called /etc/nsswitch.conf that contains the following:

hosts: files[NOTFOUND=continue UNAVAIL=continue] dns [NOTFOUND=continue UNAVAIL=
continue TRYAGAIN=return] nis

The stop and restart swagentd:

/sbin/init.d/swagent stop
/sbin/init.d/swagent start


Pete

Pete
Chris2005
Regular Advisor

Re: create_depot_hp-ux_11 script

I'm sorry, actually the etc/hosts file was not ok and had to change.

After restarting the swagentd it works.

Thanx.

Regards,
Chris
Chris2005
Regular Advisor

Re: create_depot_hp-ux_11 script

Anyway I am wondering what the nsswitch.conf file and nsswitch files are for?
Pete Randall
Outstanding Contributor
Solution

Re: create_depot_hp-ux_11 script

Chris,

Do a man on nsswitch.conf. (there is no nsswitch file, it's nsswitch.conf). Basically it tells DNS how you want to resolve hostnames - that is the order of resolution: look at /etc/hosts first, if you don't find it there, check DNS, then NIS, etc, etc.

Without an nsswitch.conf, your resolution is strictly via /etc/hosts - and it's unlikely you use this box to access the outside world!


Pete

Pete
Chris2005
Regular Advisor

Re: create_depot_hp-ux_11 script

Perfect. That's clear.

Thanx.