Skip to content

V1.6.7 Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude assumes it's being run by an admin user/install owner #4501

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jhowe-sgs opened this issue Jan 28, 2016 · 6 comments
Labels
Component: IDE The Arduino IDE OS: OSX Specific to the Mac OS X (macOS) version of the Arduino IDE

Comments

@jhowe-sgs
Copy link

As a workaround for Gatekeeper under Mac OS X, the IDE ships with a simple wrapper script to change the exec permissions of Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude_bin after install. #3468

However, this script will fail for non-admin users running the Arduino IDE ( students in a lab ) since it doesn't have admin access. #4270

When pushing code, the faculty members ( local admins ) also get a chmod warning: #4270

chmod: Unable to change file mode on /Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude_bin: Operation not permitted
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude_bin: line 6: ... : Permission denied

A more graceful degradation might be to check to see if the current user is the owner of the file being chmod'ed, or provide a command line fix wrapped in sudo. I don't know how wrapping the chmod call in the avrdude script with a sudo call would bubble up the authentication challenge in the IDE UI.

Thanks

facchinm referenced this issue in arduino/toolchain-avr Feb 4, 2016
@sandeepmistry sandeepmistry added Component: IDE The Arduino IDE OS: OSX Specific to the Mac OS X (macOS) version of the Arduino IDE labels Mar 10, 2016
@blueskyworld
Copy link

Im getting the same issue with 1.6.9 on MAC os x 10.11.4
i tried to just upload the blink sketch.

chmod: Unable to change file mode on /Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude_bin: Operation not permitted
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude_bin: line 6: ... : Permission denied
screen shot 2016-06-10 at 2 59 37 pm

I tried to upload to a Tiny circuits board, and to leonardo board. I was able to upload the sketch to a Arduino Zero board though without problems. Ive used both of the board about year ago without problems. It only started after the 1.6.9 and OS update from 10.10.

Any help would be appreciated Thanks

@blueskyworld
Copy link

Also Im the only user on the Mac and logged in as a Admin

@cmaglie
Copy link
Member

cmaglie commented Jun 16, 2016

This one should be addressed by #5021, the new version of avrdude is build with libusb statically linked so there should be no more need for the workaround.

@cmaglie cmaglie added this to the Release 1.6.10 milestone Jul 27, 2016
@cmaglie
Copy link
Member

cmaglie commented Jul 27, 2016

Should be fixed by #5021

@jhowe-sgs @blueskyworld
can you try the IDE 1.6.10 and confirm this?

Please reopen the issue if the problem is not solved.

@cmaglie cmaglie closed this as completed Jul 27, 2016
@robert-cody
Copy link

Not fixed. At least with Arduino IDE 1.7.11 + Mac OS 10.12 + Arduino Yun got this:
/var/folders/hr/gn_tjxhd0536wkycms6y7r340000gp/T/build8557427975286146435.tmp/Blink.cpp.hex:i chmod: Unable to change file mode on /Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude_bin: Operation not permitted /Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude: line 6: /Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude_bin: Permission denied /Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude: line 6: exec: /Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude_bin: cannot execute: Undefined error: 0

@facchinm
Copy link
Member

facchinm commented Oct 5, 2016

IDE 1.7.11 is not this repo but this one. Please check again using IDE 1.6.12 you can download from http://www.arduino.cc/en/Main/Software

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: IDE The Arduino IDE OS: OSX Specific to the Mac OS X (macOS) version of the Arduino IDE
Projects
None yet
Development

No branches or pull requests

6 participants