I'm fairly new to Unix and I have written a script:
SERVER="/usr/local/abc/.../somefile.txt" OPTION="$1" if [ x$OPTION = "xtitle" ] then grep $OPTION $SERVER exit fi
As far as I understand, when I call the script with arg "title" as ".../script title" it should return what line
grep found in that file consisting string "title". I've placed 0777 permissions on the script (I know that's an overkill, but security isn't important right now). I've also put 0777 permissions on somefile.txt. I put this script to run as a part of another program, it has it's own user. But in the logs of this other program I keep seeing :
grep: /usr/local/abc/..../somefile.txt: Permission denied
Is it possible that something can't be accessed even if it has 777 permissions? Is it possible that another user just can't see that folder?