Operating System - HP-UX
1834208 Members
2777 Online
110066 Solutions
New Discussion

swcopy problem in nonprivileged mode

 
Roberto Martinengo
New Member

swcopy problem in nonprivileged mode

In HP-UX B.11.23 U ia64 using swcopy command with option -x run_as_superuser=false I have a following problem:

ERROR: Internal error. Unexpected failure in file open, lstat,chown, or chmod. Permission denied (13).

This error occurred in function "UTIL_RpcSetClientForLocalServer", source file "r_client.c", line 994. Please give this information to your Hewlett-Packard support contact.

Can you help me?

Thanks
7 REPLIES 7
Tim Nelson
Honored Contributor

Re: swcopy problem in nonprivileged mode

What is the purpose of doing this ? It may help in the responses.

Are you looking to allow non-root users the ability to copy depots into a repository ? If so why ?



Roberto Martinengo
New Member

Re: swcopy problem in nonprivileged mode

We have a segregate network with clearcase. Actually, we can't use the root user for SD commands. I use swpackage with -x run_as_superuser=false and work it, with the patch PHCO_38149, but the command swcopy doesn't work !!
Dennis Handly
Acclaimed Contributor

Re: swcopy problem in nonprivileged mode

We don't use SD commands on files in clearcase, we copy them outside to an NFS mount with root as root.

>but the command swcopy doesn't work

It's probably time to contact the Response Center as the message says.
Roberto Martinengo
New Member

Re: swcopy problem in nonprivileged mode

>We don't use SD commands on files in clearcase, we copy them outside to an NFS mount with root as root.

OK, this is a good idea.
I copied my files outside clearcase, but I don't use root for SD commands.
I tried to change the ACL entries and permission.
I asked to my administrator to change the ACL of my user with this command:
swacl -l host -M user::a

This command work with root, and I cannot use the superuser root.
Roberto Martinengo
New Member

Re: swcopy problem in nonprivileged mode

Sorry the last replay was incomplete:

>We don't use SD commands on files in clearcase, we copy them outside to an NFS mount with root as root.

OK, this is a good idea.
I copied my files outside clearcase, but I don't use root for SD commands.
I tried to change the ACL entries and permission.
I asked to my administrator to change the ACL of my user with this command:
swacl -l host -M user::a

This command work with root, and I cannot use the superuser root.

After this command the command swpackage and swcopy work, but I can not remove files that are produced by these commands.
Only user root is able to remove it.

Can I remove these files using my user?

Regards
Roberto.
Dennis Handly
Acclaimed Contributor

Re: swcopy problem in nonprivileged mode

>but I can not remove files that are produced by these commands. Only user root is able to remove it. Can I remove these files using my user?

You should be able to use swremove for the swcopy directory depot. (Perhaps leaving only a swagent.log that root needs to remove?) For tape depots, you should be able to do a rm.
Roberto Martinengo
New Member

Re: swcopy problem in nonprivileged mode

Yes, yesterday I try to use the swremove command: swremove â x remove_empty_depot_directory=true -x write_remote_files=true -d \* @ .
The option remove_empty_depot_directory=true is necessary in order to remove the swagent.log.
After this command the directory is empty and the simple command rm -rf works.