I have a bunch of video files in a folder on a remote drive which is mounted in Nautilus (smb/gvfs). I open the folder, drop the shell script in there, open a terminal and run it from there. It works fine on local folders, but I keep getting "permission denied" when I run it from the remote folder on it's contents. The script simply converts from one video container to another and looks like this:
!/bin/bash for i in *.mp4; do ffmpeg -i "$i" -vcodec copy -acodec copy "$i".mkv; done
I know I have done similar things in the past without problems, but this time I get permission denied even if I run as root and have the script owned by root.
What am I missing?