Home » Infrastructure » Unix » unix shell
unix shell [message #97001] Wed, 17 October 2001 05:29 Go to next message
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
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.

----------------------------------------------------------------------
Previous Topic: sheduled export backup of all tablespace
Next Topic: Re: steps to install oracle 8.1.7 on solaris 5.7
Goto Forum:
  


Current Time: Fri Apr 19 20:18:03 CDT 2024