UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My problem is that my cdrom only mounts read-only. This is a problem since I want to run a install-script on the cd.
How can I make the script executeable ?
/Tobias
mount: block device /dev/cdrom is write-protected, mounting read-only
dvorac@dvorac:~$ cd /cdrom
dvorac@dvorac:/cdrom$ ls
00000000.016 00000001.TMP InstallForMacOSX.app setup.exe win32 00000000.256 autorun.inf install_unix.sh unix
dvorac@dvorac:/cdrom$ sudo ./install_unix.sh
sudo: unable to execute ./install_unix.sh: Permission denied
Why not just copy the contents of the CD to a temporary directory and run it from there? Once it's on your hard drive, you can do what you like with the permissions.
Check the noexec option on the mount command first though.
Neat. Thank you. And you've shown that it doesn't matter about the noexec option (or even if the script is not marked as executable - I just tried it myself).
Thanks for the response!
I solved the issue by adding the exec option in fstab. By some reason the device was mounted as noexec even without the noexec option in fstab.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.