script permissions - error while comparing DVD file

Dave M DaveM at Mich.Com
Mon Dec 4 20:38:36 UTC 2006


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

Is there something special that I need to do in order to read a file
that is on a DVD from within a script?

This works from the command line.

-------------------------------
Dave M
Davem (at) Mich (dot) Com
Ann Arbor, Mich. USA

Inter-networked computers give you freedom.
The "Trusted Computing Platform" could take that freedom away.
http://www.eff.org/Infrastructure/trusted_computing/20031001_tc.php





More information about the ubuntu-users mailing list