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



Well I read https://en.wikipedia.org/wiki/Chmod
If I did
qsh
chmod 775 /home/ROB/JT
this basically gave me the first digit 4(read) + 2(write) +1(execute) = 7
The group I belong to the second digit 4(read) + 2(write) +1(execute) = 7
and *public the third digit 4(read) + 1(execute) = 5

Which can easily be done with the IBM i Command GRTAUT
Either way you end up with
Data --Object Authorities--
User Authority Exist Mgt Alter Ref
*PUBLIC *RX X X X X
-------------Data Authorities-------------
Objopr Read Add Update Delete Execute
X X X

When I ran qsh's chmod 777 /home/ROB/JT
DUMMY can do create files in that directory
and you end up with
Data --Object Authorities--
User Authority Exist Mgt Alter Ref
*PUBLIC *RWX X X X X
-------------Data Authorities-------------
Objopr Read Add Update Delete Execute
X X X X X X

Six of one, half a dozen of another. At least you know that that an
attribute was the wrong thing to be looking for. It was the security
instead.
Then the user DUMMY could not create a new file in that directory


On Tue, Apr 2, 2024 at 2:11 PM Jack Woehr <jack.woehr@xxxxxxxxxxx> wrote:

This sort of thing is an antipattern in our community.

Learn to use Unix permissions and permission commands for stream files in
the IFS.

Only bring OS/400 commands and notions of authorities if there is a
genuine use case ...

An' I tells youse peoples, there be precious few genuine use cases for
that.

________________________________
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> on behalf of Rob
Berendt <robertowenberendt@xxxxxxxxx>
Sent: Tuesday, April 2, 2024 11:56 AM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: Read-only dir & files within?

I do not find any documentation on this. However this testing may answer
that:
MD DIR('/home/ROB/JT')
Directory created.
CHGATR OBJ('/home/ROB/JT') ATR(*READONLY) VALUE(*YES)
Attributes changed for 1 objects. 0 objects not changed.
EDTF STMF('/home/ROB/JT/test.txt')
The EDTF did create the file
DSPF STMF('/home/ROB/JT/test.txt')
The DSPF showed the changes.

There is an attribute called *RSTDRNMUNL you might want to read up on.

On Tue, Apr 2, 2024 at 12:10 PM Justin Taylor <jtaylor.0ab@xxxxxxxxx>
wrote:

If a directory is marked read-only, can you still create & delete files
from that directory?
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l<
https://lists.midrange.com/mailman/listinfo/midrange-l>
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l<
https://archive.midrange.com/midrange-l>.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l<
https://lists.midrange.com/mailman/listinfo/midrange-l>
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l<
https://archive.midrange.com/midrange-l>.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.



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.