Paul Eggert <eggert@HIDDEN>
to control <at> debbugs.gnu.org.
Full text available.
Received: (at submit) by debbugs.gnu.org; 24 Sep 2025 14:09:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 24 10:09:13 2025
Received: from localhost ([127.0.0.1]:49392 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1v1QBE-0001sL-FA
for submit <at> debbugs.gnu.org; Wed, 24 Sep 2025 10:09:13 -0400
Received: from lists.gnu.org ([2001:470:142::17]:41578)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <gazelle@HIDDEN>)
id 1v1QB9-0001qm-Ft
for submit <at> debbugs.gnu.org; Wed, 24 Sep 2025 10:09:08 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <gazelle@HIDDEN>)
id 1v1QAv-0001Ej-5t
for bug-coreutils@HIDDEN; Wed, 24 Sep 2025 10:08:54 -0400
Received: from out01.mta.xmission.com ([166.70.13.231])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <gazelle@HIDDEN>)
id 1v1QAr-00015i-Ng
for bug-coreutils@HIDDEN; Wed, 24 Sep 2025 10:08:52 -0400
Received: from mx04.mta.xmission.com ([166.70.13.214]:58386)
by out01.mta.xmission.com with esmtps (TLS1.3) tls
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93)
(envelope-from <gazelle@HIDDEN>) id 1v1QAf-00CRV0-2O
for bug-coreutils@HIDDEN; Wed, 24 Sep 2025 08:08:37 -0600
Received: from shell.xmission.com ([166.70.8.4]:47430)
by mx04.mta.xmission.com with esmtps (TLS1.3) tls
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93)
(envelope-from <gazelle@HIDDEN>)
id 1v1QAe-00H2Km-DO; Wed, 24 Sep 2025 08:08:36 -0600
Received: from gazelle by shell.xmission.com with local (Exim 4.97)
(envelope-from <gazelle@HIDDEN>) id 1v1QAe-000000013co-0ozH;
Wed, 24 Sep 2025 08:08:36 -0600
To: bug-coreutils@HIDDEN
X-GNUMailList: Yes
Message-Id: <E1v1QAe-000000013co-0ozH@HIDDEN>
From: Stan Marsh <gazelle@HIDDEN>
Date: Wed, 24 Sep 2025 08:08:36 -0600
X-XM-SPF: eid=1v1QAe-00H2Km-DO; ; ;
mid=<E1v1QAe-000000013co-0ozH@HIDDEN>; ; ;
hst=mx04.mta.xmission.com; ; ; ip=166.70.8.4; ; ; frm=gazelle@HIDDEN; ; ;
spf=softfail
X-SA-Exim-Connect-IP: 166.70.13.214
X-SA-Exim-Rcpt-To: bug-coreutils@HIDDEN
X-SA-Exim-Mail-From: gazelle@HIDDEN
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on sa03.xmission.com
X-Spam-Level: **
X-Spam-Status: No, score=2.5 required=8.0 tests=ALL_TRUSTED,BAYES_50,
DCC_CHECK_NEGATIVE,XMSubLong,XM_B_AI_SPAM_COMBINATION,XM_B_SpammyWords,
XM_SPF_SoftFail autolearn=disabled version=3.4.2
X-Spam-Virus: No
X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP
* 0.1 BAYES_50 BODY: Bayes spam probability is 40 to 60%
* [score: 0.4111] * 0.7 XMSubLong Long Subject
* -0.0 DCC_CHECK_NEGATIVE Not listed in DCC
* [sa03 1397; IP=ok Body=1 Fuz1=1] [Fuz2=1]
* 2.5 XM_SPF_SoftFail SPF-SoftFail
* 0.2 XM_B_SpammyWords One or more commonly used spammy words
* 0.0 XM_B_AI_SPAM_COMBINATION Email matches multiple AI-related
* patterns
X-Spam-DCC: XMission; sa03 1397; IP=ok Body=1 Fuz1=1 Fuz2=1
X-Spam-Combo: **;bug-coreutils@HIDDEN
X-Spam-Relay-Country:
X-Spam-Timing: total 433 ms - load_scoreonly_sql: 0.03 (0.0%),
signal_user_changed: 3.3 (0.8%), b_tie_ro: 2.2 (0.5%), parse: 0.82
(0.2%), extract_message_metadata: 4.2 (1.0%), get_uri_detail_list:
1.43 (0.3%), tests_pri_-2000: 3.6 (0.8%), tests_pri_-1000: 2.4 (0.6%),
tests_pri_-950: 1.21 (0.3%), tests_pri_-900: 0.96 (0.2%),
tests_pri_-90: 48 (11.0%), check_bayes: 46 (10.6%), b_tokenize: 7
(1.6%), b_tok_get_all: 6 (1.4%), b_comp_prob: 2.6 (0.6%),
b_tok_touch_all: 27 (6.3%), b_finish: 0.69 (0.2%), tests_pri_0: 350
(80.7%), check_dkim_signature: 0.49 (0.1%), check_dkim_adsp: 2.4
(0.6%), poll_dns_idle: 0.71 (0.2%), tests_pri_10: 2.5 (0.6%),
tests_pri_500: 8 (1.9%), rewrite_mail: 0.00 (0.0%)
Subject: bug#79488: [RFE] Enhancement idea : Better Handling of File
Permission with CHMOD Command
X-SA-Exim-Version: 4.2.1 (built Sat, 08 Feb 2020 21:53:50 +0000)
X-SA-Exim-Scanned: Yes (on out01.mta.xmission.com)
Received-SPF: pass client-ip=166.70.13.231; envelope-from=gazelle@HIDDEN;
helo=out01.mta.xmission.com
X-Spam_score_int: -25
X-Spam_score: -2.6
X-Spam_bar: --
X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7,
RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,
RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: /dev/null@HIDDEN
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)
>> Example (if possible):
>> --------------------------
>> $ chmod 777 -t 30 myfile.txt
>> # Grants full access to "myfile.txt" for 30 minutes
>> # After 30 minutes, permissions revert to their previous state
>$ chmod-t() { local m=$(stat -c %a "$2"); chmod "$1" "$2"; sleep ${3}m; chmod $m "$2"; }
>$ chmod-t 777 myfile.txt 30
Except that, of course, no one would ever do it like that.
The whole point is that you want the command to return immediately,
but have a background process/thread running to chmod it back.
Which means two things:
1) It probably has to be done at the C level, not the shell level,
in order to have an aesthetically pleasing implementation. Yes, I
know you can use "&" at the end of the command line to
"background" it, but that is ugly (for a variety of reasons).
2) It'll (obviously) never get done in mainline coreutils "chmod",
but there's nothing stopping OP from doing his own version to do it.
Note also: Although the idea seems odd, and most people's intuitive
reaction is/was "WTF?", I actually get where OP is coming from and
wish that there was some more direct way to accomplish this. But Unix
being Unix, there just isn't. I would imagine that OP (or an
associate) got bitten by this once and therefore wishes there were
some built-in way to avert it in future.
The problem is that unless it was builtin to the "chmod" command,
people won't use it - that's the "human factor" that has been ignore
so far in the responses.
P.S. Oh, and there is no bug here. This thread belongs in "coreutils"
(not "bug-coreutils").
=================================================================================
Please do not send me replies to my posts on the list.
I always read the replies via the web archive, so CC'ing to me is unnecessary.
When responding to my posts, please try to refrain from giving bureaucratic answers.
If you have nothing useful to say, then just click Next and go on.
bug-coreutils@HIDDEN:bug#79488; Package coreutils.
Full text available.
Received: (at submit) by debbugs.gnu.org; 24 Sep 2025 07:16:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 24 03:16:16 2025
Received: from localhost ([127.0.0.1]:45962 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1v1Jjb-0007fI-RN
for submit <at> debbugs.gnu.org; Wed, 24 Sep 2025 03:16:16 -0400
Received: from lists.gnu.org ([2001:470:142::17]:57150)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <whitebox@HIDDEN>)
id 1v1JjW-0007ew-TB
for submit <at> debbugs.gnu.org; Wed, 24 Sep 2025 03:16:11 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <whitebox@HIDDEN>)
id 1v1JjQ-00042U-G5
for bug-coreutils@HIDDEN; Wed, 24 Sep 2025 03:16:04 -0400
Received: from mail-out.m-online.net ([212.18.0.9])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <whitebox@HIDDEN>)
id 1v1JjJ-00039A-F8
for bug-coreutils@HIDDEN; Wed, 24 Sep 2025 03:16:03 -0400
Received: from frontend01.mail.m-online.net (unknown [192.168.8.182])
by mail-out.m-online.net (Postfix) with ESMTP id 4cWp673h7Xz1r5hQ;
Wed, 24 Sep 2025 09:15:43 +0200 (CEST)
Received: from localhost (dynscan1.mnet-online.de [192.168.6.68])
by mail.m-online.net (Postfix) with ESMTP id 4cWp6717d7z1qqlW;
Wed, 24 Sep 2025 09:15:43 +0200 (CEST)
X-Virus-Scanned: amavis at mnet-online.de
Received: from mail.mnet-online.de ([192.168.8.182])
by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavis, port 10024)
with ESMTP id WJqqimHCCUk6; Wed, 24 Sep 2025 09:15:34 +0200 (CEST)
X-Auth-Info: baygazk8pV+qwGige2otoXODVD7v76PJShI7VJQroqM3D7sfCUNjGdvE7UCvKU1z
Received: from igel.home (aftr-82-135-83-191.dynamic.mnet-online.de
[82.135.83.191])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
(No client certificate requested)
by mail.mnet-online.de (Postfix) with ESMTPSA;
Wed, 24 Sep 2025 09:15:34 +0200 (CEST)
Received: by igel.home (Postfix, from userid 1000)
id 82C122C1A55; Wed, 24 Sep 2025 09:15:34 +0200 (CEST)
From: Andreas Schwab <schwab@HIDDEN>
To: "Mahish Sivan S (Nokia)" via GNU coreutils Bug Reports
<bug-coreutils@HIDDEN>
Subject: Re: bug#79488: [RFE] Enhancement idea : Better Handling of File
Permission with CHMOD Command
In-Reply-To: <DB9PR07MB9954461714F8468936B98E3DA012A@HIDDEN>
(Mahish Sivan S.'s message of "Mon, 22 Sep 2025 05:55:36 +0000")
References: <DB9PR07MB9954461714F8468936B98E3DA012A@HIDDEN>
Date: Wed, 24 Sep 2025 09:15:34 +0200
Message-ID: <87tt0s8go9.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=212.18.0.9; envelope-from=whitebox@HIDDEN;
helo=mail-out.m-online.net
X-Spam_score_int: -25
X-Spam_score: -2.6
X-Spam_bar: --
X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9,
HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_LOW=-0.7,
RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,
RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,
SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
Cc: "Mahish Sivan S \(Nokia\)" <mahish_sivan.s@HIDDEN>,
79488 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)
On Sep 22 2025, "Mahish Sivan S (Nokia)" via GNU coreutils Bug Reports wrote:
> Example (if possible):
> --------------------------
> $ chmod 777 -t 30 myfile.txt
> # Grants full access to "myfile.txt" for 30 minutes
> # After 30 minutes, permissions revert to their previous state
$ chmod-t() { local m=$(stat -c %a "$2"); chmod "$1" "$2"; sleep ${3}m; chmod $m "$2"; }
$ chmod-t 777 myfile.txt 30
--
Andreas Schwab, schwab@HIDDEN
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
bug-coreutils@HIDDEN:bug#79488; Package coreutils.
Full text available.
Received: (at 79488) by debbugs.gnu.org; 24 Sep 2025 07:15:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 24 03:15:52 2025
Received: from localhost ([127.0.0.1]:45957 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1v1JjD-0007dz-LS
for submit <at> debbugs.gnu.org; Wed, 24 Sep 2025 03:15:52 -0400
Received: from mail-out.m-online.net ([212.18.0.9]:33590)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <whitebox@HIDDEN>)
id 1v1Jj8-0007dj-9x
for 79488 <at> debbugs.gnu.org; Wed, 24 Sep 2025 03:15:48 -0400
Received: from frontend01.mail.m-online.net (unknown [192.168.8.182])
by mail-out.m-online.net (Postfix) with ESMTP id 4cWp673h7Xz1r5hQ;
Wed, 24 Sep 2025 09:15:43 +0200 (CEST)
Received: from localhost (dynscan1.mnet-online.de [192.168.6.68])
by mail.m-online.net (Postfix) with ESMTP id 4cWp6717d7z1qqlW;
Wed, 24 Sep 2025 09:15:43 +0200 (CEST)
X-Virus-Scanned: amavis at mnet-online.de
Received: from mail.mnet-online.de ([192.168.8.182])
by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavis, port 10024)
with ESMTP id WJqqimHCCUk6; Wed, 24 Sep 2025 09:15:34 +0200 (CEST)
X-Auth-Info: baygazk8pV+qwGige2otoXODVD7v76PJShI7VJQroqM3D7sfCUNjGdvE7UCvKU1z
Received: from igel.home (aftr-82-135-83-191.dynamic.mnet-online.de
[82.135.83.191])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
(No client certificate requested)
by mail.mnet-online.de (Postfix) with ESMTPSA;
Wed, 24 Sep 2025 09:15:34 +0200 (CEST)
Received: by igel.home (Postfix, from userid 1000)
id 82C122C1A55; Wed, 24 Sep 2025 09:15:34 +0200 (CEST)
From: Andreas Schwab <schwab@HIDDEN>
To: "Mahish Sivan S (Nokia)" via GNU coreutils Bug Reports
<bug-coreutils@HIDDEN>
Subject: Re: bug#79488: [RFE] Enhancement idea : Better Handling of File
Permission with CHMOD Command
In-Reply-To: <DB9PR07MB9954461714F8468936B98E3DA012A@HIDDEN>
(Mahish Sivan S.'s message of "Mon, 22 Sep 2025 05:55:36 +0000")
References: <DB9PR07MB9954461714F8468936B98E3DA012A@HIDDEN>
Date: Wed, 24 Sep 2025 09:15:34 +0200
Message-ID: <87tt0s8go9.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 79488
Cc: "Mahish Sivan S \(Nokia\)" <mahish_sivan.s@HIDDEN>,
79488 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)
On Sep 22 2025, "Mahish Sivan S (Nokia)" via GNU coreutils Bug Reports wrote:
> Example (if possible):
> --------------------------
> $ chmod 777 -t 30 myfile.txt
> # Grants full access to "myfile.txt" for 30 minutes
> # After 30 minutes, permissions revert to their previous state
$ chmod-t() { local m=$(stat -c %a "$2"); chmod "$1" "$2"; sleep ${3}m; chmod $m "$2"; }
$ chmod-t 777 myfile.txt 30
--
Andreas Schwab, schwab@HIDDEN
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
bug-coreutils@HIDDEN:bug#79488; Package coreutils.
Full text available.Received: (at 79488) by debbugs.gnu.org; 24 Sep 2025 00:19:12 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Sep 23 20:19:12 2025 Received: from localhost ([127.0.0.1]:44173 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1v1DE0-0004YX-5r for submit <at> debbugs.gnu.org; Tue, 23 Sep 2025 20:19:12 -0400 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]:61658) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <collin.funk1@HIDDEN>) id 1v1DDw-0004YF-Bi for 79488 <at> debbugs.gnu.org; Tue, 23 Sep 2025 20:19:09 -0400 Received: by mail-pj1-x1032.google.com with SMTP id 98e67ed59e1d1-330a4d4359bso3871666a91.2 for <79488 <at> debbugs.gnu.org>; Tue, 23 Sep 2025 17:19:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1758673142; x=1759277942; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=x7MfsUng2Tkug+bMu2Or0no4wUoK8LhhjdeWCyaBAIA=; b=a7aOz+OqtdX98lughijrF57wVZxDaV2XfSAgVJ8aQboSnIB79JQ0M+VD/4+lCsLQ41 Rfb4QWmpVPneJRhyspCwSmjIOMr/Sfcl3N8DmKCnoO1X8dR3sCCALok/miUBMO4exHxQ U3+YirlJAzJSdFtiHrIcLCxMhE8aeKwL25k+RBXs4K1JzL4wAIyijxtgPQTZCBNI5gGs Rb/dq2Y+2n7M4qyFQ7Xy5sPo1oMtStAFs/PXwPfhvZYT+La5opHTt+f5ZDl1PH+dHKz+ lkaDbCFW8VWSR6MVLdjH+ibX+YTtrLcrWNVu79XU3fOOF5MkdC+bTRChuOrKTrNSkerX mlVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758673142; x=1759277942; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=x7MfsUng2Tkug+bMu2Or0no4wUoK8LhhjdeWCyaBAIA=; b=V2w4w/aKUhqb/p+HhIzPuTO8tUSx1LLnM6CSNgK8OrjgtDF6zVCk/2Wi9DqkX7CNed /1Txd0J+uVVq4NNBxZ26f4zUrel8jAmesHi+APHtpQVmL8nB67DeOTDY/ppiQ1CwrDk3 hgvx13FqJfANL6G9JLnGUtkANrN+f/tp+5M94nmtQPyq0RpMOmYnBoEIw62fSejGTh6+ xLeGwabO4poHKq7hQsMEYusxHXolf4PFwvQKvFaqXPjKerI7u2sABAxiogcgs//w3e7+ 8VAxbzHsFim/El4QYfE7dVH++3dfz/1JoNqU10n2tHq/USgmj3P7sgE8eb/coKqhqu1j jZYw== X-Forwarded-Encrypted: i=1; AJvYcCUD6iyojKJwfwl4yzk94XzrSi51cHEOwiVPmai+0V7gZy2sVcgeElYytax+mUE5ALOAfNFP3A==@debbugs.gnu.org X-Gm-Message-State: AOJu0YzS8SxNahX26sG4wnTh99G9N0Yu2j4/zcYNPIwvoK6bCbA+1Aij pZqq9fIljxzGwPxnX1YfWXMVHoWlzUKIWXh5lppNgFSMW+5TUg7YsJcAhiCvdg== X-Gm-Gg: ASbGnctSyi2fR5qzu4m56N3txVc875gqC6yTAV4sOQduuFxPYBSyAnDEQObDqJlHL7O 5I+3iSXjqqwH2cFNOPX/pUQ8rpiu91z4Wf6Pyo1epWf7GzxVhqanWsSqrsgiWYEYavtQZt5Ra6Z ptTgBR/9A1R+VUwNPdrPR+WDQkKB686LimmOOUviAMr8vKeRFKWDTeDDQ54XdAaE0AMlIMIcv6p i2kwrGI0XaS+AYzN/UJCO6EdYcf+PSvrOMcR+cAtqWHym//g0OfCAFpWXb7DoMTLlvtCRFbhAVK Ge4N5PbtsX1tVyTMNWewsZ7OwK3thAwEzmgn2eDohT8n6uZ9jLJMmwXMDd3s1+jGlZB4ul1OmVr k6M4d X-Google-Smtp-Source: AGHT+IG0hUa3PbzG8h5EA0iQZwO/dcdTXjw5hSamCtUnU1zcRCHh8Fjag9qf6bk11zm+hMYyLBk+cA== X-Received: by 2002:a17:90b:4b8b:b0:32e:e18a:3691 with SMTP id 98e67ed59e1d1-332a9702d89mr5617836a91.35.1758673141682; Tue, 23 Sep 2025 17:19:01 -0700 (PDT) Received: from fedora ([2601:646:8081:3770::d6b5]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3341be36bdesm351474a91.24.2025.09.23.17.19.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Sep 2025 17:19:01 -0700 (PDT) From: Collin Funk <collin.funk1@HIDDEN> To: =?utf-8?Q?P=C3=A1draig?= Brady <P@HIDDEN> Subject: Re: bug#79488: [RFE] Enhancement idea : Better Handling of File Permission with CHMOD Command In-Reply-To: <195814d3-672d-4fd4-875a-16c1d1865b6c@HIDDEN> References: <DB9PR07MB9954461714F8468936B98E3DA012A@HIDDEN> <195814d3-672d-4fd4-875a-16c1d1865b6c@HIDDEN> Date: Tue, 23 Sep 2025 17:19:00 -0700 Message-ID: <87bjn0k8i3.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 79488 Cc: "Mahish Sivan S \(Nokia\)" <mahish_sivan.s@HIDDEN>, 79488 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.7 (/) P=C3=A1draig Brady <P@HIDDEN> writes: >> Rationale: >> ------------ >> This feature would be useful in scenarios where temporary access needs t= o be granted, such as: >> - Allowing a colleague or process to access a file for a short duration >> - Enhancing security by automatically revoking access after the required= time window >> - Reducing the risk of leaving sensitive files over-exposed due to forgo= tten manual permission changes >> Environment: >> ---------------- >> - OS/Distribution: Ubuntu 22.04 >> - Coreutils version: cmod (GNU coreutils) 9.1 >> Thank you for maintaining coreutils and considering this suggestion. > > I'm not sure this is a good idea (what about reboots). > In any case it would be best achieved with a tool/script > driving the existing functions/utilities rather than > with the utilities themselves. I agree that isn't really the job of chmod. I think the OP might be able to write something to accomplish their goal using the 'at' command [1]. That program will allow you to queue commands to run at a certain time, such as 'chmod'. Collin [1] https://pubs.opengroup.org/onlinepubs/9799919799/utilities/at.html
bug-coreutils@HIDDEN:bug#79488; Package coreutils.
Full text available.Paul Eggert <eggert@HIDDEN>
to control <at> debbugs.gnu.org.
Full text available.Received: (at 79488) by debbugs.gnu.org; 22 Sep 2025 17:09:24 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 22 13:09:24 2025 Received: from localhost ([127.0.0.1]:35471 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1v0k2V-0003Z0-K9 for submit <at> debbugs.gnu.org; Mon, 22 Sep 2025 13:09:24 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:45490) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <pixelbeat@HIDDEN>) id 1v0k2S-0003Yl-PO for 79488 <at> debbugs.gnu.org; Mon, 22 Sep 2025 13:09:21 -0400 Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-3f44000626bso1447365f8f.3 for <79488 <at> debbugs.gnu.org>; Mon, 22 Sep 2025 10:09:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1758560954; x=1759165754; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=k6PlDerdGM5PbbkL37UlVjcyxJh34CXwWNISf1zmZZU=; b=Z4dzpK/5iHpR98mgIzwzKOahck2Sbb5TO5kHdNCaRupaIJQrtXW3rWUJdg+qdG215H sUaV4iF9DHkqz6v1hvD3SDaAtBkanT6NMTeQcRojnKtyqUGTAzo2craeX10aa+Kn0833 Ui9sp1t8G+qNPFN0ghQB4+5do+kzY9zCVIRm8iAguHTIRTyxHIc4cLUz3BgC9/KHB69R q6YqKB4xlxuQEa5xzO3hd/pEqzBciVWziVH32hHN4D1ufjwqjDPLaeocUgnBvbvEdU87 eikZmEIojr20YZZ6QR8yOMG8746WHbcbDgEY5yrCzFB+xHotRa3igGpv5emprE4fOqyC ddeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758560954; x=1759165754; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=k6PlDerdGM5PbbkL37UlVjcyxJh34CXwWNISf1zmZZU=; b=cQb+TS5fERyiFgn9AnB0eU57lWmKQ0RgDg95V2Gbka0Bvdso72KXJB8611K12VhDxN S11+y82To4MJmc65DVXXLn2GuGSy4bbarD8NFRSmjmeqWutn2tnnifRMUaJR+QFB5K8k s69LZMx2Ix9/8gDcsq9U7+xOy5S88/S6pTj3BA+y7cOD78PPhxlzpUQuupzEYw2qn10l PZUbdIXHK116I93ul1IIfhA3Iyu0Lm+yqwNR4QSfggKsMYgimYM6R/KFNvdnBS94Yw4r x3Ur/FtzfCWgx3mcgGSmNX6DTEMT94/2rfcbbSqQTz1FQfZJNtrjktLvlQ69gKqhmyAU JPEw== X-Forwarded-Encrypted: i=1; AJvYcCXMrm4ZK0frMgGq6xLyTSEJwiP7WLgKvCloScKiLEM/foK7krq2NBjKm8fQqS2gosi9mM+QDw==@debbugs.gnu.org X-Gm-Message-State: AOJu0YztWXTi0sjjLHE6o90gbQcnLQwD7rixlRAr1AsL7GVkl25x1uHj miNLzYP47I0CNcEYLDenzjqGmqQ7p44Id1H82HxjadU9mBzx4RNU1hKF X-Gm-Gg: ASbGncte5jRKc6WP41FtVX74CZpLQlFSiMHnBtmx6wYJDkcr8lhq0aduT9bc16hzZYi C+P4Ktj8BgxftgpeOp7CH4OZxMstQHgDn+NiDZ3uXO0nLUhF5ypXcCBASZPxaQwE6Z4/ak/nDIe tfW+HUnFeoRwy1IX/6rIENjuK5A2XINviZUr1EjZ6jg/magHU1Izt3AMDmYM0PT70/DeVWMh3Jf 8UEoHvsZi6hpdcoYc5DR7sYiSEm0C/pqkDNyFQ9TOQ/r+k2Sa0BABtYEubaU86qG08GPCovkRzN puD8qc1kWnMvYGJJWN34ruVOadc8lB2dJ1zJopfOe+8pTqt70OPmudes+dHMG8CEWAaMXbIkd6z vmS9Z2WurCS3v0yNncJ8SIkPrYsL6I/xwCvvtGe18627WeMlnPff0WOMj4clcPU5JzySBjKRL9o GM/w== X-Google-Smtp-Source: AGHT+IFMnb+2dNV4Q078XzYM8cZCdIF0VHwwzGdfi1zOowEwRJyBbBvUvsGweNNL6+fmwPntoYMwbQ== X-Received: by 2002:a5d:5889:0:b0:3ff:17ac:a34c with SMTP id ffacd0b85a97d-3ff17aca9ddmr3409773f8f.59.1758560953859; Mon, 22 Sep 2025 10:09:13 -0700 (PDT) Received: from [192.168.1.31] (86-44-211-146-dynamic.agg2.lod.rsl-rtd.eircom.net. [86.44.211.146]) by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-3ee074106f4sm20418731f8f.25.2025.09.22.10.09.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 Sep 2025 10:09:13 -0700 (PDT) Message-ID: <195814d3-672d-4fd4-875a-16c1d1865b6c@HIDDEN> Date: Mon, 22 Sep 2025 18:09:11 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Beta Subject: Re: bug#79488: [RFE] Enhancement idea : Better Handling of File Permission with CHMOD Command To: "Mahish Sivan S (Nokia)" <mahish_sivan.s@HIDDEN>, 79488 <at> debbugs.gnu.org References: <DB9PR07MB9954461714F8468936B98E3DA012A@HIDDEN> Content-Language: en-US From: =?UTF-8?Q?P=C3=A1draig_Brady?= <P@HIDDEN> In-Reply-To: <DB9PR07MB9954461714F8468936B98E3DA012A@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 79488 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On 22/09/2025 06:55, Mahish Sivan S (Nokia) via GNU coreutils Bug Reports wrote: > Hello coreutils team, > > I would like to suggest an improvement to the "CHMOD" utility in GNU coreutils. > > Current behaviour: > ----------------------- > The chmod command allows us to change file permissions. However, in the current implementation, it does not support granting permissions for a specific time period. > > Suggestion for improvement: > ----------------------------------- > Introduce a new time flag (for example, `-t`) that accepts a duration in minutes. With this option, users could grant permissions to a file for a specific time period instead of permanently. Once the specified time expires, the file's permissions would automatically revert to their default state. > > Example (if possible): > -------------------------- > $ chmod 777 -t 30 myfile.txt > # Grants full access to "myfile.txt" for 30 minutes > # After 30 minutes, permissions revert to their previous state > > Ex : > > Current: > $ls -al > -r--r--r-- 1 user user 1.1G Sep 18 10:20 file.iso > $ chmod 777 file.iso > -rwxrwxrwx 1 user user 1.1G Sep 18 10:20 file.iso > > Proposed with `-t`: > $ chmod 777 -t 15 file.iso > -rwxrwxrwx 1 user user 1.2G Sep 18 10:20 file.iso > After 15 min > -r--r--r-- 1 user user 1.2G Sep 18 10:20 file.iso > > Rationale: > ------------ > This feature would be useful in scenarios where temporary access needs to be granted, such as: > - Allowing a colleague or process to access a file for a short duration > - Enhancing security by automatically revoking access after the required time window > - Reducing the risk of leaving sensitive files over-exposed due to forgotten manual permission changes > > Environment: > ---------------- > - OS/Distribution: Ubuntu 22.04 > - Coreutils version: cmod (GNU coreutils) 9.1 > > Thank you for maintaining coreutils and considering this suggestion. I'm not sure this is a good idea (what about reboots). In any case it would be best achieved with a tool/script driving the existing functions/utilities rather than with the utilities themselves. thanks, Padraig
bug-coreutils@HIDDEN:bug#79488; Package coreutils.
Full text available.
Received: (at submit) by debbugs.gnu.org; 22 Sep 2025 06:59:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 22 02:59:20 2025
Received: from localhost ([127.0.0.1]:60562 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1v0aW7-0006RE-5b
for submit <at> debbugs.gnu.org; Mon, 22 Sep 2025 02:59:20 -0400
Received: from lists.gnu.org ([2001:470:142::17]:59062)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <mahish_sivan.s@HIDDEN>)
id 1v0Zbb-0002qQ-O8
for submit <at> debbugs.gnu.org; Mon, 22 Sep 2025 02:00:56 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <mahish_sivan.s@HIDDEN>)
id 1v0ZbV-0005n8-LQ
for bug-coreutils@HIDDEN; Mon, 22 Sep 2025 02:00:50 -0400
Received: from mail-francecentralazlp170130007.outbound.protection.outlook.com
([2a01:111:f403:c20a::7] helo=PA4PR04CU001.outbound.protection.outlook.com)
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <mahish_sivan.s@HIDDEN>)
id 1v0ZbS-0006g1-8C
for bug-coreutils@HIDDEN; Mon, 22 Sep 2025 02:00:48 -0400
ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;
b=rLR4QBP8/udG9fHNJwCKZiY0vaMixHCQXB74JW/j/RD2vbPA1Rsbxf4CFxajh2MQAIKmuDrZdykUXiGXPfJec3fyxtRXVf/EfbJFcSPme9OQt3VyMJaZIyTBjBIOo5fdsX0Y4D7lguGKoGJtAIH686Ei5ZOLCjyaZQIL15W7+uHg4+No0n6s8NCAgd/dMLoEjfjgzDrDTkmzOg+jaWzGQS1kEYtlNz9DyXQA9YfFd2hLjrfAvVSLR3EQgkg4gVMw/KK8s55Lg3FvufkhRd4ruiJrtZtJ+xH2qnITtcPYrPR1hPrxiKsFu5hHEnINPiWNCuCgz53S4CVGSJ7pPmKN4w==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector10001;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
bh=H/Y+M0AzTstNBgI0+1pMiKwUGYku0JWh83pcL0LciqQ=;
b=FXBAMnN6CZbHsY0H/KX8s8oXJ8HD57K5RVU4wMydTKVFLN8HLFXP2vMwXlptrPQaarWNjGfzg20tN0boMko1nUbJZ8sp6rl4eISPOEWTv0cCY33jMD93uxZ4uJK51gN553FMAblPN8fptjKwhiy7Juh54IKFwgpErKzRnKRehZrNld/7rDLRC7aSht63Dw6H1KFKo3rHi+4urGXEjRBqfwhIUpI63SWBNRo0o1nh/5YpxPNVtL6lcIys5E8mfP8hDxOctJjAYdvXSDinsTiEg7NxR2unGd43Advi1sXJrIN0OJAjRZH1sS+kDnLVul/hh4T84dj5ROARFIXoGnWBbA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=nokia.com; dmarc=pass action=none header.from=nokia.com;
dkim=pass header.d=nokia.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.com; s=selector2;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=H/Y+M0AzTstNBgI0+1pMiKwUGYku0JWh83pcL0LciqQ=;
b=PvyR/HZRc0jJh55rHgsOCbE6Xutd+7/xNZyqgxychYmX3zinTjFihWkE1yIFEKUFxhXu3ek5MCxprs4vuVqZ0pGbveL1llHi3M3xZ5ktpf8naQhwP4t0lfB+S8NeEnMyTxzH+hUXz6lTkGgurn0AaMGF1cH9Lypgt0KebRCVuItaXEYSJlKbDQG0vYRoxn3jaZ3dfObHgw1bjxJRM/WglJQFP34MjRlLwWyvQo0iWPXoEt5qVlwf92MeLP8GMcjGg+vrNUhU3jE5N5jPhao81HSfGu++4GR2hZOsSq0wCLz4cNeqYNtNv+IWYyktiiF9Wb2GCcMj/mYtJznORzxGMw==
Received: from DB9PR07MB9954.eurprd07.prod.outlook.com (2603:10a6:10:4cb::18)
by AS4PR07MB8732.eurprd07.prod.outlook.com (2603:10a6:20b:4f3::8)
with Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9137.19; Mon, 22 Sep
2025 05:55:36 +0000
Received: from DB9PR07MB9954.eurprd07.prod.outlook.com
([fe80::2b55:2169:559:22a9]) by DB9PR07MB9954.eurprd07.prod.outlook.com
([fe80::2b55:2169:559:22a9%5]) with mapi id 15.20.9137.018; Mon, 22 Sep 2025
05:55:36 +0000
From: "Mahish Sivan S (Nokia)" <mahish_sivan.s@HIDDEN>
To: "bug-coreutils@HIDDEN" <bug-coreutils@HIDDEN>
Subject: [RFE] Enhancement idea : Better Handling of File Permission with
CHMOD Command
Thread-Topic: [RFE] Enhancement idea : Better Handling of File Permission with
CHMOD Command
Thread-Index: AdwrhEx/imcNbvkMSR+AVmbfv0JD3Q==
Date: Mon, 22 Sep 2025 05:55:36 +0000
Message-ID: <DB9PR07MB9954461714F8468936B98E3DA012A@HIDDEN>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: dkim=none (message not signed)
header.d=none;dmarc=none action=none header.from=nokia.com;
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: DB9PR07MB9954:EE_|AS4PR07MB8732:EE_
x-ms-office365-filtering-correlation-id: 022ffba9-0dd1-4621-981b-08ddf99ca69b
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
ARA:13230040|366016|376014|1800799024|38070700021|8096899003;
x-microsoft-antispam-message-info: =?us-ascii?Q?PZRUDu5xN1dNv9WWmf6dREz75aab/80GnqNzwsEorejALJ7HOhipns/GYaLS?=
=?us-ascii?Q?6iYLFiQhnEYARIsCPTJFZ4gqUQourSBbe+53Ctsohyn+mRN8eiNSuD3kVWYZ?=
=?us-ascii?Q?zXhsN02jOX+rb44QSdPGtRHn1AhhWf685KjMfWIqvlpkTfQioenaDUydONCp?=
=?us-ascii?Q?OErFcgiAcfw6GudYVh2XYS7oKFxMbuIlXE4XZH4ofn77hhVj4ODFG0/p07wC?=
=?us-ascii?Q?myQ974tH0Mg83CDjyY+mEdnsOueW87xIiOcmFjRx4L5Ldj7fEQujitFZNmaX?=
=?us-ascii?Q?mI4t5+iF/B4gEVgCfAgSnfUGszBUyXlPinwe76dqzd3VFzwKx6T3O2ryZyNT?=
=?us-ascii?Q?/ugoJkOVtrVwUmvlOAUBRaG8XtM/o+xjMTMI3mB5nsDVw1XVpgjehIhIrDjX?=
=?us-ascii?Q?6gHBwFTi6t9Jai4K4KrEeloss66MYQYohNrazw2jPXy8TtWPFyZAG/hibuao?=
=?us-ascii?Q?7ohGI8VUvSYPZlMIWpumBTRowZDhuEoZRxRsQezELbPfoXOlQV4Gr00zmgU0?=
=?us-ascii?Q?6wVUJS/xMakJoz5N/bVLUs4/NBKs3xvsjDv9iSnVSvrPuzVQMy7ljN2aNGRx?=
=?us-ascii?Q?LFnHmjOg7U6ENcBpqeF01RpE9NR1p0+yh6w1yBBPnfpMM5HzF8Y0khS+EafO?=
=?us-ascii?Q?MvsfJ5uOzVia5scyQofJTKIAqSaK8uqk/20EySswXQCuIxhaO2DyM2eNApdh?=
=?us-ascii?Q?hNBL8Sf1cgGvekkO8+F1Gt8ubSyoFNPAF7EP7LALGsLHu0VfDWdnqd4lfna2?=
=?us-ascii?Q?7r7f7p8r9viuuaiFupJSGA6E6FspxFQT5rgIJF0kroDe1Djoh3gYJ28OLvUZ?=
=?us-ascii?Q?kmRKFEZOkK332KadXXYOsSjDlPKXkfzj1CpnDspnVCnYPQHF6L6rSqIrdjHc?=
=?us-ascii?Q?7RzWoGEEn8nXWpOpYTEuROTHCspJ/AGk8inNKFm82Vq1a8zS38e9kaClBr6+?=
=?us-ascii?Q?qcmTUrK87CzqkfycaSvt2PD9KGLCNMu7Xgob7hUhetAXXZTdtbxrUghUXaro?=
=?us-ascii?Q?0NgYdIdcJzeg1ps0bSTX0VLk0P6w16BpBGCkW/U9w6yX3YxEZfL+8blrGvDa?=
=?us-ascii?Q?nH0hpDtWNMqiS3W2udsGHt7dWdybwE7PbX+PbrocySyXGB06vZZGr82CU0kV?=
=?us-ascii?Q?FrIBm2xQRheMsPVG6x6Jfr9WFzCFfNzx9W90fs2IzPJIgbtpybwNI1qPw9vo?=
=?us-ascii?Q?eGpzJnzUIizw3vTpnK3VMm1XqPwUliILTNeV/9+5wMgGWcQBtEkZtOflvmCk?=
=?us-ascii?Q?M2vtsmYGMztgE5uWkhRLcyzcVBiy7Rib936OnsYm2MgZrD8csQErj6ka1ND4?=
=?us-ascii?Q?cZ9NyqiQDrjHzRixYIYMwSRGB2wlV9kCvHIb1aA1VSzCFErrKrEZj39X4sqj?=
=?us-ascii?Q?Wmq7SXKr7zdT2s9lw/vQXVn0PL43IyMQ2R3VCICuj9+BpW8ujz6NeKXFS5x6?=
=?us-ascii?Q?9NtKtY6/N+DC2ah4UgyYOTfYsygOZArxP1LL5qck8QDHI4uv96R/vQ=3D=3D?=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
IPV:NLI; SFV:NSPM; H:DB9PR07MB9954.eurprd07.prod.outlook.com; PTR:; CAT:NONE;
SFS:(13230040)(366016)(376014)(1800799024)(38070700021)(8096899003); DIR:OUT;
SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?kK4u5bJ8ujqkvlhNUQxarda2fwiwYTq45a/6e779FYYsRT2cvWU2VSpC3CYI?=
=?us-ascii?Q?ooNvg5ZknV21Lv7eEpdlxKwLTg25jOfK2TM1yR3HL0W8JO9aMMbwkUPtDodH?=
=?us-ascii?Q?X69AIN3g6xVgrSwvOwCUs9JZanNiDGt/RJfRqqbrDJurAG87B4VVaJ1lzUuo?=
=?us-ascii?Q?I/TRINGw+OUmlLveErzR1slG60qOTVCa/ylXn2qfZI1zI3n9BtSZ2uBah98R?=
=?us-ascii?Q?DRCS4Fnv3q7eufEgAR5P/Aw27eOYg+wXU4QG7rYRR//LcBsDS6jvCpP3zzE9?=
=?us-ascii?Q?AsrcH7EmlqUK0Y20BTq9pYGmLNhFMRqCY8c3L12LAkkEnG8uHVXoz8DagSYD?=
=?us-ascii?Q?wCKVqiPEfrrrlNLaadBt3R0RNpa/xIqbL72MF0quSnL5i8bb8JXUXfihUWHH?=
=?us-ascii?Q?IQjWSMcvBeTqyoiwmUnvl/PaCXiMkvE95qG8VVermTJ88OzZh9tKZC3bvAFv?=
=?us-ascii?Q?khzvHnhYOXTJ6S+IGbj+EUfVFwavFmhQhVCaKNaQHPrggII6TkCY+4SuA2fO?=
=?us-ascii?Q?7I15nbTheUh1Wct1G0WmLDDar97rRMhyJnVSVo2eva1+8m/rfmHAUVQ3mc5o?=
=?us-ascii?Q?dw5zMTDOezk24+cEhENwmmLC/SO2LG1eZFXRrbBk3b7bWOGvNzkWytOkb9En?=
=?us-ascii?Q?zpQExfEcud4yq/De+8VtITzdoUdmsdbPQ8mnEk37oYMfqItIpAoEXbAWKNUI?=
=?us-ascii?Q?6/TUmNDXibzOochPrnSZIjxrQyP50YB9tIpRPosN4Yt4poFUATTCQg9MI1C6?=
=?us-ascii?Q?du2FE1AdHB59lZngVOPwtuvWBwy5HkK7nYPIN9xPrynOPSD73UUiqLTqitBF?=
=?us-ascii?Q?vSP/TGP5DmYEpOdeXj+0KLbWCuX1Xy4mts90gEBh0GoBMCvmVxb4i0oI69Z8?=
=?us-ascii?Q?1VSkT7RWYFnKvAcdbez8JTVDq4jvj7xUXbbDyj8h7pCT1EyFEUcc4tgSG03E?=
=?us-ascii?Q?k3VsitkkLdqELegF/d9yqPLVgqV8YeZZyrNs3azPd33AoS6unbu0QcWfej86?=
=?us-ascii?Q?F1vT3SohwdD3LGdbXuG2yPdLzWw4vywmME5IgwWcKER0zGLAgTJNGUJSpdtP?=
=?us-ascii?Q?lTsweXNe07L8ti4iqhKBZdnvrcqFlXENgPHqzPlSaw837Xp01ZsIzI62A5kD?=
=?us-ascii?Q?MnYyp9/g0emovQPfh3dA5p+4sDlsHerpsCenIMLXmuztIWjk+CEdglQ3oKRt?=
=?us-ascii?Q?0vssTmth18hxLsWrWjR5LZ6Ar/SbUPGnN6bkeHMaCIcSG7XTLYmBhVTbGTbJ?=
=?us-ascii?Q?ElmXawoCoN/rHRsdYAB2/BFSteu+p4l8qWj96+8l7YgdEPyb+Ldaywb9SlHF?=
=?us-ascii?Q?uAuVvyfeu2ALDboPT9JRAhZZAt5DexYBxw31g2lP+W8PwIOKnm9+xTnO0s6m?=
=?us-ascii?Q?Gr2EmYKYwloIFjOyrh/fzg83UGDpfrr6iT7PbJhHgXARx2bSBpT+TvItv/7O?=
=?us-ascii?Q?dLZD3pZ5JZe0KczdZ/cVaCgUTM9bmEcC4NNPsskIqaor9AFSrNIcO0wd/p/7?=
=?us-ascii?Q?J2DPi92PVbSsUfKhzwbDGI1Jk5xzsweW8kvz8yQdhMB5tsdNWG6UIXVJ5MA7?=
=?us-ascii?Q?bzof5/htEtC3M5zxqfUl/N1/a64L25wRmCFOkMAG?=
Content-Type: multipart/alternative;
boundary="_000_DB9PR07MB9954461714F8468936B98E3DA012ADB9PR07MB9954eurp_"
MIME-Version: 1.0
X-OriginatorOrg: nokia.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: DB9PR07MB9954.eurprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 022ffba9-0dd1-4621-981b-08ddf99ca69b
X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Sep 2025 05:55:36.1826 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5d471751-9675-428d-917b-70f44f9630b0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: R0yS22WpSNJBidqAt68QHUPHYI6rwbgPRQjCZ6xtqhEKUi9vwfIrLptGXHCAXC9PQjDGWRs3SNmFD0SeMarDdTboXb9yWaeUNuw+ux0GQKc=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR07MB8732
Received-SPF: softfail client-ip=2a01:111:f403:c20a::7;
envelope-from=mahish_sivan.s@HIDDEN;
helo=PA4PR04CU001.outbound.protection.outlook.com
X-Spam_score_int: -24
X-Spam_score: -2.5
X-Spam_bar: --
X-Spam_report: (-2.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.442,
DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001,
SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Mon, 22 Sep 2025 02:59:18 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)
--_000_DB9PR07MB9954461714F8468936B98E3DA012ADB9PR07MB9954eurp_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Hello coreutils team,
I would like to suggest an improvement to the "CHMOD" utility in GNU coreut=
ils.
Current behaviour:
-----------------------
The chmod command allows us to change file permissions. However, in the cur=
rent implementation, it does not support granting permissions for a specifi=
c time period.
Suggestion for improvement:
-----------------------------------
Introduce a new time flag (for example, `-t`) that accepts a duration in mi=
nutes. With this option, users could grant permissions to a file for a spec=
ific time period instead of permanently. Once the specified time expires, t=
he file's permissions would automatically revert to their default state.
Example (if possible):
--------------------------
$ chmod 777 -t 30 myfile.txt
# Grants full access to "myfile.txt" for 30 minutes
# After 30 minutes, permissions revert to their previous state
Ex :
Current:
$ls -al
-r--r--r-- 1 user user 1.1G Sep 18 10:20 file.iso
$ chmod 777 file.iso
-rwxrwxrwx 1 user user 1.1G Sep 18 10:20 file.iso
Proposed with `-t`:
$ chmod 777 -t 15 file.iso
-rwxrwxrwx 1 user user 1.2G Sep 18 10:20 file.iso
After 15 min
-r--r--r-- 1 user user 1.2G Sep 18 10:20 file.iso
Rationale:
------------
This feature would be useful in scenarios where temporary access needs to b=
e granted, such as:
- Allowing a colleague or process to access a file for a short duration
- Enhancing security by automatically revoking access after the required ti=
me window
- Reducing the risk of leaving sensitive files over-exposed due to forgotte=
n manual permission changes
Environment:
----------------
- OS/Distribution: Ubuntu 22.04
- Coreutils version: cmod (GNU coreutils) 9.1
Thank you for maintaining coreutils and considering this suggestion.
Best regards,
S. Mahish Sivan
--_000_DB9PR07MB9954461714F8468936B98E3DA012ADB9PR07MB9954eurp_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Aptos;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Aptos",sans-serif;
mso-ligatures:standardcontextual;
mso-fareast-language:EN-US;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Aptos",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:11.0pt;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-IN" link=3D"#467886" vlink=3D"#96607D" style=3D"word-wrap:=
break-word">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">Hello coreutils team,<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">I would like to suggest an improvement to the "=
CHMOD" utility in GNU coreutils.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">Current behaviour:<o:p></o:p></p>
<p class=3D"MsoNormal">-----------------------<o:p></o:p></p>
<p class=3D"MsoNormal">The chmod command allows us to change file permissio=
ns. However, in the current implementation, it does not support granting pe=
rmissions for a specific time period.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">Suggestion for improvement:<o:p></o:p></p>
<p class=3D"MsoNormal">-----------------------------------<o:p></o:p></p>
<p class=3D"MsoNormal">Introduce a new time flag (for example, `-t`) that a=
ccepts a duration in minutes. With this option, users could grant permissio=
ns to a file for a specific time period instead of permanently. Once the sp=
ecified time expires, the file’s permissions
would automatically revert to their default state.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">Example (if possible):<o:p></o:p></p>
<p class=3D"MsoNormal">--------------------------<o:p></o:p></p>
<p class=3D"MsoNormal">$ chmod 777 -t 30 myfile.txt<o:p></o:p></p>
<p class=3D"MsoNormal"># Grants full access to "myfile.txt" for 3=
0 minutes<o:p></o:p></p>
<p class=3D"MsoNormal"># After 30 minutes, permissions revert to their prev=
ious state<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">Ex :<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">Current:<o:p></o:p></p>
<p class=3D"MsoNormal"> $ls -al <o:p></o:p></p>
<p class=3D"MsoNormal"> -r--r--r-- 1 user user 1.1G Sep 18=
10:20 file.iso<o:p></o:p></p>
<p class=3D"MsoNormal"> $ chmod 777 file.iso<o:p></o:p></p>
<p class=3D"MsoNormal"> -rwxrwxrwx 1 user user 1.1G Sep 18 10:2=
0 file.iso<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">Proposed with `-t`:<o:p></o:p></p>
<p class=3D"MsoNormal"> $ chmod 777 -t 15 file.iso<o:p></o:p></=
p>
<p class=3D"MsoNormal"> -rwxrwxrwx 1 user user 1.2G Sep 18 10:2=
0 file.iso<o:p></o:p></p>
<p class=3D"MsoNormal">After 15 min <o:p></o:p></p>
<p class=3D"MsoNormal"> -r--r--r-- 1 user user 1.2G Sep 18=
10:20 file.iso<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">Rationale:<o:p></o:p></p>
<p class=3D"MsoNormal">------------<o:p></o:p></p>
<p class=3D"MsoNormal">This feature would be useful in scenarios where temp=
orary access needs to be granted, such as:<o:p></o:p></p>
<p class=3D"MsoNormal">- Allowing a colleague or process to access a file f=
or a short duration<o:p></o:p></p>
<p class=3D"MsoNormal">- Enhancing security by automatically revoking acces=
s after the required time window<o:p></o:p></p>
<p class=3D"MsoNormal">- Reducing the risk of leaving sensitive files over-=
exposed due to forgotten manual permission changes<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">Environment:<o:p></o:p></p>
<p class=3D"MsoNormal">----------------<o:p></o:p></p>
<p class=3D"MsoNormal">- OS/Distribution: Ubuntu 22.04<o:p></o:p></p>
<p class=3D"MsoNormal">- Coreutils version: cmod (GNU coreutils) 9.1<o:p></=
o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">Thank you for maintaining coreutils and considering =
this suggestion.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">Best regards,<o:p></o:p></p>
<p class=3D"MsoNormal">S. Mahish Sivan<o:p></o:p></p>
</div>
</body>
</html>
--_000_DB9PR07MB9954461714F8468936B98E3DA012ADB9PR07MB9954eurp_--
"Mahish Sivan S (Nokia)" <mahish_sivan.s@HIDDEN>:bug-coreutils@HIDDEN.
Full text available.bug-coreutils@HIDDEN:bug#79488; Package coreutils.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.