Avatar of AVL_IT
AVL_IT
 asked on

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
Mac OS X* File Transfer

Avatar of undefined
Last Comment
AVL_IT

8/22/2022 - Mon
Gerwin Jansen

/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?
AVL_IT

ASKER
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!
ASKER CERTIFIED SOLUTION
Gerwin Jansen

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
AVL_IT

ASKER
that worked.  thanks!
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes