1835078 Members
2698 Online
110073 Solutions
New Discussion

Re: swacl issue

 
Michael Elleby III_1
Trusted Contributor

swacl issue

I have an account on an HPUX that I have added to the 'root' and 'depot' acls to be able to perform swcopy from a remote host.

The issue is, the files are being written in the target directory and owned by root and not the account that I added to the acl.

How can I force ownership and permissions to the account that I added to the acls?

Thanx.
Knowledge Is Power
3 REPLIES 3
Steve Steel
Honored Contributor

Re: swacl issue

Hi

please confirm if you are copying from a cd.

This method can swinstall/swcopy from a
CD-ROM with ACL''s.

1 You Must Become Root
If the CD-ROM has ACL''s in the catalog dir tree,
ex /catalog/pafiles/_ACL, you can swinstall and swcopy from the CD-ROM if you are user "root".
You cannot be non-root user with root privileges. It won't work.
Be "root" and swinstall/swcopy .


2 Copy Depot To Disk
Use UNIX "cp" to copy the depot to your local or NFS mounted drive.
Example, The depot is located on the CD-ROM
as /CD/TOYS then, you can copy the whole depot to /tmp on your local disk (assuming you have the space and privileges) using the command:

cp -pR /CD/TOYS /tmp/TOYS

The SD locking mechanism will then work properly and you can swinstall
and swcopy to your heart''s content as a non-root user having SD "root"
privileges.

W hat are SD "root" privileges?
Say user "ken" needs host install and depot create privileges. As user "root" the system manager needs to execute the following commands:

swacl -l host -M user:ken:a
swacl -l root -M host:ken:a

Then "ken" can create depots using swcopy and swinstall software on the local host.


steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Michael Elleby III_1
Trusted Contributor

Re: swacl issue

Hello Steve-

Just to confirm, I'm not copying from a CD. I am performing the swcopy from a depot on a remote host.

I do note that the acls on the remote host are different from the acls that the user is trying to copy to. Also, he (the user) is using a different account to perform the task.

I am going to add this user's original account to the host acl and retry.

Mike-
Knowledge Is Power
Michael Elleby III_1
Trusted Contributor

Re: swacl issue

Steve, what I decided to do was to check the status of the depot on the remote server. I noted that the permissions on the depot were the same as what swcopy was creating on the target machine, which leads me to believe that swcopy is functioning normally. I have contacted my customer and indicated that he needs to retry the swcopy operation.

Will advise if there are any other issues. Thanx for your assistance.

Mike Elleby
Knowledge Is Power