We help IT Professionals succeed at work.

MAC OS  - folder permissions

AVL_IT
AVL_IT asked
on
173 Views
Last Modified: 2017-03-19
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
Comment
Watch Question

Gerwin JansenTopic Advisor
CERTIFIED EXPERT
Most Valuable Expert 2016

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?

Author

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!
Topic Advisor
CERTIFIED EXPERT
Most Valuable Expert 2016
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION

Author

Commented:
that worked.  thanks!