[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference azur::mcc

Title:DECmcc user notes file. Does not replace IPMT.
Notice:Use IPMT for problems. Newsletter location in note 6187
Moderator:TAEC::BEROUD
Created:Mon Aug 21 1989
Last Modified:Wed Jun 04 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:6497
Total number of notes:27359

3874.0. "mcc_ea_show_enet_device_id INSUF_PRIV.." by TAEC::HAYES (Tu quoque mi fili ! C.Hayes SVP @VBE) Wed Oct 07 1992 13:04

Hello ,

My customer/partner uses a licence check in his code that needs 
to know the hardware address of the node they are running
our managment module on. 
Today that routine uses NCP via the system and redirects 
the information to a file and then reads it. That is a poor way to do it!

They found a DECmcc routine which is called 'mcc_ea_show_enet_device_id', 
but when they use this it seems like it is privileged in a way. 
The status returned is MCC_S_INSUF_PRIVS. 

Is it correct that to call this routine one needs special privileges? 

What privileges/access rights are necessary and sufficient?

Do you know of other routines/methods they can use?


Best Regards
Catherine
T.RTitleUserPersonal
Name
DateLines
3874.1TOOK::SWISTJim Swist LKG2-2/T2 DTN 226-7102Wed Oct 07 1992 15:2410
    You need LOG_IO priv on VMS.  On Ultrix the process needs to be run
    as setuid to root.
    
    These are requirements of the low-level Ethernet routines, not MCC.
    (One could easily disrupt an entire network by doing bad things with
    this interface).
    
    If you are on Ultrix, there is a non-privileged way to read your
    ethernet addresses using the ioctl's SIOCGIFCONF and SIOCRPHYSADDR
    against any network socket.   Look at the man pages.
3874.2using DECnet IV commands would still workSKIBUM::GASSMANFri Oct 09 1992 14:045
    If the system is running DECnet, then a MCC>SHOW NODE4 node PHYSICAL
    ADDRESS, or MCC> SHOW NODE4 node LINE * HARDWARE ADDRESS - should work
    without needing privs.
    
    bill