System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

swacl - l root command shows error.

Jestin John Chacko
Regular Advisor

swacl - l root command shows error.

Dear,

while executing swacl -l root i am getting the following error.can anyone suggest how i can get the proper permissions output

ERROR: You are not authorized to perform the requested operation on
the "root" ACL at "kmcedb1:/". Depending on whether you are
attempting to list or modify the ACL, you do not have the
required "test" or "control" permission, respectively. (Use
the "id" command to find out the identity information used by
SD to determine your access permissions.)
You have mail in /var/mail/root


Please help me in this issue..
10 REPLIES
Aneesh Mohan
Honored Contributor

Re: swacl - l root command shows error.


Hi,

Check this..


#nslookup your_host_name
#nslookup your_ip_address
#/sbin/init.d/swagentd stop
#/sbin/init.d/swagentd start


Aneesh
Jestin John Chacko
Regular Advisor

Re: swacl - l root command shows error.

Dear Aneesh
Thanks for ur quick reply.

I had done the same thing everything is working fine.i had restarted the swagent also,
can you please suggest the next steps to be checked
John Guster
Trusted Contributor

Re: swacl - l root command shows error.

check the files under /var/adm/sw/security. the hostname should be this hostname: kmcedb1, make sure you have this hostname in the /etc/hosts file as well.
Aneesh Mohan
Honored Contributor

Re: swacl - l root command shows error.

Hi,

Please post tail of /var/adm/sw/swagentd.log.

Aneesh
Aneesh Mohan
Honored Contributor

Re: swacl - l root command shows error.

Also...

Please confirm your user id matches the _OWNER listed permissions.

cat /var/adm/sw/products/ifiles/_OWNER
# default_realm=hpus34
num_entries=2
user:root:00
group:sys:00

Regards,
Aneesh
Jestin John Chacko
Regular Advisor

Re: swacl - l root command shows error.

Dear aneesh..

I had checked the filesit looks exactly the same but only diffrence is the hostname i am posting you the exact error i got

05/12/10 10:16:31 IST BEGIN swcopy SESSION (non-interactive)
(jobid=hostname-0179)

* Session started for user "root@hostname".

* Beginning Selection
ERROR: "hostname:/server/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.
* Target connection failed for "HOstname:/server/depot".
ERROR: More information may be found in the daemon logfile on this
target (default location is hostname:/var/adm/sw/swagentd.log).
* Selection had errors.

John Guster
Trusted Contributor

Re: swacl - l root command shows error.

As I mensioned early you need vi the files under /var/adm/sw/security, to put your host name (get from command "hostname") in the files. example is like this:
$hostanme
test1
# cat _ACL
# default_realm=test1
any_other:r----
# cat _OWNER
# default_realm=test1
num_entries=2
user:root:0
group:sys:0
# cat _PROD_DFLT_ACL
# default_realm=test1
user_obj:rwict
any_other:r----
# cat _SOC_DFLT_ACL
# default_realm=test1
user_obj:rwict
any_other:r----

After all these 4 files updated, then stop and start swagentd.

Your software agent is not configured correctly from your log file.
Jestin John Chacko
Regular Advisor

Re: swacl - l root command shows error.

Dear i had tried for the above solutin but it didnt worked.so can you suggest more solutions
Aneesh Mohan
Honored Contributor

Re: swacl - l root command shows error.


Most likely the problem with the hostname information .

>>More information may be found in the daemon logfile on this
target (default location is hostname:/var/adm/sw/swagentd.log).

Please post tail /var/adm/sw/swagentd.log o/p


Aneesh
John Guster
Trusted Contributor

Re: swacl - l root command shows error.

Can you post the content of these 4 files:
_ACL, _OWNER, _PROD_DFLT_ACL, _SOC_DFLT_ACL?
and post uname -a output.