[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: (OT) exec nonreadable shell scripts



Rick wrote:
> 
> sorry for off-topic, but I've been banging my head trying to set up shell
> scripts that can be executed but not read by a user.
> 
> Basically, for test.sh :
> 
> #!/usr/bin/bash
> echo hullo!
> 
> ***
> [rmr@saturn:~]$ chmod 111 test.sh
> [rmr@saturn:~]$ ./test.sh
> ./test.sh: ./test.sh: Permission denied
> 
Just played with it for a minute and it seems the user bit has to have
read permission but that would keep group and other from reading the
contents. Don't know why read has to be this way.

Eric :-)



Reply to: