shell script

does any body know how to write a shell script private that uses chmod to change the access permissions on a file so that only the owner may read , write, or execute it.

Read the man page on chmod....do this by typing "man chmod"

Somewhere there is the answer......

syntax: chmod nnnn file

Where nnnn will Allow read, write, and execute (search) by owner.

This might help to get you started.

there must be one step solution, but here I'm writing from top of my head:

$ chmod 777 test
$ chmod go= test

Hope, it helps.

free now, check it out...

      man chmod 

You'll get the answer