[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Mounting CDROMS with noexec permission !!!
- Subject: Mounting CDROMS with noexec permission !!!
- From: Shanu <shanu@xxxxxxxxxxx>
- Date: Mon, 05 Jul 1999 19:29:03 +0530
Hello All,
Ragu (vu2rgu) had a problem running mp3's directly off the CD
drive because the file permission was automatically set as executable.
Every time he tried playing it off the CD itself, the error "bash:
./foo.mp3: cannot execute binary file" popped up. He wanted to know
whether disc could be mounted with the noexec bit set like for example,
the vfat file system.
Well, i think i have a solution. I don't know whether it will be
of relevance now as a long time has now elapsed (over a month i think).
The isofs driver sets the permission to r-x as default since the
disc could be shared with DOS machines so virtually anything could be a
valid executable(refer inode.c). But this setup is a headache for Linux
only users as we have to copy the file to the ext2 partition and chmod
it manually every time.
Try this instead...
mount -t iso9660 -r -o mode=000 /dev/cdrom /cdrom -v
# mode - Sets the permissions on files to xxx (refer
isofs.txt)
The '000' value was plucked out of thin air after a lot of
experimentation with random figures. It took me hellofalot of hacking to
get this done, so if u find it useful please drop me a line.
Can some one explain what does the '000' value signify. Null, i
suppose???
References:
/linux/Documentation/filesystems/isofs.txt
/linux/fs/isofs/inode.c
- -- Shanu
- - - - - - - - - - - - - - - - - - - - - - - - - = = (SHANU) = = - -
Shanker Balan Debian/GNU Linux 2.1
St. Alberts College
Cochin India
- --------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
------------------------------
End of Linux India Digest V1 #90
********************************
--------------------------------------------------------------------
To unsubscribe send an email to majordomo@xxxxxxxxx with the word
'unsubscribe linux-india-digest' (without the quotes) in the body
of the email.