07-10-2012 05:36 AM
Hi,
I have NI-488.2 version 2.9.0 installed on a Red Hat 6.2 machine. When I open GPIB explorer program and click "New" I get the message "you must be a super user to Add GPIB Hardware".
Is it possible to change permissions somewhere so that other users/groups can add or change the GPIB hardware?
Thanks,
07-11-2012 06:40 PM
I'm starting to feel like a nerd answering all these Linux questions, but nobody else seems to have picked this up yet and I know how disheartening it is to have your post go unanswered in a help forum, so:
You might try changing the ownership of the program you're trying to use to super user (i.e. root) and then flipping the setuid bit: this would cause the program to be run with root privileges by anyone who executes it.
See http://suseunbound.lefora.com/2009/01/26/how-do-i-set-a-file-perl-script-set-suid-root/ or http://www.howtoforge.com/linux_setting_suid_sgid_bits or https://www.google.com/search?btnG=1&pws=0&q=how+to+setuid+root for details.
Of course this is probably not a good idea from a security standpoint, but that doesn't sound like your chief concern at the moment.
07-12-2012 01:22 AM
Thank you Mariogiov,
I'll try it!