Guest_imported
New member
- Jan 1, 1970
- 0
I have the following script
# ftps a file to the datawarehouse
# written by : George Smith
# November 2000
{
ipaddress=${1:?Missing_ipaddress}
filename=${2:?Missing_filename}
ftp -nv $ipaddress <<-EOF
user user password
cd /data_ld
put $filename
quit
EOF
}
ftp.sh: END
if I invoke it like this > ftp.sh 161.218.nnn.nn test
it works fine
if I invoke it like this
ftp.sh 161.218.nnn.nn /data05/app/pwmscripts/test
i get the following error
550 /data05/app/pwmscripts/test: Access is denied.
221
by specifying the full path I am somehow getting a security error - any ideas
# ftps a file to the datawarehouse
# written by : George Smith
# November 2000
{
ipaddress=${1:?Missing_ipaddress}
filename=${2:?Missing_filename}
ftp -nv $ipaddress <<-EOF
user user password
cd /data_ld
put $filename
quit
EOF
}
ftp.sh: END
if I invoke it like this > ftp.sh 161.218.nnn.nn test
it works fine
if I invoke it like this
ftp.sh 161.218.nnn.nn /data05/app/pwmscripts/test
i get the following error
550 /data05/app/pwmscripts/test: Access is denied.
221
by specifying the full path I am somehow getting a security error - any ideas