× 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.



Mark

CHGAUT doesn't do the same things as chmod - totally different code path for them. E.g., CHGAUT will not work on objects in an NFS share, while chmod will. CHGAUT also has no direct concept of owner or group, the things that chmod sets. The only crossover that I can see is *PUBLIC being the same "other" in chmod - I have verified that using one or the other command results in what you want vis-a-vis *PUBLIC.

Best holiday time to you!

Vern

On 12/17/2010 8:47 AM, Mark S. Waterbury wrote:
Hi, Frank:

You can invoke the "chmod" program directly from an OS/400 command line,
as follows:

CALL PGM(QSHELL/CHMOD) PARM('644' '/your/file/name')

You can call it from within a CL program, as follows:

DCL VAR(&AUTH) TYPE(*CHAR) LEN(4)
DCL VAR(&PATH) TYPE(*CHAR) LEN(255)
DCL VAR(&NULL) TYPE(*CHAR) LEN(1) VALUE(X'00')
...
CHGVAR VAR(&AUTH) VALUE('644' *CAT&NULL)
CHGVAR VAR(&PATH) VALUE(&PATH *TCAT&NULL)
CALL PGM(QSHELL/CHMOD) PARM(&AUTH&PATH)
...

Or, you could use the "native" OS/400 CHGAUT command. Type CHGAUT and
press F4=Prompt.

HTH,

Mark S. Waterbury

> On 12/17/2010 7:55 AM, fbocch2595@xxxxxxx wrote:
We use FTP Manager and it works well and their support is always excellent. They gave me the the chmod 644 cmd but translating that to OS400 seems best.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.