Hi,
I am writing a shell script for copying file from one user account directory to another.
The code is:
bargi and abc are user's.Code:#!/bin/sh src_path=/home/bargi tgt_path=/home/abc cp ${src_path}/a* ${tgt_path}/
When I run the script it gives me error of permission denied.
I know that since I am logging with bargi account, I can't copy file to abc account directory.
I have following question:
1: Is there a way so that abc allow copying other's user to its account? (may be forcefully applying some techniques to abc account with root access )
2: How can I implement it in shell script ?
Can any body help me regarding this ?
Thanks
Bargi