you're right i see the point of permission. Ok i already change the list.sh and it looks like this
Code:
-rwxr-xr-x 1 root root 598 2011-10-20 08:13 list.sh
and /tmp/ or /temp/
Code:
drwxr-xr-x 2 root root 4096 2011-10-19 13:57 temp
drwxrwxrwt 5 root root 4096 2011-10-20 08:24 tmp
my list.sh
Code:
TEMPFILE="/tmp/list.txt"
CMDFILE="/tmp/changepw.cmd"
if there's some problem with permissions i change in list.sh the part of:
Code:
chmod 0600 ${TEMPFILE}
chmod 0600 ${CMDFILE} to
Code:
chmod 0755 ${TEMPFILE}
chmod 0600 ${CMDFILE} but with same result
Code:
root@mail:/home/administrador# bash list.sh
bash: /tmp/list.txt: Permission denied
so.. i'll try to find out what's wrong..