unix shell [message #97001] |
Wed, 17 October 2001 05:29 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
Ming
Messages: 2 Registered: October 2001
|
Junior Member |
|
|
2 questions:
1.A shell script has owner, group, and others (world) execute permissions
set but only read permissions set for group and others. Can this script
be executed by the owner, why / whynot?
2.Explain what the following does? What is the working directory after
the command executes? DO NOT RUN THE COMMAND.
cd /; tar cf - etc | ( cd /tmp; tar -xf - )
----------------------------------------------------------------------
|
|
|
Re: unix shell [message #97017 is a reply to message #97001] |
Tue, 23 October 2001 11:37 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
Sanjay Bajracharya
Messages: 279 Registered: October 2001 Location: Florida
|
Senior Member |
|
|
1. you mean 155 for the file ?
The owner cannot execute this as it has to read the file for execution, but 'read' is not permitted on the file, although execute is.
2. I did not even try this.
----------------------------------------------------------------------
|
|
|