LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   pread - privileges or special access permissions? (https://www.linuxquestions.org/questions/ubuntu-63/pread-privileges-or-special-access-permissions-4175606629/)

olafurjt13 05-25-2017 03:45 AM

pread - privileges or special access permissions?
 
Hello

Is it necessary for a C program to be owned/executed by root to be able to use the pread function?

I've tried looking it up in manpages and elsewhere online but can't seem to find information about it.

Thank you.

pan64 05-26-2017 08:18 AM

it was not mentioned, therefore it is not required (at least I think)

olafurjt13 06-03-2017 10:28 AM

I did a test application and found that it would not run unless I used root privileges.
There was nothing there but a single read of a MSR register using the pread function, so I'm convinced that it requires root privileges :)

pan64 06-03-2017 10:37 AM

so it was required because of MSR register, not because of pread.


All times are GMT -5. The time now is 12:06 AM.