Link to home
Start Free TrialLog in
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
Avatar of Gerwin Jansen
Gerwin Jansen
Flag of Netherlands image

/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?
Avatar of AVL_IT
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
Avatar of Gerwin Jansen
Gerwin Jansen
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AVL_IT

ASKER

that worked.  thanks!