Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a self-extracting Bash installation script. I'd like to burn this to CD on my Windows box, drop that in a Linux box, and run the script straight off the CD drive.

Is there a way to add "+x" Permission on the Windows box when creating the CD?

I've been using the built in "writable folder"/"burn to disc" method, but think I have nero sitting around somewhere.

share|improve this question

3 Answers 3

up vote 1 down vote accepted

You need the rock ridge extensions. But even so a CD is often mounted noexec, so that +x flag won't help you anyway. You can always run a script directly by invoking the shell,sh myscript.sh to get around that.

share|improve this answer
    
Or, since it's a bash script, bash myscript.sh. –  oKtosiTe Jan 22 '11 at 20:47
    
I ended up requiring the end user to call "bash script.sh", as I can't confirm that the disc will be mounted without noexec. –  stormwald Jan 25 '11 at 19:52

You need burning software that can handle Rock Ridge such as CDEveryWhere, GEAR PRO, or possibly mkisofs under Cygwin.

share|improve this answer

It seems your best bet would be Cygwin or MinGW to create the permissions for real.

share|improve this answer
    
How would the execute bit be stored on CDFS? –  oKtosiTe Jan 22 '11 at 20:46

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.