× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Scott,

reffering to my example I can't follow your statement "Anyone with
appropriate ..".

This is my file in /tmp:

                             Work with Authority   
Object . . . . . . . . . . . . :   /tmp/pnctest.csv
Owner  . . . . . . . . . . . . :   NOLL            
*PUBLIC     *RWX         X     X     X     X  
NOLL        *RWX         X     X     X     X   

Directory /tmp is owned by QSYS and *PUBLIC has all authority.

User DUELL (programmer!) tried to rename with
REN OBJ('/tmp/pnctest.csv') NEWOBJ(pnctest.sav) 
and receives error message "CPFA0B1 Requested operation not allowed.  Access
problem."
That's why I assumed that only the owner may rename the file.

The other option, which was also suggested by other group members, is the
use of QSYGETPH & QWTSETP. O.k., if there is no other way I'll have to go
this though one.

Kind regards and many thanks.
Werner Noll
Gesellschaft für Individual-Software mbH
Ludwigstrasse 9
D-63739 Aschaffenburg
Phone: +49-6021-299880
Fax: +49-6021-299882
e-mail: Werner.Noll@xxxxxxxxx
 

-----Ursprüngliche Nachricht-----
Von: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] Im Auftrag von Scott Klement
Gesendet: Dienstag, 2. August 2005 17:58
An: Midrange Systems Technical Discussion
Betreff: Re: Rename streamfile in IFS


> For renaming we decided the API "Qp0lRenameKeep". But this API  (as 
> well as other rename procedures) does not  support "adopted 
> authority". Therefore only the file owner can rename the file.

Anyone with appropriate authority can rename the file -- it doesn't have to
be the file's owner.  Nothing in the IFS supports adopted authority, so if
you really need to adopt, you'll have to use a profile swapping technique.

> Is there a work arround or any other suggestion to solve this problem.
> Many thanks in advance.

In my opinion, the best solution is to set the directory up so that the user
who needs to execute the API has appropriate authority to do so.  If that's
absolutely not an option, then swap to the new profile, make the change, and
swap back.  (You can use adopted authority to provide access to the profile
handles)
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/midrange-l.





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.