Neil Hopcroft

A digital misfit

OK, I’ve got my stupid head on again this morning….I’m playing with samba, trying to edit perl scripts on my linux/apache server from my windows desktop, everything is fine except one thing[0], whenever I save from the windows box I lose the execute permission and have to go chmod it again before the server will run it. Is there any way I can get the ‘x’ to be sticky?

[0] two things if you count my inability to write perl – any book recommendations?


6 comments

  1. the o’rielly ones are very good learning perl and programming perl (do nto be put by the first ones tile, or the relative page count I refer to it a lot more then any other perl book I have)

  2. The “Camel book” is crap IMO, the Perl manpages are actually quite a good source of information (e.g. man perltoot should give you the OO tutorial).

    There’s no way to get the execute permission to be sticky, however if you put “create mask = 0775” in the share definition on in smb.conf, ALL files you save from windows will have execute permission. You might be able to mess around with “map archive” “map hidden” and “map system” to get the permissions preserved in other ways.

    • I got the camel book, just ‘cos for that kind of thing I’m better off having a book to refer to than the man pages, I don’t have enough screen real-estate here to be able to have everything visible at once, and reading a page at a time while fine for reference is rather slow going for learning. Whats wrong with the book?

      I tried the create mask thing, but that doesn’t seem to have made any difference….its a minor irritant rather than a significant problem.

  3. I’m nervous of anything that requires me to recompile the kernel on a production environment (not that its a particularly mission critical box, but still I’d prefer not to have to do that)….I’m running a 2.4 kernel ‘cos 2.6 wouldn’t boot under VirtualPC.

  4. If its thought through properly then it’ll be worth having, but until I’ve got a production kernel booting I’ll stick with my manual methods.

Leave a Reply

Your email address will not be published.