bug#79488: [RFE] Enhancement idea : Better Handling of File Permission with CHMOD Command
Collin Funk <[email protected]>
| Newsgroups | gmane.comp.gnu.core-utils.bugs |
|---|---|
| Message-ID | <[email protected]> |
Pádraig Brady <[email protected]> writes: >> 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. 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