Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Life would be so much easier if we could just look at the source code. -- Dave Olson


computers / alt.os.linux / How to set group:owner to all directories created with "mkdir -p" or other command(s)?

SubjectAuthor
o How to set group:owner to all directories created with "mkdir -p" or other commaBengt T

1
How to set group:owner to all directories created with "mkdir -p" or other command(s)?

<64defac5-7a66-45e4-bc6e-7989dc0f957cn@googlegroups.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=3269&group=alt.os.linux#3269

  copy link   Newsgroups: alt.os.linux
X-Forwarded-Encrypted: i=1; AJvYcCVxEPPU0kNXYR17g0SIWiSO+03Ruw/jMmT2m9ztgpxaE2YhutmBOxM32atWMiVHis0doBBCIIC32A6ZlxyzIAtC4UiOnn13ggAKizzZ8j/0tQ==
X-Received: by 2002:a05:622a:11d0:b0:42c:7668:ed8b with SMTP id n16-20020a05622a11d000b0042c7668ed8bmr111997qtk.2.1708091114514;
Fri, 16 Feb 2024 05:45:14 -0800 (PST)
X-Forwarded-Encrypted: i=1; AJvYcCVQuRjoj+v4/YFPuMjtnxUJxYDmd8QS8Rf56K9e5Keqobbg1OW8clpQbcZSoRs8EDqNymIRhYaEzdvKEtBh+jKLdQVJ/jsPDMBEX6HKSWE=
X-Received: by 2002:a4a:e248:0:b0:59f:737b:111b with SMTP id
c8-20020a4ae248000000b0059f737b111bmr71396oot.0.1708091114281; Fri, 16 Feb
2024 05:45:14 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: alt.os.linux
Date: Fri, 16 Feb 2024 05:45:13 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=193.181.35.60; posting-account=rPxKYAkAAACZL9Ia3g3cZHelK-_cv8q3
NNTP-Posting-Host: 193.181.35.60
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <64defac5-7a66-45e4-bc6e-7989dc0f957cn@googlegroups.com>
Subject: How to set group:owner to all directories created with "mkdir -p" or
other command(s)?
From: bengt_tornqvist@hotmail.com (Bengt T)
Injection-Date: Fri, 16 Feb 2024 13:45:14 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1775
 by: Bengt T - Fri, 16 Feb 2024 13:45 UTC

Suppose that tmp_dir_1 and tmp_dir_2 do not exist.

With "mkdir -p tmp_dir_1/tmp_dir_2" the following is created:
├── tmp_dir_1
│   └── tmp_dir_2

The group:owner of both tmp_dir_1 and tmp_dir_2 is set to the group:owner of the user generating the command.

How to set group:owner to others for both tmp_dir_1 and tmp_dir_2?

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor