|
From: Kurt B. <kur...@gm...> - 2010-12-14 19:43:59
|
These are the permissions on the files: # ll /usr/local/share/snmp/mibs/ total 1636 lrwxr-xr-x 1 root wheel 49 Mar 27 2009 A100-R1-MIB.my -> /usr/local/etc/netdisco/mibs/cisco/A100-R1-MIB.my lrwxr-xr-x 1 root wheel 43 Mar 27 2009 AAC.mib -> /usr/local/etc/netdisco/mibs/nortel/AAC.mib ... ... ... The chmod would be redundant, in this case - sorry I didn't include those perms in my original message. I ran the chmod anyway, just because, then ran $ /usr/local/bin/netdisco -b -m and got /usr/local/share/snmp/mibs/ati-mib.mib: Permission denied /usr/local/share/snmp/mibs/atswtch2.mib: Permission denied ... ... ... I also have set ownership two different ways: # ll /usr/local/share drwxr-xr-x 4 root wheel 512 Dec 1 15:42 netdisco drwxr-xr-x 5 netdisco netdisco 1024 Dec 13 16:03 snmp and: # ll /usr/local/share drwxr-xr-x 4 netdisco netdisco 512 Dec 1 15:42 netdisco drwxr-xr-x 5 netdisco netdisco 1024 Dec 13 16:03 snmp I'm certainly scratching my head on this one. One question I have: Why is it not looking at $mibshome (mibshome = /usr/local/etc/netdisco) as declared in /usr/local/etc/netdisco/netdisco.conf? Kurt On Tue, Dec 14, 2010 at 09:27, Charles Goldsmith <wo...@ju...> wrote: > Kurt, maybe the following: > sudo chmod -R +r /usr/local/share/snmp/mibs/ > That will give read to user, group and other on that directory and all > subdirectories for all files > > On Mon, Dec 13, 2010 at 6:22 PM, Kurt Buff <kur...@gm...> wrote: >> >> All, >> >> Does anyone have an idea of where I might have gone wrong on this? >> >> For the following scheduled jobs (and when su'ed to netdisco) >> >> /usr/local/bin/netdisco -b -m >> /usr/local/bin/netdisco -b -R >> /usr/local/bin/netdisco -b -a >> >> I am getting >> >> /usr/local/share/snmp/mibs/ati-mib.mib: Permission denied >> >> across the board - all mibs. >> >> /usr/local/etc/netdisco/netdisco.conf says >> >> mibshome = /usr/local/etc/netdisco >> >> /usr/local/etc/netdisco/snmp.conf says >> >> mibdirs >> /usr/local/etc/netdisco/mibs/net-snmp:/usr/local/etc/netdisco/mibs/rfc: >> /usr/local/etc/netdisco/mibs/cisco:/usr/local/etc/netdisco/mibs/hp: >> /usr/local/etc/netdisco/mibs/dell >> >> and I tried the suggestion in snmp.conf >> >> cd /usr/local/share/snmp >> mv mibs mibs.old >> mkdir mibs >> cd mibs >> ln -s /usr/local/netdisco/mibs/*/* . >> >> Which didn't help. >> >> Thanks, >> >> Kurt |