Operating System - HP-UX
1833758 Members
2331 Online
110063 Solutions
New Discussion

swreg / swacl cannot regester depot or change acl as root

 
SOLVED
Go to solution
Alan Casey
Trusted Contributor

swreg / swacl cannot regester depot or change acl as root

Hi I'm trying to register /cdrom as a sw depot as root.
This fails, and I get the same errors if I try swacl changes. please help



image1(root)/> swreg -l depot /cdrom

======= 03/04/04 18:59:13 GMT BEGIN swreg SESSION (non-interactive)

* Session started for user "root@image1".

* Beginning Selection
* Targets: image1
* Objects: /cdrom
ERROR: "image1:/cdrom": You do not have the required permissions to
perform this SD operation. Please check to see that you have
the required permissions using the "swacl" command or see your
system administrator for assistance.
ERROR: More information may be found in the daemon logfile on this
target (default location is image1:/var/adm/sw/swagentd.log).
* Selection had errors.



======= 03/04/04 18:59:13 GMT END swreg SESSION (non-interactive)
6 REPLIES 6
Sridhar Bhaskarla
Honored Contributor
Solution

Re: swreg / swacl cannot regester depot or change acl as root

Hi Alan,

Ping to your 'hostname' and see if it is successful. 'hostname' should be resolvable to the local IP address. SO, make sure your /etc/hosts entry is correct.

Also restart your swagentd process. Kill 'swagentd', make sure it is not running and start it with 'swagentd -r' and see if can run swreg again.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Jeff Schussele
Honored Contributor

Re: swreg / swacl cannot regester depot or change acl as root

Hi Alan,

If Sri's suggestions do not clear the problem AND this system was ignited from another it *could* be a problem with the ACLs having the old hostname embedded in them.
Check the files in /var/adm/sw/security - specifically all files that start with "_"

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Michael Tully
Honored Contributor

Re: swreg / swacl cannot regester depot or change acl as root

I've seen this a couple od times, where the system hostname has been changed or there is a DNS problem. If this is the case, restart the 'swagent' daemon.
Anyone for a Mutiny ?
Colin Topliss
Esteemed Contributor

Re: swreg / swacl cannot regester depot or change acl as root

....and if the restart of swagentd doesn't fix the problem, try:
swacl -l host

Note that you need to type the word 'host', and NOT type your hostname :-)

You should see a line:
user:root:crwit

If you don't see crwit against root, then you will have a problem.

Do:

swacl -l host -M user:root@:crwit

Check to see if the change has been made by once more doing
swacl -l host

You should see that root has all persmissions back again.

I must admit I've only ever come across unusual permissions once or twice - certainly not common to just lose them if this turns out to be the case.
T G Manikandan
Honored Contributor

Re: swreg / swacl cannot regester depot or change acl as root

Just do a

#/usr/sbin/swagentd -r

This will rebounce your swagentd.Might be scenario where the ip/hostname had some modifications but the swagentd was not restarted for that to take into effect.
Sanjiv Sharma_1
Honored Contributor

Re: swreg / swacl cannot regester depot or change acl as root

Hi Alan,

Please check this link:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=198788
Everything is possible