MAC OS - folder permissions

i need to copy a mib file which i have downloaded onto my desktop.  when issuing the following command and enter the prompted password it says operation not permitted.  


MacBook-Pro:Desktop bryantotten$ sudo cp AIRESPACE-REF-MIB.my /usr/share/snmp/mibs/
cp: /usr/share/snmp/mibs/AIRESPACE-REF-MIB.my: Operation not permitted

thanks for any assistance you can provide
AVL_ITAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gerwin Jansen, EE MVETopic Advisor Commented:
/usr/share is part of System Integrity Protection - https://en.wikipedia.org/wiki/System_Integrity_Protection

The message you get means indeed that you have no permission to copy files into the /usr/share/snmp/mibs folder.

There is a way to disable System Integrity Protection but that is not advised. Why do you need to copy a file to that location?
0
AVL_ITAuthor Commented:
Gerwin-

thanks for the response.  i am working on a script which calls netsnmp.  this script will be a network management tool for cisco devices.  the mibs that come with the mac os do not include the cisco mibs, which is why i need to update.  

i understand your concern in writing to this file location, however i am not coming up with a good workaround.

thanks!
0
Gerwin Jansen, EE MVETopic Advisor Commented:
Then you need to (temporarily) disable SIP, the procedure is here:

https://developer.apple.com/library/content/documentation/Security/Conceptual/System_Integrity_Protection_Guide/ConfiguringSystemIntegrityProtection/ConfiguringSystemIntegrityProtection.html

Recommend you have an up to date Time Machine backup before you start.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AVL_ITAuthor Commented:
that worked.  thanks!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Mac OS X

From novice to tech pro — start learning today.