Tuesday, August 30, 2011

superuser in Topspin

We know that the NMR superuser is distinct from the login account and at the time of installation, one can choose an existing user in the file system to be the NMR user. More importantly a unique password for the NMR superuser is maintained in a hashed format in the file /opt/topspin/conf/nmradminpassword.   Any time after the installation, you can change the NMR superuser by running /opt/topspin/prog/bin/installnmr. The shell syntax is :

installnmr  "Topspin install path"   "nmrsuperuser .  

Although no 'installation' per se takes place, this script evidently sets file access privileges in the intended manner. The last part of the above statement is under the hood as of now. If I learn more about this I will update the post accordingly.

"setuid = 0 error" : I have been getting the error"seteuid = 0 failed " whenever I start edprosol and the error message asks me to install ICONNMR properly.   What connection does the above has with ICONNMR installation, I don't know. But this error message also continues with the suggestion that " run $TSHOME/prog/bin/installnmr " correctly.

  Indeed, running 'installnmr /opt/topspin nmrsu'  does indeed remove this pop-up error from Topspin, when you start edprosol, for instance.

  Two more  points before we go.

  • If you ever forgot the NMR superuser password, simply delete the file /opt/topspin/conf/nmradminpassword and then run the installnmr script. This will allow you to enter a new password. 
  • Following the ICONNMR related error message, I tried re-installing ICONNMR in one of the instruments.  This step is not warranted to let the popup message go away and in fact I landed myself into another situation.  I started getting 'module go not found' error inside Topspin, when I start an acquisition. This was solved after I did a cf followed by expinstall, edsolve, etc.  The message here is that, it is safer to do a 'cf' after re-installing any part of the software from the distribution medium.   You might end up with some hiccup or other down the road.