<div dir="ltr">I need to call a 3rd party library function with root privileges.<div>I'm not sure how to accomplish this from within Rcpp.</div><div><br></div><div>If I was writing an executable, I could call seteuid to elevate privileges before calling the external function, and set the suid bit on the executable.</div><div>But given that this needs to be done from within a Rcpp Library, I'm not sure how to do this. The last thing I want to do is run R as root or set suid on the R binary.</div><div><br></div><div>Any help / pointers would be greatly appreciated.</div><div><br></div><div>thanks</div><div>Bhaskar</div></div>