script permissions - error while comparing DVD file
diesch at spamfence.net
Tue Dec 5 15:29:45 UTC 2006
Dave M <DaveM at Mich.Com> wrote:
> Ubuntu v6.06
> I am trying to use a bash script to compare a file on a DVD to a file on
> my hard disk.
> The command:
> cmp /media/cdrom0/file1.junk /home/user/file1.junk
> The permissions for /media/cdrom0/file1.junk are:
> Permissions -r--r--r--
> The permissions for /home/user/file1.junk are:
> Permissions -rw-r--r--
> The error:
> TestScript.sh: line 86: /media/cdrom0/file1.junk: Permission denied
This looks like you try to execute /media/cdrom0/file1.junk.
If cmp can't open the file the msg would look like
cmp: /media/cdrom0/file1.junk: Permission denied
How exactly does line 86 of TestScript.sh look?
More information about the ubuntu-users