Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Nov 2001 19:07:40 -0500
From:      Jim Conner <jconner@enterit.com>
To:        "Haroon Khan" <haroonca@home.com>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: unix question
Message-ID:  <5.1.0.14.0.20011112190512.02fa2d80@mail.enterit.com>
In-Reply-To: <000801c16beb$d54a7dc0$d9c89d18@mtki1.on.home.com>

next in thread | previous in thread | raw e-mail | index | archive | help
At 18:35 11.12.2001 -0800, Haroon Khan wrote:
>What are two ways you can execute a shell script without
>execute acess permission.


sh script.name is one way
can't think of another way without actually chmod'ing the script first and 
then calling it on the command line.

>Can you execute a shell script if you do not have read access permission


yes, you can.

And if I am answering homework questions, you better double-check my 
answers.  I am giving bogus answers. :)




- Jim

-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
http://www.perlmonks.org/index.pl?node_id=67861&lastnode_id=67861

-----BEGIN PERL GEEK CODE BLOCK-----      ------BEGIN GEEK CODE BLOCK------
Version: 0.01                             Version: 3.12
P++>*@$c?P6?R+++>++++@$M                  GIT/CM/J d++(--) s++:++ a-
 >++++$O!MA->++++E!> PU-->+++BD            C++++(+) UB++++$L++++$S++++$
$C-@D!>++++(-)$S++++@$X?WP+>++++MO!>+++   P++(+)>+++++ L+++(++++)>+++++$ !E*
+PP+++>++++n-CO?PO!o >++++G               W++(+++) N+ o !K w--- PS---(-)@ PE
 >*(!)$A-->++++@$Ee---(-)Ev++uL++>*@$uB+   Y+>+++ PGP t+(+++)>+++@ 5- X++ R@
 >*@$uS+>*@$uH+uo+w-@$m!                   tv+ b? DI-(+++) D+++(++) G(++++)
------END PERL GEEK CODE BLOCK------      ------END GEEK CODE BLOCK------


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.1.0.14.0.20011112190512.02fa2d80>