LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 05-25-2017, 03:45 AM   #1
olafurjt13
LQ Newbie
 
Registered: Jun 2015
Posts: 2

Rep: Reputation: Disabled
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.
 
Old 05-26-2017, 08:18 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,945

Rep: Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325
it was not mentioned, therefore it is not required (at least I think)
 
Old 06-03-2017, 10:28 AM   #3
olafurjt13
LQ Newbie
 
Registered: Jun 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
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
 
Old 06-03-2017, 10:37 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,945

Rep: Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325
so it was required because of MSR register, not because of pread.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Special permissions karanchhabra Linux - Newbie 4 04-20-2016 11:01 AM
access privileges to mounted fat32? reakinator Linux - Newbie 10 06-19-2006 04:58 PM
mounting fat partitions with special permissions nagromo Linux - Software 1 04-20-2005 07:17 PM
Not enough privileges to access certain folders joeman3429 Fedora 1 07-20-2004 06:46 AM
root privileges and permissions evil_lafta Slackware 7 08-20-2003 09:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 08:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration