From: Greg Willits Date: 2012-05-15T08:40:41+09:00 Subject: FileUtils and "sudo" This is likely going to be a forehead slapper as soon as I ask.. but I'll risk it. I've written a general purpose utility for making backups and archives. It does lots of nifty things, but at the core I end up using FileUtils.cp_r. To date, I've used it with 1.8.6/.7 on MacOS X 10.6 without any problems. Now, I'm running it on 10.7, and it seems that many FileUtils commands get refused permission. AFAICT this is under the same general usage as before. I don't see anything different in the permissions hierarchy. (This has me a little worried about eventually migrating many other server/glue scripts I have which are not yet running on 10.7 servers.) I'm having to resort to backticked CLI commands using sudo for now, but that ruins the platform agnostics. So two general questions: 1) anyone know of Lion generally being different like this? I don't see much chatter on the interpipes, so I'm thinking this may yet be something screwy on my system. 2) regardless of OS, what's the usual strategy for giving FileUtils sudo-level access for doing file commands? Thanks. -- greg willits -- Posted via http://www.ruby-forum.com/.