In my script, I am creating a file ----> then writting one line (i.e. Timestamp) ----> then FTP'ing. The same script can be executed by many other users.
While other users executing this script, they couldn't Over write this one line (i.e. Timestamp)
My expectation
So I wanted to create a file with full permission(_rwxrwxrwx). Not by chmod.
Code
dt=`date +%m_%d_%y`
Tablename=$1
Filename=$Tablename"_"$dt.dmp
FlgFile=$Tablename.flg
echo $Filename > $FlgFile
chmod 777 $FlgFile
Error
When other user executing this script they are getting an error chmod: changing permissions of .FlgFile. "Operation not permitted"
Thanks in advance
sbmk