[Nottingham] Read-only prefix command or command wrapper

James Gibbon jg at jamesgibbon.com
Wed Sep 24 20:52:12 UTC 2008


On Wed, 24 Sep 2008 21:12:43 +0100
Martin <martin at ml1.co.uk> wrote:

> From a question from elsewhere...
> 
> We have such as "nice", "nohup", "sudo", "ssh", "watch", "time", "xargs"
> (and others?,) that can prefix a command...
> 
> Is there a command prefix to enforce read-only for any files opened by a
> following command?
> 

I can only think of

su <user> -c 

.. where <user> doesn't have write permissions for the files in question.

James



More information about the Nottingham mailing list